-
Notifications
You must be signed in to change notification settings - Fork 987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MYPYPATH incorrect please remove it #1124
Comments
What was your current directory when you got this error? |
What are the "normal site-packages are not writeable"? - If I knew, I could chown them if that's the problem. What are they and do they need to be richard:users or something else? BTW ls -lR /home/richard | less shows that all are richard users as they should (same for /home).
|
Here's something I find odd. On a PC where the install of thonny had no problem, ls -lR .local/lib/python3.8/site-packages | wc - l gives a 'word count' or line count of 211, but on the PC where the install had the error mentioned before, the line count is 7021. What's that all about? |
I can see where this is going. I'm probably going to just go with a cloned base build of Arch and install everything and tweak it all over again which will probably take maybe an hour and a half if I want thonny on that PC and delete the entire build with the fault. |
So I built an entire Arch build today and did everything the same as on my other two PCs (I have a list printed out) and I got the same errors - Thonny does not show up in Start / Development with IDLE2 and IDLE3 as it does on the other two PCs and I get the following errors - oh and I put [richard@arch-hp ~]$ thonny WARNING: MyPy: /home/richard/.local/lib/python3.8/site-packages is in the MYPYPATH. Please remove it. Brand new install of Arch 3-23-20 |
I have found the only solution that works. First I pip3 uninstall thonny and then I git clone yay an AUR helper (which I didn't want to do) and then I yay -Sy thonny and then the Thonny icon shows up in Start / Development. This has been the only way to get that icon. I then ran a .py file and I didn't get any errors and then I tried it by starting it from terminal and ran the same file and It exited cleanly - no errors. I recommend to stop telling people to install with pip3 install thonny or pip install thonny at least if they're in Arch linux and to use yay. Using git clone doesn't work either. |
Sorry for late reply. When you install
This is not Thonny-specific -- in some Linuxes |
I could now reproduce this (it simply wasn't reproducible in my development environment) and also found the reason: python/mypy#7604 Will include a fix in the next release. |
MyPy doesn't accept extra stubs even in a subdirectory under site-packages, therefore MyPy checks were not working. As turtle.pyi is now in Typeshed, I don't need to include it anymore. User can specify another directory with the new configuration parameter.
MyPy doesn't accept extra stubs even in a subdirectory under site-packages, therefore MyPy checks were not working. As turtle.pyi is now in Typeshed, I don't need to include it anymore. User can specify another directory with the new configuration parameter.
Someone please - the following error says remove it. Well, how do I do that? I did a grep -iR for mypypath but could find nothing of interest.
On Arch VMs in Windows 10 on three PCs, I got Thonny running on two of them, but on the third one, as soon as the 'import' line is hit, I get an error in terminal. Why terminal? Well because I never got an icon in my xfce4 gui. (All 3 PCs have the same Arch build and packages)(and the given website didn't help either). Here's the error:
The text was updated successfully, but these errors were encountered: