diff --git a/README.md b/README.md index c821a1d9..9d38263c 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ conda activate tm2py pip install git+https://github.com/bayareametro/tm2py@develop ``` -The above directions didn't work for the MTC Windows environment. The following method did work, on a machine with Emme-4.6.0 installed. This required a compiled GDAL/Fiona package set for python 3.7, which was downloaded from [Christoph Gohlke's Unofficial Windows Binaries for Python Extension Packages](https://www.lfd.uci.edu/~gohlke/pythonlibs/), consisting of the following: +The above directions didn't work for the MTC Windows environment. The following method did work, on a machine with Emme-4.6.0 installed. This required a compiled GDAL/Fiona package set for python 3.7, this can be found in the [lib directory](/lib/) , consisting of the following: 1. GDAL-3.4.1-cp37-cp37m-win_amd64.whl 2. pyproj-3.2.1-cp37-cp37m-win_amd64.whl @@ -107,6 +107,25 @@ controller.run() Additional functionality for various use cases can be found in [Examples](examples). +### Common Issues +If the above instructions are installed and the model fails, there are some common issues depending in the computer being installed + +#### Running With Multiple Emme Versions Installed +This model only has compatibility with emme version 4.6.1. If multiple versions of emme are installed, the above install instructions will launch the latest version of emme, regardless of which directory the emme.pth file was copied from. The correct emme version (4.6.1) can be launched using the following steps: +1) Open emme.pth file in the notepad and replace the os.environ["EMMEPATH"] with the path to the emme version you would like, in this case 4.6.1 +```python +import os, site; site.addsitedir(os.path.join(r"C:\\Program Files\\INRO\\Emme\\Emme 4\\Emme-4.6.1", "Python37/Lib/site-packages")) +``` +2) At the beginning of first python file run_model.py add this line +```python +os.envirrn["EMMEPATH"] = "C:\\Program Files\\INRO\\Emme\\Emme 4\\Emme-4.6.1" +``` +When running the model verify that the correct version eof emme is opened. + + +![Correct Emme Version Logo](docs/images/emme_open_46.PNG) + + ## Contributing Details about contributing can be found on our documentation website: [](https://bayareametro.github.io/tm2py/contributing) diff --git a/docs/images/emme_open_46.PNG b/docs/images/emme_open_46.PNG new file mode 100644 index 00000000..9a73c455 Binary files /dev/null and b/docs/images/emme_open_46.PNG differ