question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[TerminalIPythonApp] WARNING | Unrecognized alias: 'im', it will have no effect.

See original GitHub issue

I’m used to write ipython -im <modulename> to do interactive Python hacking. However, on one installation it doesn’t work.

Working machine:

(env) brahe$ ipython -im os
Python 3.8.2 (default, Jul 16 2020, 14:00:26) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.18.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: path
Out[1]: <module 'posixpath' from '/usr/lib/python3.8/posixpath.py'>

In [2]: 

Non-working machine:

(env) arvid-m12$ ipython -im os
[TerminalIPythonApp] WARNING | Unrecognized alias: 'im', it will have no effect.
Python 3.8.2 (default, Jul 16 2020, 14:00:26) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.18.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: path
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-1-012ab3a6b187> in <module>
----> 1 path

NameError: name 'path' is not defined

Both machines have the same versions, only from pip and no system installation:

$ dpkg --list | grep ipyth
$ pip list | grep ipyth
ipython            7.18.1
ipython-genutils   0.2.0

Using python -i -m os works on both machines.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
mxjeffcommented, Jan 18, 2021

Looks related to #12711, try to split options:

ipython -i m os
0reactions
Symbadiancommented, Apr 28, 2022

@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!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues with IPython magics [TerminalIPythonApp] WARNING ...
[TerminalIPythonApp] WARNING | Unrecognized alias: 'depth', it will have no effect. Regarding above, ghit hub suggested downgrading from 3.9.11 ...
Read more >
Issue with IPython/Jupyter on Spark (Unrecognized alias)
Unrecognized alias : "profile=pyspark", it will probably have no effect. defaults to the default profile not the pyspark profile.
Read more >
Solved: Unrecognized alias: '--profile=pyspark' - Cloudera ...
Now the problem is it is not recognizing the profile. Unrecognized alias: '--profile=pyspark', it will probably have no effect. Help me to integrate...
Read more >
Step-by-step instruction on notebook with Octave kernel ...
I have a great need to install Octave kernel on IPython notebook( or Jupyter?) ... alias: '--kernel=octave_kernel', it will probably have no effect....
Read more >
Configuration options — nbconvert 7.2.6 documentation
input prompts will not appear when converting to PDF, but they will appear when exporting to HTML. CLI Flags and Aliases#. The dynamic...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found