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.

2018.3.0: Pylint: 'F0001:No module named "test.py"' appears in every file with a path that has a space

See original GitHub issue

Since installing the 2018.3.0 version of this extension about an hour ago, I get 'F0001:No module named "test.py"' at the top of every module from pylint (for line 1, character 1), with test.py being replaced with the file’s filename.

This happens even if the file is the only file in its dir. This also only happens with existing VS Code projects, but not new ones.

This is definitely related to this extension and pylint. Because when I copy my project to a new folder, then open it in VSC, these errors disappear. But the original project location still has these errors.

This makes it incredibly difficult to fix on my own, since I don’t know where to look, with regards to VSC. It must be something to do with an internal VS Code database?

Edit: As noted here, this problem only happens with paths with spaces in them. I was able to reproduce this myself.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
amysparkcommented, Mar 29, 2018

I’m getting this error only from projects with spaces in their paths, either new or existing. Can anyone check if this is the case too? (VS Code 1.22.0-insider on Sierra)

1reaction
brettcannoncommented, Mar 29, 2018

OK, 2018.3.1 is now live with a fix for this! Sorry everyone for letting this slip out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

2018.3.0: Pylint: 'F0001:No module named "test.py ... - GitHub
2018.3.0: Pylint: 'F0001:No module named "test.py"' appears in every file with a path that has a space #1239.
Read more >
Py.test No module named * - Stack Overflow
Working with Python 3 and getting the same error on a similar project layout, I solved it by adding an __init__ file to...
Read more >
Changing standard (Python) test discovery - Pytest
The --ignore-glob option allows to ignore test file paths based on Unix shell-style wildcards. If you want to exclude test-modules that end with...
Read more >
Pylint configuration - CodeFlow
Pylint requires configuration via a .pylint configuration file as detailed in Pylint's documentation. If you don't specify your custom configuration file we ...
Read more >
Testing — Pylint 2.12.2 documentation
First, each Python file is considered to be a test case and it should be accompanied by a .txt file, having the same...
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