question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installation via pip fails needing pathlib2

See original GitHub issue

Expected: easy installation via pip3 install gooey 😃

Problem: pip3 install gooey fails.

Description: It prints

File "build.py", line 30, in <module> import pathlib2ModuleNotFoundError: 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 ")

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:5

github_iconTop GitHub Comments

1reaction
syhecommented, Nov 27, 2019

This is fixed in wxpython 4.0.7 and onwards.

1reaction
zertrincommented, 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

When running pip install channels I get the following this error
Run on command line: pip install pathlib. or on Linux sudo pip install pathlib.
Read more >
pipenv Documentation - Read the Docs
The Pipfile is used to track which dependencies your project needs in case you need to re-install them, such as when you share...
Read more >
Snap2stamps error - StaMPS - STEP Forum
i installed pathlib2 but the error comes up again. “Traceback (most recent call last): File “slaves_prep.py”, line 16, in from pathlib import ...
Read more >
Poetry: Dependency Management for Python - PyPI
Poetry helps you declare, manage and install dependencies of Python projects, ensuring you have the right stack everywhere. Poet Install. The package is...
Read more >
Ubuntu VM python2 pathlib intstall error [duplicate]
I installed python 2. One of the scripts need the module pathlib . Tried to install it but got a error message: ~/Desktop$...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found