False positive when checking for inconsistent setup script path on Windows
See original GitHub issue> python setup.py develop
running develop
Checking .pth file support in C:\project\venv\Lib\site-packages\
C:\project\venv\Scripts\pythonw.exe -E -c pass
TEST PASSED: C:\project\venv\Lib\site-packages\ appears to support .pth files
error: ("Can't get a consistent path to setup script from installation directory", 'c:\\project\\', 'c:\\project')
I am not sure what exactly is the cause (I did not have this problem previously, but suddenly sees it when coming back to work on an old project), but it seems to come from a quirk of realpath()
:
>>> import os
>>> os.path.realpath('.')
'C:\\Users\\uranusjr\\'
>>> os.path.realpath('../')
'C:\\Users\\'
>>> os.path.realpath('..')
'C:\\Users'
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:8 (5 by maintainers)
Top Results From Across the Web
365 Defender 'SuspiciousScriptDrop' malware was prevented ...
365 Defender 'SuspiciousScriptDrop' malware was prevented alerts, False positive? - Microsoft Q&A.
Read more >mixed slashes with os.path.join on windows - Stack Overflow
I'm unsure as to why you have mixed slashes in your sys path (have you used a linux os to add some folders?)...
Read more >Why can't Windows handle an environment variable in Path?
Evidently with enough change to its contents, the PATH variable undergoes some extra processing in the Environment Variables dialog that allows ...
Read more >False Negative for Log4j v1.x - Tenable Community
Hello! We are new to Nessus Pro. We have begun scanning a number of our systems and found inconsistent results with the log4j...
Read more >Suppression of false positive warnings - PVS-Studio
Suppression of false positives through diagnostic configuration files (.pvsconfig) · Filtering analyzer messages by a fragment of source code ( ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Of course!
Oh I missed the PR. Thanks for the pointer.