Thanks for the reference source. This is great.
Although I am running into an error during python setup.py build_apps
that I find quite confusing.
The issue is that my requirements.txt
looks like this:
βΆβΆ cat requirements.txt
numpy
psutil
scipy
pandas
panda3d
colored
pyquaternion
But running setuptools fails at this step:
βΆβΆ python setup.py build_apps
running build_apps
Building platforms: manylinux1_x86_64,macosx_10_9_x86_64,win_amd64
Gathering wheels for platform: manylinux1_x86_64
Looking in indexes: https://pypi.org/simple, https://archive.panda3d.org/simple/opt, https://archive.panda3d.org/thirdparty
Collecting numpy
Using cached numpy-1.20.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (13.7 MB)
ERROR: Could not find a version that satisfies the requirement psutil
ERROR: No matching distribution found for psutil
Traceback (most recent call last):
File "setup.py", line 5, in <module>
setup(
File "/Users/evan/anaconda3/envs/pooltool/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/Users/evan/anaconda3/envs/pooltool/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Users/evan/anaconda3/envs/pooltool/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Users/evan/anaconda3/envs/pooltool/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/evan/anaconda3/envs/pooltool/lib/python3.8/site-packages/direct/dist/commands.py", line 442, in run
self.build_runtimes(platform, True)
File "/Users/evan/anaconda3/envs/pooltool/lib/python3.8/site-packages/direct/dist/commands.py", line 593, in build_runtimes
wheelpaths = self.download_wheels(platform)
File "/Users/evan/anaconda3/envs/pooltool/lib/python3.8/site-packages/direct/dist/commands.py", line 497, in download_wheels
subprocess.check_call([sys.executable, '-m', 'pip'] + pip_args)
File "/Users/evan/anaconda3/envs/pooltool/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/Users/evan/anaconda3/envs/pooltool/bin/python', '-m', 'pip', '--disable-pip-version-check', 'download', '-d', '/Users/evan/Software/pooltool/build/__whl_cache__/manylinux1_x86_64_cp38', '-r', '/Users/evan/Software/pooltool/requirements.txt', '--only-binary', ':all:', '--platform', 'manylinux1_x86_64', '--abi', 'cp38', '--extra-index-url', 'https://archive.panda3d.org/simple/opt', '--extra-index-url', 'https://archive.panda3d.org/thirdparty']' returned non-zero exit status 1.
The strange part is that I can uninstall and reinstall psutil
with no problem using pip
:
βΆβΆ which python
/Users/evan/anaconda3/envs/pooltool/bin/python
βΆβΆ which pip
/Users/evan/anaconda3/envs/pooltool/bin/pip
βΆβΆ pip install psutil
Collecting psutil
Downloading psutil-5.8.0-cp38-cp38-macosx_10_9_x86_64.whl (236 kB)
|ββββββββββββββββββββββββββββββββ| 236 kB 3.5 MB/s
Installing collected packages: psutil
Successfully installed psutil-5.8.0
I think that whatever wrapper panda3d has built around setuptools may be fumbling this. Any ideas?