-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: Cannot install brainrender using pip #237
Comments
Thanks a lot for reporting this @shunnnli Installation with pip on the latest development branch
We will make a new release very soon (so it's installable from pypi) but if you could double-check and report back whether it works for you, that would be great. |
Describe the bug
Pip install brainrender output's an error when trying to build wheel
I'm using an M2 max macbook pro installed macOS 13.4.1 (c), the conda environment is installed using following command: conda create --name brainrender python=3.8 -y
Expected behavior
Screenshots
(brainrender) shunli@shuns-mbp ~ % pip install brainrender
Collecting brainrender
Using cached brainrender-2.0.5.5-py3-none-any.whl (113 kB)
Collecting numpy (from brainrender)
Using cached numpy-1.24.4-cp38-cp38-macosx_11_0_arm64.whl (13.8 MB)
Collecting pandas (from brainrender)
Using cached pandas-2.0.3-cp38-cp38-macosx_11_0_arm64.whl (10.7 MB)
Collecting vedo==2021.0.5 (from brainrender)
Using cached vedo-2021.0.5.tar.gz (9.3 MB)
Preparing metadata (setup.py) ... done
Collecting k3d==2.7.4 (from brainrender)
Using cached K3D-2.7.4-py2.py3-none-any.whl (12.0 MB)
Collecting msgpack (from brainrender)
Using cached msgpack-1.0.5-cp38-cp38-macosx_11_0_arm64.whl (68 kB)
Collecting pyyaml>=5.3 (from brainrender)
Using cached PyYAML-6.0.tar.gz (124 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [48 lines of output]
running egg_info
writing lib/PyYAML.egg-info/PKG-INFO
writing dependency_links to lib/PyYAML.egg-info/dependency_links.txt
writing top-level names to lib/PyYAML.egg-info/top_level.txt
Traceback (most recent call last):
File "/Users/shunli/miniconda3/envs/brainrender/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/Users/shunli/miniconda3/envs/brainrender/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Users/shunli/miniconda3/envs/brainrender/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "/private/var/folders/zd/cj43fhkd6pddg_t4m2l4bhth0000gn/T/pip-build-env-qtzkdy9b/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/private/var/folders/zd/cj43fhkd6pddg_t4m2l4bhth0000gn/T/pip-build-env-qtzkdy9b/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
self.run_setup()
File "/private/var/folders/zd/cj43fhkd6pddg_t4m2l4bhth0000gn/T/pip-build-env-qtzkdy9b/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 338, in run_setup
exec(code, locals())
File "", line 288, in
File "/private/var/folders/zd/cj43fhkd6pddg_t4m2l4bhth0000gn/T/pip-build-env-qtzkdy9b/overlay/lib/python3.8/site-packages/setuptools/init.py", line 107, in setup
return distutils.core.setup(**attrs)
File "/private/var/folders/zd/cj43fhkd6pddg_t4m2l4bhth0000gn/T/pip-build-env-qtzkdy9b/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/private/var/folders/zd/cj43fhkd6pddg_t4m2l4bhth0000gn/T/pip-build-env-qtzkdy9b/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/private/var/folders/zd/cj43fhkd6pddg_t4m2l4bhth0000gn/T/pip-build-env-qtzkdy9b/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/private/var/folders/zd/cj43fhkd6pddg_t4m2l4bhth0000gn/T/pip-build-env-qtzkdy9b/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1234, in run_command
super().run_command(command)
File "/private/var/folders/zd/cj43fhkd6pddg_t4m2l4bhth0000gn/T/pip-build-env-qtzkdy9b/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/private/var/folders/zd/cj43fhkd6pddg_t4m2l4bhth0000gn/T/pip-build-env-qtzkdy9b/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 314, in run
self.find_sources()
File "/private/var/folders/zd/cj43fhkd6pddg_t4m2l4bhth0000gn/T/pip-build-env-qtzkdy9b/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 322, in find_sources
mm.run()
File "/private/var/folders/zd/cj43fhkd6pddg_t4m2l4bhth0000gn/T/pip-build-env-qtzkdy9b/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 551, in run
self.add_defaults()
File "/private/var/folders/zd/cj43fhkd6pddg_t4m2l4bhth0000gn/T/pip-build-env-qtzkdy9b/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 589, in add_defaults
sdist.add_defaults(self)
File "/private/var/folders/zd/cj43fhkd6pddg_t4m2l4bhth0000gn/T/pip-build-env-qtzkdy9b/overlay/lib/python3.8/site-packages/setuptools/command/sdist.py", line 104, in add_defaults
super().add_defaults()
File "/private/var/folders/zd/cj43fhkd6pddg_t4m2l4bhth0000gn/T/pip-build-env-qtzkdy9b/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults
self._add_defaults_ext()
File "/private/var/folders/zd/cj43fhkd6pddg_t4m2l4bhth0000gn/T/pip-build-env-qtzkdy9b/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext
self.filelist.extend(build_ext.get_source_files())
File "", line 204, in get_source_files
File "/private/var/folders/zd/cj43fhkd6pddg_t4m2l4bhth0000gn/T/pip-build-env-qtzkdy9b/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 107, in getattr
raise AttributeError(attr)
AttributeError: cython_sources
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
The following is the package installed after running conda create:
![image](https://private-user-images.githubusercontent.com/44044548/254074948-c3f64022-2b80-4ded-bb3a-14421c41f513.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwOTkxMDIsIm5iZiI6MTcyNjA5ODgwMiwicGF0aCI6Ii80NDA0NDU0OC8yNTQwNzQ5NDgtYzNmNjQwMjItMmI4MC00ZGVkLWJiM2EtMTQ0MjFjNDFmNTEzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTExVDIzNTMyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ4NzRmMjkwMjAxZjlmNmUxZTFmN2FiZjYzOGUxM2E5NjEyNjk0NjIyOGNmNmI3ODFiYWY2ODhlMjQ2ZTJkY2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.bj08ulx_-1CkYsjtOL3FeJ_AKrBvaE1i8dUQ6fLfI0E)
I updated wheel and setuptools already but still failed to install
The text was updated successfully, but these errors were encountered: