Re: Re: wxPython 4.0.0a3
Michael Eager <[email protected]>
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tuesday, June 27, 2017 at 3:03:32 PM UTC-7, Robin Dunn wrote: > > Michael Eager wrote: > > I On Sunday, June 4, 2017 at 8:17:09 PM UTC-7, Robin Dunn wrote: >> >> Announcing wxPython 4.0.0a3 >> =========================== >> >> https://pypi.python.org/pypi/wxPython/4.0.0a3 >> >> I built the latest sources using python3.4. > > When I run python3 and do "import wx", I get the following error: > >>> import wx > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/lib64/python3.4/site-packages/wx/__init__.py", line 17, in > <module> > from wx.core import * > ImportError: No module named 'wx.core' > > There's no core.py installed: > $ ls /usr/lib64/python3.4/site-packages/wx/core.py > ls: cannot access /usr/lib64/python3.4/site-packages/wx/core.py: No such > file or directory > > I don't find core.py in the build tree. There is wx/core.pyi. > > Am I building something incorrectly? > > > Possibly. What commands are you using to do the build and install? > I followed the github instructions: $ python3 build.py 3.4 clean $ python3 build.py 3.4 dox $ python3 build.py 3.4 etg $ python3 build.py 3.4 sip $ python3 build.py 3.4 build $ sudo python3 build.py 3.4 install (I also tried these combined.) > > Somebody has mentioned in the past that there could be some confusion on > some distros about /usr/lib vs. /usr/lib64 so you may want to check in > /usr/lib/python3.4 and see if some of the files got put there by mistake. > I checked /usr/lib/python3.4/site-packages. There are packages there, but not wx. There is a /usr/lib64/python3.4/site-packages/wx/core.pyi. I don't know what the pyi extension means. It looks like a regular .py file. > > Another option would be to keep the system python clean (install only > packages from the system repositories there) and build your wxPython as a > wheel and install that wheel either in a virtual environment or in a > non-system build of Python. > What do you mean "build as a wheel"? -- You received this message because you are subscribed to the Google Groups "wxPython-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.