Hello, I think I've run into an issue due to this project where the packages installed via pip have hyphens in their names, which makes them hard to import.
Repro steps:
Install a given types package, eg pip install types-stripe
Attempt to import the package, eg from stripe_stubs import SubscriptionSchedule
Expected result:
We should be able to import the stripe_stubs package without any issue.
Actual result:
Python cannot find the package.
Discussion:
The core issue is that python cannot import packages with hyphens in the names of the directory inside of the project/system env/lib/python3.X/site-packages folder. Most projects will replace any hyphens with underscores so this problem does not happen.
Hello, I think I've run into an issue due to this project where the packages installed via pip have hyphens in their names, which makes them hard to import.
Repro steps:
pip install types-stripe
from stripe_stubs import SubscriptionSchedule
Expected result: We should be able to import the
stripe_stubs
package without any issue.Actual result: Python cannot find the package.
Discussion: The core issue is that python cannot import packages with hyphens in the names of the directory inside of the project/system
env/lib/python3.X/site-packages
folder. Most projects will replace any hyphens with underscores so this problem does not happen.