> curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
> (add additions suggested by install script:) vim .bash_profile
> vim .bash_profile
> (show all commands:) pyenv
> (python version for Blender 2.77:) pyenv install 3.5.1
> (set globally:) pyenc global 3.5.1
> Remove or rename "python" directory in Blender folder.
> ln -s /home/michaelzfreeman/.pyenv/versions/3.5.1 python
> BLENDER NOW STARTS USING PYENV PYTHON
> pyenv rehash
> (Should show pyenv installed python version:) python
$ pyenv which python-config --> /home/michaelzfreeman/.pyenv/versions/3.5.1/bin/python-config
I install wxPython Phoenix using:
pip install -v -U -f https://wxpython.org/Phoenix/snapshot-builds/ wxPython_Phoenix 2>&1 | tee pip_wxpython-phoenix_install_output.txt
which gives build errors: http://files.djbarney.org/pip_wxpython-phoenix_install_output.txt
--
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 wxPython-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Does the same thing happen if you import wx in a Python session (which
has your Phoenix wheel installed) outside of the Blender environment?
(I wasn't sure if this is what you meant in the second half of your
opening statement above.)
Errors like this could happen if the system is loading the wrong version
of a shared library, for example if it loads a lib different than the
one it was linked with at build time. On linux you can use the ldd
command to determine where shared libraries are coming from, try this:
ldd
/home/michaelzfreeman/Downloads/blender-2.77-a5261e0-linux-glibc219-x86_64/2.77/python/lib/python3.5/site-packages/wx/_core.cpython-35m-x86_64-linux-gnu.so
PYTHON_CONFIGURE_OPTS='--enable-shared' LDFLAGS="-Wl,-rpath=$HOME/.pyenv/versions/2.7.5/lib" pyenv install 2.7.5
This will add the the python lib directory to the rpath of the python executable. The rpath is searched before LD_LIBRARY_PATH and ld.conf.so, so there's no way pyenv's installed python will try to load the system's libpython which may be of a different version."
So it could be another config option for penv, but it's late here now and I need a beer ;)
Michael Freeman wrote:
> The last error was due to something to do with having to use "python3"
> not "python" for the compilation for a reason I don't pretend to
> understand. Here is the description of the same issue someone else
> had:
> http://stackoverflow.com/questions/36723206/cython-compilation-error-dynamic-module-does-not-define-module-export-function
>
> So that made the build command: /opt/python3.5.1/bin/python3.5
> build.py -j 7 dox etg --nodoc sip build 2>&1 | tee
> phoenix_build_output.txt
Yes, when building any Python extension module it is important to use
the same Python you are intending to use the built module with. On your
system "python" is probably a symlink to python2.7 and the command
"python3" to the python3.5 binary. Look at `ls -l /usr/bin/python*` to
check.
>
> Demo's appear to run OK (apart from "demo.py" which get's stuck with
> 100% cpu usage but I assume it's huge and did not wait for completion).
You shouldn't need to. The main demo starts up with just a small-ish
app and doesn't load the rest of the demo modules until they are
selected. If it was stuck then something unexpected is happening and it
would be good to investigate it.
Michael Freeman wrote:
> So, finally, I got past the current error. It was pyenv ! I posted
> them an issue: https://github.com/yyuu/pyenv/issues/691
Which was why I suggested trying it in a normal Python virtualenv or
venv that was created from the stock Python on your system, instead of
using pyenv's custom builds.
> But first I could just use wx in Windows but I chose Phoenix because
> its cross platform (nad it has to be Python 3 because of Blender). I
> don't want to restrict myself and other users to just Windows for the
> project. So what is the status of Phoenix ? Are these just a few
> random bugs or is Phoenix still some way off "prime time" as it were ?
> I don't mind helping with the development but will have to consider
> another Python GUI module eventually as I can't spend all my time on this.
The plan is to have an official alpha soonish, once I have completed
some of the things I have in progress right now. The actual content of
the alpha won't be much different than what is in the snapshot builds
currently. But the plan is to also start putting it on PyPI, so it will
end up being more of an implementation and test of a new release
process, and also a means of making a statement to the community that ...