ImportError: No module named magic

See original GitHub issue

I use ubuntu 16.04 digitalocean

taking error

Traceback (most recent call last): File "sample/remote.py", line 2, in <module> from webwhatsapi import WhatsAPIDriver File "/usr/local/lib/python2.7/site-packages/webwhatsapi/__init__.py", line 19, in <module> import magic ImportError: No module named magic

python -V Python 2.7.12

python-magic is already the newest version (1:5.25-2ubuntu1.1).

can someone help me?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
cesarandreslopezcommented, Jul 5, 2018

@kzk888 install magic like this:

pip install python-magic

https://github.com/mukulhase/WebWhatsapp-Wrapper/issues/307

0reactions
rajnitishcommented, Apr 22, 2020

I had done pip3 install python-magic There after doing pip install python-magic-bin==0.4.14

Collecting python-magic-bin==0.4.14 Could not find a version that satisfies the requirement python-magic-bin==0.4.14 (from versions: ) No matching distribution found for python-magic-bin==0.4.14

Still problem persists… import magic ImportError: No module named magic

Read more comments on GitHub >

github_iconTop Results From Across the Web

No module called magic yet python-magic is installed
I am trying to edit some code that uses python-magic but I get an Import Error: No module called magic. Before I looked...
Read more >
ModuleNotFoundError: No module named 'magic-import'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'magic-import' How to remove the Modul.
Read more >
No module named 'magic' 或者ImportError - CSDN博客
但是windows下直接import magic使用magic模块的时候,可能会报错No module named 'magic' ,或者ImportError: failed to find libmagic.
Read more >
How to use python-magic 5.19-1 - Intellipaat Community
I need to decide MIME-types from documents without postfix in python3 and I considered python-wizardry as ... how would I utilize magic at ......
Read more >
contiki-ng/Developers - Gitter
It seems to be the file, so perhaps python-magic is messing around with you ... _internal import main ImportError: No module named 'pip._internal'....
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