Skip to content
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

Cannot install phasepy in 3.10 on Windows Environment: Getting Requirements to build wheel did not run successfully #17

Open
basementcrusader opened this issue Apr 21, 2023 · 2 comments

Comments

@basementcrusader
Copy link

Hi, I'm trying to install phasepy on my windows machine using python 3.10. Use many other python packages already and I made sure that I wasn't missing cython but to no avail.

Attached is the command line output.

pip install phasepy
Collecting phasepy
Using cached phasepy-0.0.51.tar.gz (222 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
╰─> [17 lines of output]
Traceback (most recent call last):
File "C:\Users\me\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Users\me\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Users\me\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\me\AppData\Local\Temp\pip-build-env-5n_vq2f_\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in get_requires_for_build_wheel
return self.get_build_requires(config_settings, requirements=['wheel'])
File "C:\Users\me\AppData\Local\Temp\pip-build-env-5n_vq2f
\overlay\Lib\site-packages\setuptools\build_meta.py", line 323, in get_build_requires
self.run_setup()
File "C:\Users\me\AppData\Local\Temp\pip-build-env-5n_vq2f
\overlay\Lib\site-packages\setuptools\build_meta.py", line 487, in run_setup
super(BuildMetaLegacyBackend,
File "C:\Users\me\AppData\Local\Temp\pip-build-env-5n_vq2f
\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in run_setup
exec(code, locals())
File "", line 35, in
NameError: name 'build_ext' is not defined
[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.

@gustavochm
Copy link
Owner

Hey, sorry for the problem.
Last time it tried to use python 3.10 I also faced a compatibility issue with python. do you need to stick to python 3.10? If not you could please try using python 3.9? Python 3.9 (and others 3.8, 3.7, 3.6) work just fine.

Gustavo

@basementcrusader
Copy link
Author

basementcrusader commented Apr 21, 2023

Hi Gustavo,

Thank you for your prompt reply. It would make it much easier to work on what I'm trying to do with 3.10+

Update: Python 3.9 functionality with phasepy is somewhat successful, though conda will not install it from a prompt window

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants