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

Error during wx installation via pip on linux #2025

Closed
DarkFenX opened this issue Aug 22, 2019 · 14 comments
Closed

Error during wx installation via pip on linux #2025

DarkFenX opened this issue Aug 22, 2019 · 14 comments
Labels
bug Confirmed to be a bug fixed This issue has been fixed! Oh joy! upstream Seems to be related to a dependency or third party that pyfa uses, not directly related to pyfa

Comments

@DarkFenX
Copy link
Member

See #1861 for details

@DarkFenX DarkFenX added the bug Confirmed to be a bug label Aug 22, 2019
@DarkFenX
Copy link
Member Author

DarkFenX commented Aug 23, 2019

@ForlornWongraven, i tried installing dependencies on my debian rig in venv, and it worked perfectly: https://gist.github.com/DarkFenX/c20b7ac2f9b1676abf6112ceea2f9fa2

Could you provide following info:

  • full pip installation log (pip3 install -v --no-cache-dir --log pyfa_reqs.log -r requirements.txt, remove nocache if it's causing issues)
  • do you have pyyaml for python3 installed as system package? If yes, which version is it?

@ForlornWongraven
Copy link

ForlornWongraven commented Aug 26, 2019

Sorry for the late reply. I purged my system of a few applications and dnf removed some python3 packages. Now that I had time to check again I also found that pathlib2 was needed to compile wxPython.

pyyaml is not installed as system package.

log.txt

@DarkFenX
Copy link
Member Author

I do not see any errors in the log. In fact, it does not have any traces of installation of anything - i suppose because you did not install dependencies on a clean system / clean venv.

@ForlornWongraven
Copy link

ForlornWongraven commented Aug 26, 2019

I misunderstood your request, sorry. I did set up a new env just to test this again. Here is the log.

I highlight this:

   "/home/forlorn/test/bin/python3" -u build.py build
   Traceback (most recent call last):
      File "build.py", line 30, in <module>
        import pathlib2
    ModuleNotFoundError: No module named 'pathlib2'
    Command '"/home/forlorn/test/bin/python3" -u build.py build' failed with exit code 1.

pyfa_reqs.log

@DarkFenX
Copy link
Member Author

DarkFenX commented Aug 27, 2019

This is upstream issue wxWidgets/Phoenix#1251. I am unsure if we can do anything about it. Even if I would have added it as entry into requirements.txt as workaround - pip still won't follow order specified in the file and it may pick wxpython before installing pathlib2.

@DarkFenX DarkFenX added the upstream Seems to be related to a dependency or third party that pyfa uses, not directly related to pyfa label Aug 27, 2019
@DarkFenX DarkFenX changed the title Requirements cannot be installed in specific cases Error during wx installation via pip on linux Sep 2, 2019
@Bazzek
Copy link

Bazzek commented Sep 4, 2019

maybe making 2 requirements files (requirements_1st.txt and requirements_main.txt) could be an option?

@DarkFenX
Copy link
Member Author

DarkFenX commented Sep 4, 2019

Maybe. But bear in mind that this is linux-specific bug (because only on linux you need to build wx when installing via pip, on other platforms it's provided as precompiled binary). So doing extra file and extra instructions sounds like excessive for me, given:

a) it's an upstream bug
b) which has rather clear error output
c) for specific platform (linux)
d) for this specific platform you have to install c/c++ development files via trial and error (maybe you had them installed on your PC, but on default linux installations I am confident that bunch of them is missing, I had to install a few on my Debian while verifying this bug)

@Bazzek
Copy link

Bazzek commented Sep 4, 2019

Fair enough, was nothing more then a noob trying to think along with the problem. You make a solid point though

@DarkFenX DarkFenX mentioned this issue Oct 3, 2019
@rnrsr
Copy link

rnrsr commented Nov 25, 2019

just as an FYI, if you run pip3 install pathlib2 it resolves this.

@Asday
Copy link

Asday commented Jan 17, 2020

The linked wxPython issue seems to think this is fixed, but pip install -r requirements.txt after virtualenv --python=$(which python3.6) env and . env/bin/activate still fails for the same reason.

I was of course able to get past it by manually installing pathlib2, but I would love to see this revisited.

@DarkFenX
Copy link
Member Author

DarkFenX commented Jan 17, 2020

we're still using 4.0.6. 4.0.7 had several issues with it (which were fixed by 2 or 3 post-releases) and i was waiting until more issues appear, and then just forgot to update.

@DarkFenX
Copy link
Member Author

I bumped versions of some dependencies, wx included. Please try if it causes any issues on latest master.

@Asday
Copy link

Asday commented Jan 21, 2020

Works perfectly.

@DarkFenX
Copy link
Member Author

Cool, closing

@DarkFenX DarkFenX added the fixed This issue has been fixed! Oh joy! label Jan 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed to be a bug fixed This issue has been fixed! Oh joy! upstream Seems to be related to a dependency or third party that pyfa uses, not directly related to pyfa
Projects
None yet
Development

No branches or pull requests

5 participants