Skip to content

Unable to run ipapp.py #14159

@marostelka

Description

@marostelka

There is a problem with the ipython/terminal/ipapp.py file.

On the first line is this:

#!/usr/bin/env python

this is an mistake, because further down in the code there is a relative import that makes the file not executable with ./ipapp.py.
So please remove #!/usr/bin/env python.

Steps to reproduce:

# download repo
cd /tmp/
git clone https://github.com/ipython/ipython.git

# run file
cd ipython/IPython/terminal/
./ipapp.py

Example of error:

Traceback (most recent call last):
  File "/tmp/ipython/IPython/terminal/./ipapp.py", line 36, in <module>
    from .interactiveshell import TerminalInteractiveShell
ImportError: attempted relative import with no known parent package

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions