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
I am calling a local .sh script from FastAPI to lock the screen of another windows machine on the network via sshpass. When I run the script through another process (manually as root, Flask, etc.), the script works fine. FastAPI doesn't seem to like it, however.
The only thing I can think of is maybe the app isn't recognizing the host name for some reason, but I'm new to these things. Any help is appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
First Check
Commit to Help
Example Code
Description
I am calling a local
.sh
script from FastAPI to lock the screen of another windows machine on the network viasshpass
. When I run the script through another process (manually asroot
, Flask, etc.), the script works fine. FastAPI doesn't seem to like it, however.The only thing I can think of is maybe the app isn't recognizing the host name for some reason, but I'm new to these things. Any help is appreciated.
Operating System
Linux
Operating System Details
Yunohost
FastAPI Version
1.0~ynh2
Pydantic Version
ModuleNotFoundError: No module named 'pydantic'
Python Version
3.9.2
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions