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.

ModuleNotFoundError: No module named 'data_util_zhihu'

See original GitHub issue

I use a03_TextRNN,but these two lines has error:

from data_util_zhihu import load_data_multilabel_new,create_voabulary,create_voabulary_label
from tflearn.data_utils import pad_sequences #to_categorical

The error message said:

Traceback (most recent call last):
  File "E:/test_opencv/text_classification-master/a03_TextRNN/p8_TextRNN_train.py", line 10, in <module>
    from data_util_zhihu import load_data_multilabel_new,create_voabulary,create_voabulary_label
ModuleNotFoundError: No module named 'data_util_zhihu'

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
f20500909commented, Jul 26, 2018
ImportError: No module named tflearn.data_utils

tflearn is a Python package use pip install tflearn to slove it

you can find create_voabulary_label from https://github.com/brightmart/text_classification/blob/master/a02_TextCNN/other_experiement/data_util_zhihu.py

you can copy /a02_TextCNN/other_experiement/data_util_zhihu.py to your catalog

@peterHeuz

2reactions
brightmartcommented, Jun 1, 2018

hi,

check TextCNN, there is a file named data_util.py it has two function:

one is create vocabulary for words and labels, another is transform data into indices using vocabulary dict.

bright


发件人: Rhaegal notifications@github.com 发送时间: 2018年6月1日 14:55 收件人: brightmart/text_classification 抄送: Subscribed 主题: [brightmart/text_classification] ModuleNotFoundError: No module named ‘data_util_zhihu’ (#59)

I use a03_TextRNN,but these two line:

from data_util_zhihu import load_data_multilabel_new,create_voabulary,create_voabulary_label from tflearn.data_utils import pad_sequences #to_categorical

The error message said:

Traceback (most recent call last): File “E:/test_opencv/text_classification-master/a03_TextRNN/p8_TextRNN_train.py”, line 10, in <module> from data_util_zhihu import load_data_multilabel_new,create_voabulary,create_voabulary_label ModuleNotFoundError: No module named ‘data_util_zhihu’

― You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fbrightmart%2Ftext_classification%2Fissues%2F59&data=02|01||a04a5ecefcfe40e0c5fe08d5c78ca2e0|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636634329193719784&sdata=yeJderOGqRBWtgel2UIMj509OZzk6Bm%2FbGojArWJEAA%3D&reserved=0, or mute the threadhttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FASuYMIP9N7w0nfWIdFYYaJMQJYyB-O6Kks5t4OVVgaJpZM4UWMS8&data=02|01||a04a5ecefcfe40e0c5fe08d5c78ca2e0|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636634329193719784&sdata=9P8liKsdqYiDE0l3GC5mt0DP5AMdfNRlmrptz3U%2FEu4%3D&reserved=0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ModuleNotFoundError: No module named 'dateutil' in Python
The Python "ModuleNotFoundError: No module named 'dateutil'" occurs when we forget to install the python-dateutil module before importing it ...
Read more >
ImportError: No module named dateutil.parser - Stack Overflow
On Ubuntu you may need to install the package manager pip first: sudo apt-get install python-pip. Then install the python-dateutil package with:
Read more >
ModuleNotFoundError: No module named 'dateutil' - YouTube
from dateutil import parserModuleNotFoundError: No module named ' dateutil 'pip install python-dateutilmore binary sloth err videos:pip : The ...
Read more >
Conda环境安装Yleaf报错 - 知乎专栏
... line 168, in addpackage exec(line) File "<string>", line 1, in <module> ModuleNotFoundError: No module named '_distutils_hack' Remainder ...
Read more >
Importerror no module named dateutil : Multiple ways to Fix
Solution 1 : Use the below command for installing python-dateutil package. The above command will install the latest stable version for python-dateutil package ......
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