Castronova / EMIT

Environmental Model Integration Project (EMIT)
GNU General Public License v2.0
0 stars 2 forks source link

Windows Installer #405

Open Castronova opened 8 years ago

Castronova commented 8 years ago

Create an installer for windows.

farrieta9 commented 8 years ago

These are the steps I have taken to setup the windows environment

After installing gitbash, and miniconda do the following: -- Clone the emit project

git clone https://github.com/Castronova/EMIT.git -- Navigate to EMIT\dev_environment\ build-dev-environment.bat temp emit-env-win (temp will be the name of the enviroment, and emit-env-win contains the packages to be installed) activate temp (activate the environment) -- Pycharm->File->Settings->Project->Interpreter->Click on gear on top right->Load the python.exe from the minoconda/env/temp/python.exe

First error encounter is: ImportError: No module named geoalchemy I then did:

pip install geoalchemy

Second error encountered is: AttributeError: type object 'ColumnProperty' has no attribute 'ColumnComparator' That error has to do with odm2. I comment out the "from odm2api.ODMconnection import dbconnection as dbconnection2" in emit/utilities/gui.py

Third error countered is: ImportError: No module named shape file I commented out the "import shapefile" in ./utilities/spatial.py

Fourth error is: ImportError: No module named suds.client I then did: -> pip install suds

Fifth error is: ImportError: No module names geoalchemy2 i then did: -> pip install geoalchemy2

Sixth error is 2nd error again. I then commented out everywhere that odm2api was imported

Seventh Error: ImportError: DLL load failed: The specified module could not be found. I tried pip install seaborn but nothing. So i commented out everywhere seaborn is imported.

Eighth Error: Same as error sixth and same solution

Finally: Success! It worked! EMIT opened and i was able to add a user and models

Notes -> pip install psycopg2

Castronova commented 8 years ago

From your notes, it looks like the following libraries are missing from the emit-env file:

ghost commented 8 years ago

http://www.lfd.uci.edu/~gohlke/pythonlibs/

Castronova commented 8 years ago

I updated the windows build script. @fran, try to build a new windows dev environment and let me know if you run into any more issues.

farrieta9 commented 8 years ago

The new script worked!

farrieta9 commented 8 years ago

This is the error i'm getting when i run $> pyinstaller emit.spec -y --clean on windows

PyInstaller.compat.FileNotFoundError: Path or glob "c:\users\miniconda2\envs\lib\libwx_osx_cocoau-3.0.0.0.0.dylib" not found or matches no files.

farrieta9 commented 8 years ago

Whenever I move the emit.spec file into its own directory (for example an folder called installer) the error i get is

"The system cannot find the path specified: C:\Users\EMIT\installer\app_data."

For some reason it does not find the appdata path or perhaps the ._. The line with d = Tree(abspath(join(os.getcwd(), 'app_data')), prefix='app_data') is what maybe causing this. I've tried changing the filepath and going up and down directories but always the same error.