Open kalvdans opened 3 years ago
Looks related to #12711, try to split options:
ipython -i m os
hey, @kalvdans and @mxjeff,
I am experiencing a similar error and I am not sure how to interpret this.
Maybe someone can assist here as well, please?
''' Python 3.9.7 (default, Sep 16 2021, 08:50:36) Type "copyright", "credits" or "license" for more information.
IPython 7.31.1 -- An enhanced Interactive Python.
help(runfile) Help on function runfile in module spydercustomize:
runfile(filename=None, args=None, wdir=None, namespace=None, post_mortem=False, current_namespace=False) Run filename args: command line arguments (string) wdir: working directory namespace: namespace for execution post_mortem: boolean, whether to enter post-mortem mode on error current_namespace: if true, run the file in the current namespace
runfile('/Users/symbadian/Desktop/Full Experiments/Experiments/3DCNN Template/packages.py', wdir='/Users/symbadian/Desktop/Full Experiments/Experiments/3DCNN Template', current_namespace=True)
WARNING: This is not valid Python code. If you want to use IPython magics, flexible indentation, and prompt removal, we recommend that you save this file with the .ipy extension.
runfile('/Users/symbadian/3DCNNtesting/packages.ipy', wdir='/Users/symbadian/3DCNNtesting', current_namespace=True) [TerminalIPythonApp] WARNING | Unrecognized alias: 'batch', it will have no effect. [TerminalIPythonApp] WARNING | Unrecognized alias: 'epoch', it will have no effect. [TerminalIPythonApp] WARNING | Unrecognized alias: 'videos', it will have no effect. [TerminalIPythonApp] WARNING | Unrecognized alias: 'nclass', it will have no effect. [TerminalIPythonApp] WARNING | Unrecognized alias: 'output', it will have no effect. [TerminalIPythonApp] WARNING | Unrecognized alias: 'color', it will have no effect. [TerminalIPythonApp] WARNING | Unrecognized alias: 'skip', it will have no effect. [TerminalIPythonApp] WARNING | Unrecognized alias: 'depth', it will have no effect.
'''
@MatParr, it might be the same issue, but please bring it up in the spydercustomize forums first, since that's where the runfile
function comes from.
Ok thanx @kalvdans for your response nevertheless, where is the connecting link for such forum? Send over please and I would do the needful
@MatParr Let's continue on email to not put unrelated discussion in this issue, my email is ipython@kalvdans.no-ip.org
@kalvdans great, reaching out to you in a short.
@kalvdans Hey Pal, I finally figured it out, Obtain package compatibility: I got rid of the spyder application with the help of a friend from discord and it was not showing the errors for such stuff on the new M1 macs. I ran this directly from the terminal and this displayed outdated packages that required upgrades. I AM not sure what cause spyder to not be able to recognize such an issue. Maybe a professional can explain further.
I have the same code running fully on the terminal as spyder was experiencing all sorts of glitches, sadly I had to part way with it after using such for so long.
I am really hoping they fix this and as of just now the anaconda navigator is still problematic when downloading such from the website, it's not running even when deploying the bash file approach still the same. What a shame!!
I'm used to write
ipython -im <modulename>
to do interactive Python hacking. However, on one installation it doesn't work.Working machine:
Non-working machine:
Both machines have the same versions, only from pip and no system installation:
Using
python -i -m os
works on both machines.