Closed Alexandr153 closed 2 months ago
it says ModuleNotFoundError: No module named 'requests'
, so you'll need to first install the requests
module. although there could be some other modules you're missing, so I recommend to run pip install -r requirements.txt
to automatically install all required packages like @n0n1m said, if you haven't already.
if it still doesn't work, check if you're installing the required packages and ufpy in one environment, so for example installing requests
in a global environment and installing ufpy in a venv will still result in an error
I think this is a bug that should get fixed. Can you try pip install requests first?
@bleudev should address this issue anyway
Collecting ufpy
Using cached ufpy-0.2.tar.gz (12 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [26 lines of output]
Traceback (most recent call last):
File "/Users/alexandrmitin/PycharmProjects/ufpy/.venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/Users/alexandrmitin/PycharmProjects/ufpy/.venv/lib/python3.12/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/alexandrmitin/PycharmProjects/ufpy/.venv/lib/python3.12/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/_f/9ky0n60n0pqf1jqfhsb83p480000gn/T/pip-build-env-jj4328me/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 332, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/_f/9ky0n60n0pqf1jqfhsb83p480000gn/T/pip-build-env-jj4328me/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 302, in _get_build_requires
self.run_setup()
File "/private/var/folders/_f/9ky0n60n0pqf1jqfhsb83p480000gn/T/pip-build-env-jj4328me/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 503, in run_setup
super().run_setup(setup_script=setup_script)
File "/private/var/folders/_f/9ky0n60n0pqf1jqfhsb83p480000gn/T/pip-build-env-jj4328me/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 318, in run_setup
exec(code, locals())
File "<string>", line 3, in <module>
File "/private/var/folders/_f/9ky0n60n0pqf1jqfhsb83p480000gn/T/pip-install-dkxkcs84/ufpy_2ff68897654643c3a9427555ad2100f4/ufpy/__init__.py", line 42, in <module>
from ufpy.github import *
File "/private/var/folders/_f/9ky0n60n0pqf1jqfhsb83p480000gn/T/pip-install-dkxkcs84/ufpy_2ff68897654643c3a9427555ad2100f4/ufpy/github/__init__.py", line 2, in <module>
import ufpy.github.download
File "/private/var/folders/_f/9ky0n60n0pqf1jqfhsb83p480000gn/T/pip-install-dkxkcs84/ufpy_2ff68897654643c3a9427555ad2100f4/ufpy/github/download.py", line 8, in <module>
from requests import get
ModuleNotFoundError: No module named 'requests'
[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
I'll try to help you.
Pull Request #52
Unable to install module ufpy in PyCharm CE on MacOS with last version of pip and ARM64.
52