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 'parlai_internal'

See original GitHub issue

Bug description Hi, I am trying to run the Wikipedia full dialogue model based on my own classed agent (get input from command line and give answers), and I got this error: https://parl.ai/docs/zoo.html#wizard-of-wikipedia-full-dialogue-retrieval-model

Traceback (most recent call last):
  File "agenttest.py", line 36, in <module>
    main()
  File "agenttest.py", line 16, in main
    default2 = create_agent_from_model_file(model_file='zoo:wizard_of_wikipedia/full_dialogue_retrieval_model/model')
  File "D:\py-anaconda\envs\parlai_gpu\lib\site-packages\parlai\core\agents.py", line 348, in create_agent_from_model_file
    return create_agent_from_opt_file(opt)
  File "D:\py-anaconda\envs\parlai_gpu\lib\site-packages\parlai\core\agents.py", line 384, in create_agent_from_opt_file
    model_class = load_agent_module(opt_from_file['model'])
  File "D:\py-anaconda\envs\parlai_gpu\lib\site-packages\parlai\core\loader.py", line 188, in load_agent_module
    my_module = importlib.import_module(module_name)
  File "D:\py-anaconda\envs\parlai_gpu\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'parlai_internal'

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

0reactions
github-actions[bot]commented, Jul 18, 2022

This issue has not had activity in 30 days. Please feel free to reopen if you have more issues. You may apply the “never-stale” tag to prevent this from happening.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ModuleNotFoundError: No module named 'parlai_internal'
I have downloaded the model (blender fine-tuned on ed) and have tried to interact with pretained model, however faced a problem. The command...
Read more >
ModuleNotFoundError: No module named 'mephisto.core'
The ParlAI installation instructions on github state that Python 3.7 or higher is required, however it appears that you are using Python 3.6 ......
Read more >
Model Zoo — ParlAI Documentation
Model Zoo¶. This is a list of pretrained ParlAI models. They are listed by task, or else in a pretraining section (at the...
Read more >
no module named 'torch' - You.com | The AI Search Engine ...
Hi @jinfagang I am getting a ModuleNotFoundError when I try to run the ./make.sh command by coning this repository in my virtual machine....
Read more >
parlai - PyPI
ParlAI (pronounced “par-lay”) is a python framework for sharing, training and testing dialogue models, from open-domain chitchat, to task-oriented dialogue, ...
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