Weird behavior with Obsidian installed from Flathub(Flatpak) and python #225
Replies: 3 comments 2 replies
-
Interesting. Thank you for reporting this! I will inspect this better later, just wanted to say I've seen your message. 🙂👍 |
Beta Was this translation helpful? Give feedback.
-
I finally came back to this. I'm not familiar with Flatpak, so I'm not going to try it out myself. But I added the mention to README.md like you suggested. Thank you again for reporting this! 🙂 If you or anyone else later comes up with more information that may help solve this problem, post here and I'll reconsider inspecting this. 👍 |
Beta Was this translation helpful? Give feedback.
-
I can confirm the same issue even in the new FlatPak versions. Upon switching to AppImage the issue is gone, the entries in PATH are also properly detected. I tried adjusting the permissions through Flatseal with no effect. It's generally not limited to just this extension, as I ran into this issue in another plugin also - I assume that the Python binary in the Flatpak environment is neither a venv (which I also tried running by path) nor the global sytem binary (likely the runtime as suggested). Offtopic, but related: Thank you for your work, this plugin is great! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!


My system is Fedora 35 Gnome 41.6
I had Obsidian installed from a default Gnome GUI apps store app named "Software"
and it install Obsidian app from Flathub, not from dnf repos
At first I tried to create a shell-command to launch a python script from a specific virtual environment.
and I got an exception

that means python virtual env was not activated
After trying to get different debug info I have decided to print python version from within script, I have created script.sh:
created shell-command in your plugin
and got really weird output

It's weird because I haven't python 3.9 in my system, there is python3.10 out of the box in Fedora 35 and I didn't install other versions
The only python3.9 that i have find with
sudo find / -iname "python3.9*"
wereThen I downloaded Obsidian AppImage version and opened as vault the same folder, and this problem has disappeared, everything works fine, the virtualenv is activated, the python script works with the activated virtualenv, and therefore the script correctly imports all the modules.
I'm not sure what is the cause of this problem, may be it's because of Flatpak apps run in isolated env inside the OS, the fact that it runs python3.9 is hinting at this.
I'm not sure that the way to fix this exists, so it may make sense to write in the "Known Issues" section that the Obsidian app installed from Flatpak limit the performance of your plugin
Beta Was this translation helpful? Give feedback.
All reactions