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 arepl_dump

See original GitHub issue

Issue Description

Describe the bug I copied the code for Misc/Dumping, once pasted, VSC puts a red suiggly line under “arepl_dump” in from arepl_dump import dump I hit run without debug, I get variables dumped on the right hand side but in terminal I get

File “c:\Projects\Python\10 Py Apps10Days\dumpallvar.py”, line 1, in from arepl_dump import dump ModuleNotFoundError: No module named ‘arepl_dump’

To Reproduce Steps to reproduce the behavior:

  1. Described above

Expected behavior it should work according to what is mentioned at https://marketplace.visualstudio.com/items?itemName=almenon.arepl

Screenshots AREPL-VSC

Other Information (please complete the following information):

  • OS: Windows10 64bit
  • Python Version 3.9

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bernhardkaindlcommented, Mar 24, 2022

I’ve had this error even inside vscode, at least when using a venv. For this and the case when run outside of vscode, this ìmport appears to help (yes, the finallyseems to be needed as well, otherwise I get a new editor with these lines in it as an Unitled file an of course arepl does not work then:

try:
    from arepl_dump import dump  # type: ignore
except ModuleNotFoundError:
    def dump() -> None:
        return
finally:
    pass
1reaction
eliassalcommented, Mar 26, 2021

Yes, good idea is not to generate the suiglly red line and leave us run commands without errors. Can this be fixed?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ModuleNotFoundError: No module named 'en_core_web_sm'
for me this code works : !pip install spacy -q !python -m spacy download en_core_web_sm -q. and # Text modules import spacy import ......
Read more >
modulenotfounderror vscode - You.com | The AI Search ...
Click on F1 and select interpreter; Run the code poetry run python .\examples\divide_numbers.py Error occur : ModuleNotFoundError: No module named 'module_name'.
Read more >
How To Fix ModuleNotFoundError (No Module Named) in ...
ModuleNotFoundError no module named error is simply because the module you are trying to include is not installed. ; import keyword followed by...
Read more >
ModuleNotFoundError: no module named Python Error [Fixed]
ModuleNotFoundError : no module named Python Error [Fixed] · When you try to import a module in a Python file, Python tries to...
Read more >
Error: “ModuleNotFoundError: No Module Named... - Intel
ModuleNotFoundError : No module named 'openvino.model_zoo.model_api'. Resolution. As of OpenVINO™ Toolkit 2022.1 release, Open Model Zoo Demos requires the ...
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