question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError: cannot import name 'hash_unicode' from 'murmurhash'

See original GitHub issue

import spacy_stanza gives me this error:


Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "E:\WPy-3710\python-3.7.1.amd64\lib\site-packages\spacy_stanza\__init__.py", line 2, in <module>
    from spacy import blank, Language
  File "E:\WPy-3710\python-3.7.1.amd64\lib\site-packages\spacy\__init__.py", line 10, in <module>
    from thinc.api import prefer_gpu, require_gpu, require_cpu  # noqa: F401
  File "E:\WPy-3710\python-3.7.1.amd64\lib\site-packages\thinc\api.py", line 22, in <module>
    from .layers import Dropout, Embed, expand_window, HashEmbed, LayerNorm, Linear
  File "E:\WPy-3710\python-3.7.1.amd64\lib\site-packages\thinc\layers\__init__.py", line 53, in <module>
    from .strings2arrays import strings2arrays
  File "E:\WPy-3710\python-3.7.1.amd64\lib\site-packages\thinc\layers\strings2arrays.py", line 2, in <module>
    from murmurhash import hash_unicode
ImportError: cannot import name 'hash_unicode' from 'murmurhash' (E:\WPy-3710\python-3.7.1.amd64\lib\site-packages\murmurhash\__init__.py)

I am using Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit (AMD64)] on win32, which is WinPython on Windows 10 64 bit.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
ozumpecommented, Sep 15, 2021

I just had the same issue and solved it with.

pip uninstall murmurhash pip uninstall spacy pip install -U spacy

2reactions
Code4SAFrankiecommented, Mar 6, 2021

Works in WinPython 3.8.1 though

Read more comments on GitHub >

github_iconTop Results From Across the Web

ubuntu 18.04 - ImportError: cannot import name 'hash_unicode'
I fixed this by reinstall murmurhash. It upgraded from 0.28.0 to 1.0.5.
Read more >
Python 3.7 spaCy Help Needed- Environment Inconsistency ...
When I run import spacy I get an error ImportError: cannot import name 'hash_unicode' from 'murmurhash'. I am puzzled because I have used...
Read more >
SPACY IMPORT ERROR! · Issue #6368 - GitHub
ImportError : cannot import name 'prefer_gpu' from 'thinc.api' (/Users/lexroverts/opt/anaconda3/lib/python3.7/site-packages/thinc/api.py) ...
Read more >
Importerror: Cannot Import Name 'Chatbot' From 'Chatterbot' - ADocLib
ImportError : cannot import name 'chatbot' from 'chatterbot'.hey guys I'm getting this error trying to build a chatbot Traceback most recent call last:...
Read more >
AttributeError: module 'murmurhash' has no attribute 'hash'
(https://prodi.gy/docs/workflow-first-steps) I just installed the new 1.7.1 version and I'm receiving the following error when I got to ...
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