Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation via pip fails needing pathlib2 #474

Open
jdittrich opened this issue Sep 23, 2019 · 5 comments
Open

Installation via pip fails needing pathlib2 #474

jdittrich opened this issue Sep 23, 2019 · 5 comments

Comments

@jdittrich
Copy link

jdittrich commented Sep 23, 2019

Expected: easy installation via pip3 install gooey :)

Problem: pip3 install gooey fails.

Description: It prints

File "build.py", line 30, in <module> import pathlib2
ModuleNotFoundError: No module named 'pathlib2',

I wonder, since pathlib2 is a python2 module, whereas I installed this for python 3 (which, under ubuntu, is aliased to python3 and pip3). Maybe it’s this wxPythons fault…

System:

  • Ubuntu 18.04 amd65,
  • Python 3.6.8
  • No virtualenv used (but I could)

Me: basic python knowledge, in case I should look anything up.

related: #243 ("Add install workaround for (ubuntu, conda) installation ")

@emmggi
Copy link

emmggi commented Sep 23, 2019

Same issue here, Arch linux.

@jdittrich jdittrich changed the title Installation via pip fails needed Installation via pip fails needing pathlib2 Sep 23, 2019
@zertrin
Copy link

zertrin commented Sep 24, 2019

Same here yesterday.

It seems pathlib2 is a dependency of wxpython. Even after pip install pathlib2, I had issues with building wxpython from pip (Ubuntu 16.04 LTS) with missing dependencies.

In the end I resolved it by installing wxpython with conda in my conda environment before installing Gooey:

conda activate myenvironment
conda install wxpython
pip install Gooey

You can also install Gooey with conda, but currently you get the 1.0.2 version. 1.0.3 has many improvements over 1.0.2 which I required.

@emmggi
Copy link

emmggi commented Sep 24, 2019

I fixed it by installing with my distro's package manager:
sudo pacman -S python-wxpython

@jessebrennan
Copy link

Related wxPython issue wxWidgets/Phoenix#1251

@syhe
Copy link

syhe commented Nov 27, 2019

This is fixed in wxpython 4.0.7 and onwards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants