You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Create a clean virtual environment via python -m venv dir and activate it
issue pip install comtradeapicall
start a python shell and issue import comtradeapicall
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'
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
The text was updated successfully, but these errors were encountered:
Describe the bug
After installing comtradeapicall via pip, importing fails du to missing modules, because there are no dependencies declared.
To Reproduce
Steps to reproduce the behavior:
python -m venv dir
and activate itpip install comtradeapicall
import comtradeapicall
Expected behavior
Every dependency should be satisfied automatically vi pip
Package check
python version
The text was updated successfully, but these errors were encountered: