No module named 'logzero'

See original GitHub issue
  • Using latest version as provided on the master branch
  • Searched for similar issues including closed ones

What is the purpose of your issue?

  • Bug
  • Feature Request
  • Question
  • Other

Description

I was able to successfully install the requirements and then when I tried downloading a song, I got an error saying:

ModuleNotFoundError: No module named ‘logzero’

Log

I cannot run this as the logzero hasn’t installed

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:19 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
linusgcommented, Jan 6, 2018

So, I probably found the solution. Just noticed mine all are in dist-packages, not site-packages, which is normally not a problem as long as the directory is in Python’s search path! The output of

python3 -c 'import sys; print(sys.path)'

will clarify. If you don’t see the path '/usr/local/lib/python3.6/site-packages' in there, your other imports will fail as well. If so, edit your ~/.profile and append a line

export PYTHONPATH="${PYTHONPATH}:/usr/local/lib/python3.6/site-packages"

then source ~/.profile and you should be good to go.

2reactions
linusgcommented, Jan 6, 2018

So, it’s getting weird but we’ll find a solution. Please tell me the output of

/usr/local/bin/python3 -V
/usr/local/bin/pip3 -V
/usr/local/bin/pip3 freeze | grep -i logzero

If the last command doesn’t show anything, please do /usr/local/bin/pip3 install logzero and do

/usr/local/bin/python3 -c "import logzero"
/usr/local/bin/pip3 freeze | grep -i logzero

Using absolute pths should not be necessary, but let’s try that just to be sure.

Read more comments on GitHub >

github_iconTop Results From Across the Web

logzero - PyPI
Provides a fully configured standard Python logger object. JSON logging (with integrated python-json-logger); Pretty formatting, including level-specific colors ...
Read more >
How to fix "ModuleNotFoundError: No module named 'logzero'"
How to fix "ModuleNotFoundError: No module named 'logzero'" ... You must first install the package before you can use it in your code....
Read more >
ModuleNotFoundError: No module named 'logzero'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'logzero' How to remove the ModuleNotF.
Read more >
Python doesn't work: ImportError: No module named 'logging'
Try to find out where this module is located: sudo updatedb locate logging | grep python. Then try adding this path to PYTHONPATH....
Read more >
logzero: Python logging made easy — logzero 1.7.0 ...
Configures and returns a fully configured logger instance, no hassles. If a logger with the specified name already exists, it returns the existing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found