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.

Runtime Warning due to functions named like modules

See original GitHub issue

Errors like this

RuntimeWarning: 'rasa_nlu.test' found in sys.modules after import of package 'rasa_nlu', but prior to execution of 'rasa_nlu.test'; this may result in unpredictable behaviour

are apparently due to functions being named like modules.

This has occured with:

  • rasa_nlu.train
  • rasa_core.train
  • rasa_core.run
  • rasa_nlu.test
  • rasa_core.test
  • rasa_core.visualize

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
erohmensingcommented, May 9, 2019

Hey @math77 , these are just warnings that you can ignore. We haven’t found any “unpredictable behaviour” as a result of that first warning so far. 🙂

0reactions
stale[bot]commented, Aug 15, 2019

This issue has been automatically closed due to inactivity. Please create a new issue if you need more help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python 3.6 project structure leads to RuntimeWarning
This warning gets emitted when the -m switch implementation is about to go and run an already imported module's code again in the...
Read more >
warnings — Warning control — Python 3.11.1 documentation
Python programmers issue warnings by calling the warn() function defined in this module. (C programmers use PyErr_WarnEx() ; see Exception Handling for details) ......
Read more >
Resolve "Unable to import module" errors from Python ...
I receive an "Unable to import module" error when I try to run my AWS Lambda code in Python. How do I resolve...
Read more >
JavaScript modules - MDN Web Docs
This guide gives you all you need to get started with JavaScript module syntax.
Read more >
Dependency Walker Frequently Asked Questions (FAQ)
I also get a "Warning: At least one module has an unresolved import due to ... DLL (like the one on Windows XP)...
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