You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, in the "main" file the command "flask" is called, but on some machine, especially when working on a computer where the python package is installed in the "user" environment, and not globally (because you don't have proper access rights for example) the command "flask" might not be found, though the "flask" package is installed properly. This will lead to this error:
/usr/lib/python3.6/runpy.py:125: RuntimeWarning: 'grid2viz.main' found in sys.modules after import of package 'grid2viz', but prior to execution of 'grid2viz.main'; this may result in unpredictable behaviour
warn(RuntimeWarning(msg))
INFO Using the default provided environment
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/benjamin/.local/lib/python3.6/site-packages/grid2viz/main.py", line 56, in <module>
main(args)
File "/home/benjamin/.local/lib/python3.6/site-packages/grid2viz/main.py", line 43, in main
proc = subprocess.Popen(my_cmd, env=my_env)
File "/usr/lib/python3.6/subprocess.py", line 729, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'flask': 'flask'
To fix that, i think updating the call to "sys.executable -m flask" instead of simply "flask" will solve this issue.
The text was updated successfully, but these errors were encountered:
It will be difficult for us to test the impact of this change (and see if it fixes your problem).
Maybe the best would be if you could make the change you are suggesting, and see if it fixes your issue ? If it does, we'll integrate it (either via pull request, or simply tell us and we'll commit the changes).
Hello, in the "main" file the command "flask" is called, but on some machine, especially when working on a computer where the python package is installed in the "user" environment, and not globally (because you don't have proper access rights for example) the command "flask" might not be found, though the "flask" package is installed properly. This will lead to this error:
To fix that, i think updating the call to "sys.executable -m flask" instead of simply "flask" will solve this issue.
The text was updated successfully, but these errors were encountered: