Skip to content
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

[IPython3] dont work, crashed #8337

Closed
DeadNumbers opened this issue Apr 20, 2015 · 8 comments
Closed

[IPython3] dont work, crashed #8337

DeadNumbers opened this issue Apr 20, 2015 · 8 comments
Milestone

Comments

@DeadNumbers
Copy link

➜  ~  ipython3 %debug
Traceback (most recent call last):
  File "/usr/bin/ipython3", line 5, in <module>
    start_ipython()
  File "/usr/lib/python3.4/site-packages/IPython/__init__.py", line 120, in start_ipython
    return launch_new_instance(argv=argv, **kwargs)
  File "/usr/lib/python3.4/site-packages/IPython/config/application.py", line 573, in launch_instance
    app.initialize(argv)
  File "<string>", line 2, in initialize
  File "/usr/lib/python3.4/site-packages/IPython/config/application.py", line 75, in catch_config_error
    return method(app, *args, **kwargs)
  File "/usr/lib/python3.4/site-packages/IPython/terminal/ipapp.py", line 320, in initialize
    super(TerminalIPythonApp, self).initialize(argv)
  File "<string>", line 2, in initialize
  File "/usr/lib/python3.4/site-packages/IPython/config/application.py", line 75, in catch_config_error
    return method(app, *args, **kwargs)
  File "/usr/lib/python3.4/site-packages/IPython/core/application.py", line 375, in initialize
    self.init_profile_dir()
  File "/usr/lib/python3.4/site-packages/IPython/core/application.py", line 282, in init_profile_dir
    p = ProfileDir.find_profile_dir_by_name(self.ipython_dir, self.profile, self.config)
  File "/usr/lib/python3.4/site-packages/IPython/core/profiledir.py", line 230, in find_profile_dir_by_name
    return cls(location=profile_dir, config=config)
  File "/usr/lib/python3.4/site-packages/IPython/config/configurable.py", line 86, in __init__
    super(Configurable, self).__init__(**kwargs)
  File "/usr/lib/python3.4/site-packages/IPython/utils/traitlets.py", line 565, in __init__
    setattr(self, key, value)
  File "/usr/lib/python3.4/site-packages/IPython/utils/traitlets.py", line 445, in __set__
    obj._notify_trait(self.name, old_value, new_value)
  File "/usr/lib/python3.4/site-packages/IPython/utils/traitlets.py", line 602, in _notify_trait
    c(name, old_value, new_value)
  File "/usr/lib/python3.4/site-packages/IPython/core/profiledir.py", line 68, in _location_changed
    self.check_dirs()
  File "/usr/lib/python3.4/site-packages/IPython/core/profiledir.py", line 159, in check_dirs
    self.check_static_dir()
  File "/usr/lib/python3.4/site-packages/IPython/core/profiledir.py", line 144, in check_static_dir
    from IPython.html import DEFAULT_STATIC_FILES_PATH
ImportError: No module named 'IPython.html'

If you suspect this is an IPython bug, please report it at:
    https://github.com/ipython/ipython/issues
or send an email to the mailing list at ipython-dev@scipy.org

You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.

Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
    c.Application.verbose_crash=True

@DeadNumbers DeadNumbers changed the title dont work, crashed [IPyhon3] dont work, crashed Apr 20, 2015
@DeadNumbers DeadNumbers changed the title [IPyhon3] dont work, crashed [IPython3] dont work, crashed Apr 20, 2015
@minrk minrk added this to the no action milestone Apr 20, 2015
@minrk
Copy link
Member

minrk commented Apr 20, 2015

How did you install IPython?

@keithwoj
Copy link

Installed IPython on Linux Mint 17.1 Cinnamon using the instructions given in http://ipython.org/ipython-doc/stable/install/install.html.

(1) git clone --recursive https://github.com/ipython/ipython.git
(2) cd ipython
(3) sudo python setup.py install

Then tried running an IPython notebook or IPython or iptest and received the following message each time:

Traceback (most recent call last):
File "/usr/local/bin/ipython", line 4, in
from IPython import start_ipython
File "/usr/local/lib/python2.7/dist-packages/IPython/init.py", line 47, in
from .core.application import Application
File "/usr/local/lib/python2.7/dist-packages/IPython/core/application.py", line 22, in
from traitlets.config.application import Application, catch_config_error
ImportError: No module named traitlets.config.application

Any help is appreciated!

@minrk
Copy link
Member

minrk commented Jun 18, 2015

For running from master right now, while the dependencies have not yet been released, you will need to install with:

pip install -e . -r requirements.txt

@minrk minrk closed this as completed Jun 18, 2015
@keithwoj
Copy link

Thanks minrk, I had tried "pip install -e" but did not add the flag with the requirements.txt. It works now at the command line and I can use it.

@minrk
Copy link
Member

minrk commented Jun 18, 2015

It's a temporary measure while we haven't yet released the dependencies. It won't be necessary anymore once they are out, hopefully in a few weeks time.

@vvagias
Copy link

vvagias commented Jun 18, 2015

@minrk You rock! Thanks for the tip it worked and I'm up and running. I never would have guessed to run pip like that. Learned something new :)

@naught101
Copy link
Contributor

Hrm, has this changed recently? I just tried it, and I'm getting:

In [9]: from traitlets.config.application import Application, catch_config_error
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/home/naught101/miniconda3/envs/science/lib/python3.4/importlib/_bootstrap.py in _find_and_load_unlocked(name, import_)

AttributeError: 'module' object has no attribute '__path__'

During handling of the above exception, another exception occurred:

ImportError                               Traceback (most recent call last)
<ipython-input-9-6a9731af4b98> in <module>()
----> 1 from traitlets.config.application import Application, catch_config_error

ImportError: No module named 'traitlets.config'; 'traitlets' is not a package

I used pip install --upgrade -e . -r requirements.txt, which succeeded. requirements.txt contains:

-e git+https://github.com/ipython/traitlets.git#egg=traitlets

and after importing the module I get:

In [12]: print(dir(traitlets))
['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', '__warningregistry__', 'absolute_import', 'warn']

@mahdiiix
Copy link

I installed ipython3 with apt-get and when I running that on bash it gives me :
Traceback (most recent call last): File "/usr/bin/ipython3", line 4, in <module> from IPython import start_ipython ImportError: No module named 'IPython'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants