chembrows / ChemBrows

ChemBrows keeps you up-to-date with scientific literature
http://www.chembrows.com
GNU Lesser General Public License v3.0
5 stars 4 forks source link

Windows dependencies fail to install with Python 3 #14

Closed carlosperate closed 7 years ago

carlosperate commented 7 years ago

The PyUserInput depends on PyHooks on Windows, so trying to install with Python3 will fail as PyHooks is Python 2 only. How do you install the unstable branch in Windows with Python 3.5?

JPFrancoia commented 7 years ago

Oh, sorry, I encountered this problem very recently and didn't correct it yet. Simply remove qtbot, pyuserinput and pyhooks from requirements.txt, they are necessary only to run the tests.

carlosperate commented 7 years ago

Looks like scipy cannot be pip installed either. How do you normally install dependencies on windows?

JPFrancoia commented 7 years ago

Well, ChemBrows is one of the most difficult software you can find to package. It uses PyQt5, scipy, numpy, scikit-learn, etc. If you manage to build it, you'll fear nothing.

As explained here: https://www.scipy.org/install.html

You need to install some wheels (2, actually). First install numpy, then scipy. You can find their wheels here: http://www.lfd.uci.edu/~gohlke/pythonlibs/

Then you just need to do: pip install my_wheel.whl

carlosperate commented 7 years ago

Thanks for such a quick replied. I've installed the scipy and numpy wheels from lfd.uci.edu/~gohlke/pythonlibs/ and they seem to work fine. Although I have not tested yet if the application runs correctly, as I am running the build in AppVeyor.

I was trying to replicate the steps you've mentioned in https://github.com/pyinstaller/pyinstaller/issues/1566#issuecomment-274826461 and now I am a stuck with trying to run the pyinstaller spec file. You can see in here the output: https://ci.appveyor.com/project/carlosperate/chembrows/build/1.0.18 Trying to execute pyinstaller deploy\gui_win.spec it fails to find the gui.py script which should be in the cwd. Do you copy the gui_win.spec from the deploy folder into the root directory? Do you use a different spec file, or manually edit the paths before building it? Running cd deploy && pyinstaller gui_win.spec also had the same issue.

carlosperate commented 7 years ago

Okay, so moving the gui_win.spec file to the root directory solved my previous issue. Thanks for all the help!

JPFrancoia commented 7 years ago

Yes sorry, I normally move the corresponding spec file to the cwd. Glad you managed to find out the solution ! Did you manage to completely build the app, with all the missing dlls ?

JPFrancoia commented 7 years ago

Ok, I'll assume you managed to build the app. If not, I'll reopen the issue.

carlosperate commented 7 years ago

Hi @JPFrancoia, sorry I haven't been able to update you on this. I've encountered some issues with the output when built using PyInstaller, but I haven't had the chance to look into this since my last message. Let's keep this one closed, and if I can find the time to go back to this and fix it (or figure out the problem) I can post a general update here.

JPFrancoia commented 7 years ago

Sounds great. Good luck !