-
Notifications
You must be signed in to change notification settings - Fork 0
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
Exception on lint when Thonny installed with bundled Python #2
Comments
Workaround (error message to install edulint separately) implemented: a924165 |
So Thonny 4.1.2 fixed the bug -- sort of. Now when you do If you've only installed from Plugins dialog than during the lint the edulint module is not found (and we have a good error message for that). So we still have to install Interestingly enough this leads to a weird behavior. Update dialog reads the version of I haven't found a good way how to solve it yet. I'll keep looking tommorow. |
The current behavior (Thonny 4.1.4 from Nov 19, 2023) seems identical to the originally reported behavior (i.e. first install Thonny-EduLint as a plugin, then you have to install EduLint as a package). The commit da8fe76 replaces the current error msg (which was just barely on screen due to stack trace) with two new error msgs. One is a dialog, that appears during the failure. Second is a fake edulint finding that persists in the right window pane. |
A more comprehensive workaround was in thonny-edulint 0.6.2. |
Versions:
Thonny: 4.1.1 with bundled Python (likely since 4.0.0)
Thonny-edulint: 0.3.2 (which installs edulint 2.9.2)
Thonny 4.0.0 release notes
Problem
When
thonny-edulint
plugin is installed to Thonny with bundled Python thanthonny-edulint
throws exception during file linting.The root cause of this exception is
thonny-edulint
being unable to importedulint
, which should have been installed as a dependency. This dependency is installed into a path, that is currently not part of the python path (see thonny/thonny#2816).The actual exception is only a side effect of the unsuccessful import. For more information more detailed logs are attached bellow.
Resolution:
Will be fixed in Thonny 4.1.2. thonny/thonny#2816
Workaround:
We will add clearer error message in thonny-edulint, explaining to temporarily (until bug is fixed):
edulint
also as a package: Tools -> Manage packages... -> edulint -> InstallAlso note that it works out of the box when thonny and thonny-edulint is installed in existing python environment (i.e. using
python3 -m pip install thonny thonny-edulint
)Steps to reproduce:
Plugin install log
Frontend log noting the two errors
c:\Users\ondre\AppData\Roaming\Thonny\frontend.log
The text was updated successfully, but these errors were encountered: