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

ModuleNotFoundError: No module named 'covid.john_hopkins' #15

Closed
AvinashReddy3108 opened this issue Mar 25, 2020 · 4 comments
Closed

ModuleNotFoundError: No module named 'covid.john_hopkins' #15

AvinashReddy3108 opened this issue Mar 25, 2020 · 4 comments

Comments

@AvinashReddy3108
Copy link

@AvinashReddy3108 AvinashReddy3108 commented Mar 25, 2020

Environment: Manjaro Linux [x64]
Python version: 3.8.2 (on base system AND virtualenv)
Covid library version: 2.0.1 (from PyPI)
File/Script: https://github.com/kandnub/TG-UserBot/blob/master/userbot/plugins/covid.py

Here's the traceback of the error [on my virtualenv, Python 3.8.2]

[11:12:18 / ERROR] userbot.utils.pluginManager: Failed to import userbot.plugins.covid due to the error(s) below.
[11:12:18 / ERROR] userbot.utils.pluginManager: No module named 'covid.john_hopkins'
Traceback (most recent call last):
  File "/mnt/sda4/GitHub Repos/PaperplaneRemix/userbot/utils/pluginManager.py", line 250, in _import_module
    spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/mnt/sda4/GitHub Repos/PaperplaneRemix/userbot/plugins/covid.py", line 17, in <module>
    from covid import Covid
  File "/mnt/sda4/PPRPLNRMX/lib/python3.8/site-packages/covid/__init__.py", line 2, in <module>
    from .john_hopkins import Covid as JohnHopkinsCovid
ModuleNotFoundError: No module named 'covid.john_hopkins'

The same on my base system [Manjaro Linux (latest x64, KDE), Python 3.8.2]

[avinash@rustbucket-manjaro ~]$ python3 --version
Python 3.8.2

[avinash@rustbucket-manjaro ~]$ pip3 --version
pip 20.0.2 from /usr/lib/python3.8/site-packages/pip (python 3.8)

[avinash@rustbucket-manjaro ~]$ pip3 install --user covid
Processing ./.cache/pip/wheels/e3/67/27/ca2216ad133cb7d84eb2cc7a68fd322ae65531e071779ee798/covid-2.0.1-py3-none-any.whl
Requirement already satisfied: requests in /usr/lib/python3.8/site-packages (from covid) (2.23.0)
Collecting pydantic
  Using cached pydantic-1.4-cp38-cp38-manylinux2010_x86_64.whl (9.6 MB)
Requirement already satisfied: chardet>=3.0.2 in /usr/lib/python3.8/site-packages (from requests->covid) (3.0.4)
Requirement already satisfied: idna>=2.5 in /usr/lib/python3.8/site-packages (from requests->covid) (2.9)
Requirement already satisfied: urllib3>=1.21.1 in /usr/lib/python3.8/site-packages (from requests->covid) (1.25.8)
Installing collected packages: pydantic, covid
Successfully installed covid-2.0.1 pydantic-1.4

[avinash@rustbucket-manjaro ~]$ python
Python 3.8.2 (default, Feb 26 2020, 22:21:03) 
[GCC 9.2.1 20200130] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import covid
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/avinash/.local/lib/python3.8/site-packages/covid/__init__.py", line 2, in <module>
    from .john_hopkins import Covid as JohnHopkinsCovid
ModuleNotFoundError: No module named 'covid.john_hopkins'
>>> 
AvinashReddy3108 added a commit to AvinashReddy3108/PaperplaneRemix that referenced this issue Mar 25, 2020
- requirements: locked down 'covid' to 1.4.4
until ahmednafies/covid#15 gets solved.

- custom: event.answer() made moar godly.
@ahmednafies

This comment has been minimized.

Copy link
Owner

@ahmednafies ahmednafies commented Mar 25, 2020

I have released the new version yesterday, although tests ran fine but perhaps I missed something. I will look into it.

@ahmednafies

This comment has been minimized.

Copy link
Owner

@ahmednafies ahmednafies commented Mar 25, 2020

Thank you so much for reporting this issue, I managed to reproduce the error and currently working on a bugfix

@ahmednafies

This comment has been minimized.

Copy link
Owner

@ahmednafies ahmednafies commented Mar 25, 2020

@AvinashReddy3108:
Please update your package to the latest version "2.0.4", that should have the correct fix. :)

@AvinashReddy3108

This comment has been minimized.

Copy link
Author

@AvinashReddy3108 AvinashReddy3108 commented Mar 25, 2020

@AvinashReddy3108:
Please update your package to the latest version "2.0.4", that should have the correct fix. :)

Alright, will test and let you know.
EDIT: it works, thanks for the fix.

Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.