You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
33
-
34
-
1. GDAL-3.3.2-cp37-cp37m-win_amd64.whl
35
-
2. pyproj-3.2.1-cp37-cp37m-win_amd64.whl
36
-
3. Fiona-1.8.20-cp37-cp37m-win_amd64.whl
37
-
4. Shapely-1.8.1-cp37-cp37m-win_amd64.whl
38
-
5. geopandas-0.10.2-py2.py3-none-any.whl
39
-
40
-
With these files in hand, the following installation instructions work:
29
+
conda install gdal
30
+
conda install pyproj
31
+
conda install fiona
32
+
conda install shapely
33
+
conda install geopandas
41
34
42
-
```bat
43
-
conda create -n tm2py python=3.7.6
44
-
conda activate tm2py
45
-
pip install [the packages listed above, in that order]
46
35
cd <path to tm2py git directory>
36
+
git
47
37
pip install -e .
48
38
conda env config vars set GDAL_VERSION=3.3.2
49
39
```
50
40
Finally, install the Emme python packages using the Emme GUI. This effectively creates a file,
51
41
`C:\Users\%USERNAME%\.conda\envs\tm2py\Lib\site-packages\emme.pth` with the following contents, so you could create the file yourself.
In troubleshooting, sometimes DLL load failure errors would occur which may be resolved by importing gdal before importing emme packages. Emme support explained this thusly:
58
56
59
57
At load time, the EMME API will always load the geos_c co-located with the EMME API, unless it was already loaded from some other location, which is the case when you import GDAL first. EMME API seems to be compatible with the newer GDAL/geos_c (reminder: not tested!). But this does not appear to be the case the other way around (newer GDAL is not compatible with older geos_c).
0 commit comments