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

Missing dependencies for PIP #15

Open
prognaest opened this issue Nov 29, 2023 · 0 comments
Open

Missing dependencies for PIP #15

prognaest opened this issue Nov 29, 2023 · 0 comments

Comments

@prognaest
Copy link

Describe the bug

After installing comtradeapicall via pip, importing fails du to missing modules, because there are no dependencies declared.

Note: The README.md states that you need to install packages mentioned in requirements.txt, which is something you do not need if the PyPi package is configured properly.

To Reproduce

Steps to reproduce the behavior:

  1. Create a clean virtual environment via python -m venv dir and activate it
  2. issue pip install comtradeapicall
  3. start a python shell and issue import comtradeapicall
  4. The following error is prompted:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<<venv>>\lib\site-packages\comtradeapicall\__init__.py", line 4, in <module>
    from .PreviewGet import previewFinalData
  File "<<venv>>\lib\site-packages\comtradeapicall\PreviewGet.py", line 6, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'
  1. You need to install every single missing module by hand or add them manually to your requirements.txt

Expected behavior

Every dependency should be satisfied automatically vi pip

Package check

> pip show comtradeapicall
Name: comtradeapicall
Version: 1.0.20
Summary: A package to call UN Comtrade APIs
Home-page:
Author:
Author-email: untradestats <[email protected]>
License:
Location: c:\users\sebastian.laester\gitlab\welthandelsmodell\.env\lib\site-packages
Requires:
Required-by:

python version

  • Python version 3.x
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