Skip to content

Multiple install issues when using pyenv on Linux/Mac #288

Closed
@cztomczak

Description

I am having multiple issues installing Phoenix when using pyenv Python installations. pyenv is a simple Python version management: https://github.com/pyenv/pyenv

Issue 1 / 3 (Linux)

This error when running pip install wxPython on Ubuntu 14.04:

The configuration failed
    (complete log in /tmp/pip-build-j042bsx8/wxPython/build/waf/3.6/config.log)
    Command '"/home/cz/.pyenv/versions/3.6.0/bin/python3.6" /tmp/pip-build-j042bsx8/wxPython/bin/waf-1.7.15-p1 --wx_config=/tmp/pip-build-j042bsx8/wxPython/build/wxbld/wx-config --python="/home/cz/.pyenv/versions/3.6.0/bin/python3.6" --out=build/waf/3.6 configure build ' failed with exit code 1.
    Finished command: build_py (0m1.222s)
    Finished command: build (0m1.852s)
    Command '"/home/cz/.pyenv/versions/3.6.0/bin/python3.6" -u build.py build' failed with exit code 1.

OS: Ubuntu 14.04 64-bit
wxPython 4.0.0a1 gtk2 (phoenix)

Issue 2 / 3 (Linux)

Since online pip install failed, I've downloaded wheel package from here:
https://wxpython.org/Phoenix/snapshot-builds/linux/

It installed fine, but got an error when importing wx package:

Traceback (most recent call last):
  File "wxpython.py", line 11, in <module>
    import wx
  File "/home/cz/.pyenv/versions/3.5.3/lib/python3.5/site-packages/wx/__init__.py", line 17, in <module>
    from wx.core import *
  File "/home/cz/.pyenv/versions/3.5.3/lib/python3.5/site-packages/wx/core.py", line 12, in <module>
    from ._core import *
ImportError: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory

In ~/.pyenv/versions/3.5.3/ there is no such file, I have only found "libpython3.5m.a" (in /home/cz/.pyenv/versions/3.5.3/lib/ directory).

OS: Ubuntu 14.04 64-bit
wxPython 4.0.0a1 gtk2 (phoenix)

Issue 3 / 3 (Mac)

Ran pip install wxPython, it installed fine, but got error when running:

This program needs access to the screen. Please run with a
Framework build of python, and only when you are logged in
on the main display of your Mac.

OS: 10.9 Mavericks
wxPython 4.0.0a1 osx-cocoa (phoenix)
Python 3.6.0 64bit


I ended up installing Phoenix using system / homebrew Pythons - no problems then. Only with pyenv.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions