Closed t3chman closed 7 years ago
@jietang hey, not sure if you saw this, but thought I should tag you just in case. Decided opening an issue was probably more effective than sorting through chat logs on gitter :)
Good idea, let's try to debug this.
Agree with you that it's not finding the Python 3.5 library. What version of CMake are you using (cmake --version)?
Can you try running in a python3 shell
import sysconfig sysconfig.get_config_var('LIBPL') '...' sysconfig.get_config_var('LIBDIR') '...' and report the results?
Can you also report the value of env | grep PATH
Looking later in the log, it's not finding boost-python3. If you're on OSX you can install it with
brew install boost-python --with-python3
I'm running Debian 8 x64. CMake 3.0.2. Python 3.5.1. I'm using anaconda3 - for full disclosure, but it shouldn't be affecting it, unless doom-py or dependencies have hard coded locations, since I have python installed into various directories and activate/deactivate the virtual env's. I'll also list the other env variables I export when activating the python3 env, but they shouldn't be required once we get the issue figured out.
PATH=/env/python/python3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
PYTHON_LIBRARIES=/env/python/python3/lib/python3.5
PYTHON_INCLUDE_DIRS=/env/python/python3/include/python3.5m
I'll see if I can build boost-python3.
Other results:
> python
Python 3.5.1 |Continuum Analytics, Inc.| (default, Dec 7 2015, 11:16:01)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sysconfig
>>> sysconfig.get_config_var('LIBPL')
'/env/python/python3/lib/python3.5/config-3.5m'
>>> sysconfig.get_config_var('LIBDIR')
'/env/python/python3/lib'
I found a reference http://askubuntu.com/a/515485 that suggested that cmake 3.0 only looks up to python3.4.
Can you try building after applying the following patch to doom_py https://gist.github.com/jietang/41723d0d7905e22e5b33a3c7ad455e08
Good find! Yeah, I'll see if I can make some time to test that this afternoon. I'll be heading out of town for the rest of the week though, so if I don't get back to you Today, I'll get back to you this weekend.
Stale
For me installing ZDoom deps (https://zdoom.org/wiki/Compile_ZDoom_on_Linux) seems to have fixed the issue.
Related to 320bf0c4b865663e91df55944ae98fed2235808d proposed fix, which built, but had issues with use. I've attempted to build the latest commit and can't get it to build. I've even attempted manually configuring the
PYTHON_LIBRARY
env variable pointing to the correct python library, but regardless, it's giving the following error: