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
When you install deepgram-sdk in python, there are two packages created. One importable with from deepgram import ... and one with from tests import ...
deepgram and tests are two folders added under /home/vscode/.local/lib/python3.10/site-packages
In my projects whenever I do from tests.test_ai_models.test_openai.py there is a pytest import error that says that it cannot find test_ai_models under tests. This is because tests redirects to deepgram's package. Its very common for projects to have a dedicated tests directory, so this seems like unwanted behavior.
Steps to reproduce
Run pip install deepgram-sdk.
Please tell us about your environment
I'm using VSCode and a devcontainer. My main operating system is PopOs, but in the dev container its Debian. I'm using Python 3.10.14.
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm
Other information
I'm 95% sure the problem gets solved if you just remove the init.py from the tests directory.
The text was updated successfully, but these errors were encountered:
What is the current behavior?
When you install deepgram-sdk in python, there are two packages created. One importable with
from deepgram import ...
and one withfrom tests import ...
deepgram
andtests
are two folders added under/home/vscode/.local/lib/python3.10/site-packages
In my projects whenever I do
from tests.test_ai_models.test_openai.py
there is a pytest import error that says that it cannot findtest_ai_models
undertests
. This is becausetests
redirects to deepgram's package. Its very common for projects to have a dedicatedtests
directory, so this seems like unwanted behavior.Steps to reproduce
Run
pip install deepgram-sdk
.Please tell us about your environment
I'm using VSCode and a devcontainer. My main operating system is PopOs, but in the dev container its Debian. I'm using Python 3.10.14.
Other information
I'm 95% sure the problem gets solved if you just remove the init.py from the tests directory.
The text was updated successfully, but these errors were encountered: