From de72264a61aabb5c91fcaf3552b1fbaa72680a4e Mon Sep 17 00:00:00 2001 From: Sijia Wang Date: Mon, 8 Jul 2024 17:37:15 -0400 Subject: [PATCH] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 9d38263c..c73e5845 100644 --- a/README.md +++ b/README.md @@ -31,10 +31,10 @@ 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, this can be found in the [lib directory](/lib/) , consisting of the following: -1. GDAL-3.4.1-cp37-cp37m-win_amd64.whl +1. GDAL-3.3.2-cp37-cp37m-win_amd64.whl 2. pyproj-3.2.1-cp37-cp37m-win_amd64.whl 3. Fiona-1.8.20-cp37-cp37m-win_amd64.whl -4. Shapely-1.8.0-cp37-cp37m-win_amd64.whl +4. Shapely-1.8.1-cp37-cp37m-win_amd64.whl 5. geopandas-0.10.2-py2.py3-none-any.whl With these files in hand, the following installation instructions work: @@ -45,7 +45,7 @@ conda activate tm2py pip install [the packages listed above, in that order] cd pip install -e . -conda env config vars set GDAL_VERSION=3.4.1 +conda env config vars set GDAL_VERSION=3.3.2 ``` Finally, install the Emme python packages using the Emme GUI. This effectively creates a file, `C:\Users\%USERNAME%\.conda\envs\tm2py\Lib\site-packages\emme.pth` with the following contents, so you could create the file yourself. @@ -111,14 +111,14 @@ Additional functionality for various use cases can be found in [Examples](exampl 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: +This model has compatibility with emme version 4.6.1 (as of the TM2.2.1.1 release). 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" +os.environ["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.