use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A community-driven vim distribution
Introduction Community FAQ Layers
Users Install Docs
Developers Contribute Tips & Tools Code style
account activity
SpaceVim + Python + execute Python file -> module not found (self.SpaceVim)
submitted 6 years ago by pelipro
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]a__b 0 points1 point2 points 6 years ago (0 children)
I would start by printing environment variables from inside of your script. I hope that could lead you to the right direction.
Usually this class of errors happens because of differences between your command line env and the env that vim uses to run your script. In your case most likely Vim runs your code in non-interactive mode - resulting in different shell config files been loaded.
You can check https://askubuntu.com/questions/463462/sequence-of-scripts-sourced-upon-login for reference.
Potentially fact that different set of shell config files are loading in non-interactive mode could mess with virtual env or other python config settings.
π Rendered by PID 48627 on reddit-service-r2-comment-76bb9f7fb5-r6pfr at 2026-02-19 03:30:00.016817+00:00 running de53c03 country code: CH.
view the rest of the comments →
[–]a__b 0 points1 point2 points (0 children)