dpinney / omf

The Open Modeling Framework for smart grid cost-benefit analysis.
https://omf.coop
GNU General Public License v2.0
112 stars 62 forks source link

Problems with Windows Install Process #362

Closed dzimmanck closed 6 years ago

dzimmanck commented 6 years ago

I was able to successfully install on my Windows machine, but only after considerable effort. Here are my notes from the process:

  1. install.py corrupts existing Python27 installs, even if existing installation meets requirement. Most developers will already have Python installed on their machine for other projects. I had to un-install and re-install Python after running install.py.

  2. pip install pygraphviz does not work on windows machine, as it cannot find the necessary .dlls. I installed by running pip in a pre-compile binary from here.

  3. Several of the requirements are either missing or out-of-date from the requirements.txt file. I had to install or modify the following packages: -tqdm -distribute -pbr -jinja2 -pulp -requests -scipy

  4. I got import errors relating to the SciPy module. This was resolved by replacing my numpy install with a numpy-MKL distribution from here. This issue is apparently common for SciPy packages and is documented here.

dpinney commented 6 years ago

Thank you very much for the bug report.

Looks like we'll need to:

  1. Detect existing valid Python27 installs.
  2. Install pygraphviz and scipy from binary using the UCI site.
  3. Update requirements.txt appropriately.

@OppenheimerAndTheMartians can you take a shot at modifying the Windows portion of install.py and testing on a clean VM?

ghost commented 6 years ago

Sir, I'm very sorry that it has taken so long to finish this. The script's errors have been fixed, and it should work fine with the latest commit that I'm about to push today. I will update the README to make clear what needs to be installed beforehand: there are some broken dependencies for Windows setup that need to be worked around.