alexprengere / currencyconverter

A Python currency converter using the European Central Bank data.
http://alexprengere.github.io/currencyconverter
Apache License 2.0
215 stars 59 forks source link

ModuleNotFoundError: No module named 'currency_converter' #32

Closed vighneshck closed 2 years ago

vighneshck commented 3 years ago

When I run the following import statement:

from currency_converter import CurrencyConverter

I get an error saying ModuleNotFoundError: No module named 'currency_converter'

Note: I have already installed the package using: pip install currencyconverter

vighneshck commented 3 years ago

This seems to be an issue only with the latest version (0.16.4) of the package.

I was able to fix it by running: pip install currencyconverter==0.16.3

alexprengere commented 3 years ago

I cannot reproduce, it must be something else that went wrong when you installed currencyconverter the first time.

virtualenv .toto
source .toto/bin/activate
pip install currencyconverter
python -c "from currency_converter import CurrencyConverter; c = CurrencyConverter()"
pip freeze  # shows 0.16.4

Also, the changes between 0.16.3 and 0.16.4 are just the embedded data and the license file, so such bug happening would be strange. And the releasing pipeline should catch this (tests passing are necessary for the packages to be built and uploaded).