macos – .py runs fine if I copy/paste into terminal- Automation.app gets ‘import seaborn as sns Module not found?


OSX 12.7 Python 3.13

I have a .py file that is executable and whereas I used to copy the script and paste into a Python shell, now I can enter Desktop/Plot/RGB_plot.py inn an opened terminal window and it works (much slower than pasting script directly into Python shell).

I would like to use Automator to run with open terminal and entering the line (ultimately i would like this shortcut to server as an “update graph” method as more data is entered into a separate spreadsheet.

In Automator I am using Runshell Script using the /bin/zsh shell (but I have tried the other options with same results. Using Python3 shell it doesn’t get past Desktop (not defined) name Pass input: to stdin

Command line is Desktop/Plot/RGB_plot.py

as an FYI, I get same error in IDLE, and Launcher. VSC finds no problems, but I have to copy and paste into python shell for it to run (but it runs quickly(?))

any ideas?



Source link

Related Posts

About The Author

Add Comment