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

ModuleNotFoundError: No module named 'requests' #8

Open
jrobichaud opened this issue Jan 7, 2025 · 0 comments
Open

ModuleNotFoundError: No module named 'requests' #8

jrobichaud opened this issue Jan 7, 2025 · 0 comments

Comments

@jrobichaud
Copy link

Problem

carbon sdk depends on requests but it not marked as a dependency

Traceback (most recent call last):
  File "/Users/jules/Documents/test-carbone-io/main.py", line 1, in <module>
    import carbone_sdk
  File "/Users/jules/Documents/test-carbone-io/venv/lib/python3.13/site-packages/carbone_sdk/__init__.py", line 1, in <module>
    from .carbone_sdk import CarboneSDK
  File "/Users/jules/Documents/test-carbone-io/venv/lib/python3.13/site-packages/carbone_sdk/carbone_sdk.py", line 1, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'

Fix

See: https://python-packaging.readthedocs.io/en/latest/dependencies.html#specifying-dependencies

In setup.py:

setuptools.setup(
     #...
      install_requires=[
          'requests',
      ],
     #...
)

Workaround:

  • install requests manually
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

1 participant