-
-
Notifications
You must be signed in to change notification settings - Fork 304
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
[python] not properly isolated from system #1423
Comments
I had the same issue, make sure to have the pint and inflect packages installed.
And then rename your site-packages folder to whatever like site-packages.backup |
Thank you very much @Ghurir , that fixed it for me. |
Usually you should get a popup telling you that dependencies are missing and asks you if they should be installed now. |
That popup did show and it did install something. Including pint and inflect, according to the popup. Yet the plugin only worked after I manually installed these two packages globally. |
Just changed this recently. We'll have to postpone this until 0.27. |
While you're at it: You might also want to make the popup stay open after the process is finished. Now it disappears as quickly as it appears - it took me several tries to take the screenshot fast enough. Maybe add a manual close button so the user can actually read if the process was successful or not? |
It closes only on success. At least since the commit above. But it has been like that before iirc |
Updating albert to version 0.26.3 broke it again. Now manually installing |
Its not worse. it is a fundamental improvement. the python interpreter is now isolated from the system packages. as a side effect you cannot use the hacky workaround. sure there may be bugs. but the method @Ghurir pointed out has never been a solution. please enable the plugin, quit albert, start it from terminal, try to install the dependencies, quit again and post stdout here. (eg using |
Here you go: https://termbin.com/xkdc |
and here's the part, where the dependencies are installed again:
|
Doesn't work. I already purged the whole app including cache and config when the bug appeared the first time --> no effect. Is this Here's the log:
|
see albertlauncher/python@cda9f21 please pull and check again |
@hfr-hfr please show a full log using 26.3 the one above is not up to date. and i wonder what is prints . because |
That's what I meant: Is it supposed to call the system package? Here's the new log (using 26.3 & having pulled the above commit), same error: https://termbin.com/iuey |
No. I think I found at least one problem. site_import is enabled even if the Python interpreter is set up in isolated mode. |
Package source
official package
App logs
Current Behavior
Plug-in unit_converter fails to load. --> ImportError on
typing_extensions.
Expected Behavior
Plug-in should load without failing.
Anything else?
Deleting
site-packages
and re-installing dependencies does not fix it. Neither does a clean re-install of albert launcher.The text was updated successfully, but these errors were encountered: