-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mac OS - Execute in external system terminal not working #16185
Comments
I get a slightly different traceback, but I can reproduce this error. Same as Spyder EnvLast login: Tue Aug 10 21:39:03 on ttys002
/var/folders/5v/28jqvwxs2cd5fj93gvwnykdrqc926z/T/spyder-rclary/run_spyder_6hvyy2_z.sh ; exit;
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
>> /var/folders/5v/28jqvwxs2cd5fj93gvwnykdrqc926z/T/spyder-rclary/run_spyder_6hvyy2_z.sh ; exit;
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = '/usr/local/mdsplus/pydevices:/Users/rclary/Documents/Python/mypython:/Users/rclary/Documents/Python/c2w:/Users/rclary/Documents/Python/c2w_psp:/Users/rclary/Documents/Python/dap_jscopes:/Users/rclary/Documents/Python/vessel:/Users/rclary/Documents/Python/msdb-csv:/usr/local/mdsplus/python'
program name = '/Users/rclary/Applications/Spyder.app/Contents/MacOS/python'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = '/Users/rclary/Applications/Spyder.app/Contents/MacOS/python'
sys.base_prefix = '/Users/runner/hostedtoolcache/Python/3.9.5/x64'
sys.base_exec_prefix = '/Users/runner/hostedtoolcache/Python/3.9.5/x64'
sys.platlibdir = 'lib'
sys.executable = '/Users/rclary/Applications/Spyder.app/Contents/MacOS/python'
sys.prefix = '/Users/runner/hostedtoolcache/Python/3.9.5/x64'
sys.exec_prefix = '/Users/runner/hostedtoolcache/Python/3.9.5/x64'
sys.path = [
'/usr/local/mdsplus/pydevices',
'/Users/rclary/Documents/Python/mypython',
'/Users/rclary/Documents/Python/c2w',
'/Users/rclary/Documents/Python/c2w_psp',
'/Users/rclary/Documents/Python/dap_jscopes',
'/Users/rclary/Documents/Python/vessel',
'/Users/rclary/Documents/Python/msdb-csv',
'/usr/local/mdsplus/python',
'/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python39.zip',
'/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9',
'/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/lib-dynload',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x0000000115c5ae00 (most recent call first):
<no Python frame>
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed] Conda EnvLast login: Tue Aug 10 21:40:13 on ttys002
/var/folders/5v/28jqvwxs2cd5fj93gvwnykdrqc926z/T/spyder-rclary/run_spyder_csral3ro.sh ; exit;
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
>> /var/folders/5v/28jqvwxs2cd5fj93gvwnykdrqc926z/T/spyder-rclary/run_spyder_csral3ro.sh ; exit;
P(A1) = 0.0132; P(A2) = 0.0529; P(A3) = 0.0661; P(A4) = 0.8677; Total = 1.0000
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed] What is interesting to me is that my error shows no |
I can poke around and see what the issue might be... |
Thanks for the quick reply @mrclary. For me I'm experiencing the behaviour in a conda env. I'm happy to help you with troubleshooting if there's any logs and things you'd like me to try on my side. :) |
Do you mean when you set Preferences->Python interpreter to use a Conda environment, you still get the error? |
|
I think that #16199 may resolve the issue. Here is what I've found:
The reason for the above behavior is that if the Terminal.app is launched by the user, the |
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
Execution in an external system terminal not working for macOS Big Sur & Spyder 5.1.1 (standalone Mac Installer).
I'm working with miniconda environments and have changed python interpreter to the correct environment. Running the code in a dedicated or open console works just fine.
What steps reproduce the problem?
What is the expected output? What do you see instead?
Running code in external system terminals works just like running in console within Spyder
Paste Traceback/Error Below (if applicable)
Versions
Dependencies
The text was updated successfully, but these errors were encountered: