ipython 7.7.0 install issues

Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

ipython 7.7.0 install issues

John Dey-2
I'm building Python 3.7.4 with ipython7.7.0.

Issue:  Ipython depends on traitlets, and traitlets depends on ipython_genutils.
ipython_genutils has been depreciated. pypi ipython_genutils: "Pretend this doesn’t exist. Nobody should use it."

what am I doing wrong?  How to install traitlets?  jgraph also depends on traitlets.

```
>>> import IPython
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/app/easybuild/software/Python/3.7.4-foss-2016b-fh1/lib/python3.7/site-packages/IPython/__init__.py", line 54, in <module>
    from .core.application import Application
  File "/app/easybuild/software/Python/3.7.4-foss-2016b-fh1/lib/python3.7/site-packages/IPython/core/application.py", line 23, in <module>
    from traitlets.config.application import Application, catch_config_error
ModuleNotFoundError: No module named 'traitlets'
>>> import IPython
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/app/easybuild/software/Python/3.7.4-foss-2016b-fh1/lib/python3.7/site-packages/IPython/__init__.py", line 54, in <module>
    from .core.application import Application
  File "/app/easybuild/software/Python/3.7.4-foss-2016b-fh1/lib/python3.7/site-packages/IPython/core/application.py", line 23, in <module>
    from traitlets.config.application import Application, catch_config_error
ModuleNotFoundError: No module named 'traitlets'
```


_______________________________________________
IPython-dev mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/ipython-dev
Reply | Threaded
Open this post in threaded view
|

Re: ipython 7.7.0 install issues

Matthias Bussonnier
How are you installing IPython ? 

When installing with pip or conda; it should pull all the dependencies automatically. 
-- 
Matthias


On Fri, 9 Aug 2019 at 12:59, John Dey <[hidden email]> wrote:
I'm building Python 3.7.4 with ipython7.7.0.

Issue:  Ipython depends on traitlets, and traitlets depends on ipython_genutils.
ipython_genutils has been depreciated. pypi ipython_genutils: "Pretend this doesn’t exist. Nobody should use it."

what am I doing wrong?  How to install traitlets?  jgraph also depends on traitlets.

```
>>> import IPython
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/app/easybuild/software/Python/3.7.4-foss-2016b-fh1/lib/python3.7/site-packages/IPython/__init__.py", line 54, in <module>
    from .core.application import Application
  File "/app/easybuild/software/Python/3.7.4-foss-2016b-fh1/lib/python3.7/site-packages/IPython/core/application.py", line 23, in <module>
    from traitlets.config.application import Application, catch_config_error
ModuleNotFoundError: No module named 'traitlets'
>>> import IPython
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/app/easybuild/software/Python/3.7.4-foss-2016b-fh1/lib/python3.7/site-packages/IPython/__init__.py", line 54, in <module>
    from .core.application import Application
  File "/app/easybuild/software/Python/3.7.4-foss-2016b-fh1/lib/python3.7/site-packages/IPython/core/application.py", line 23, in <module>
    from traitlets.config.application import Application, catch_config_error
ModuleNotFoundError: No module named 'traitlets'
```

_______________________________________________
IPython-dev mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/ipython-dev

_______________________________________________
IPython-dev mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/ipython-dev
Reply | Threaded
Open this post in threaded view
|

Re: ipython 7.7.0 install issues

John Dey-2
I am building everything from source, over 700 modules.


On Fri, Aug 9, 2019 at 2:28 PM Matthias Bussonnier <[hidden email]> wrote:
How are you installing IPython ? 

When installing with pip or conda; it should pull all the dependencies automatically. 
-- 
Matthias


On Fri, 9 Aug 2019 at 12:59, John Dey <[hidden email]> wrote:
I'm building Python 3.7.4 with ipython7.7.0.

Issue:  Ipython depends on traitlets, and traitlets depends on ipython_genutils.
ipython_genutils has been depreciated. pypi ipython_genutils: "Pretend this doesn’t exist. Nobody should use it."

what am I doing wrong?  How to install traitlets?  jgraph also depends on traitlets.

```
>>> import IPython
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/app/easybuild/software/Python/3.7.4-foss-2016b-fh1/lib/python3.7/site-packages/IPython/__init__.py", line 54, in <module>
    from .core.application import Application
  File "/app/easybuild/software/Python/3.7.4-foss-2016b-fh1/lib/python3.7/site-packages/IPython/core/application.py", line 23, in <module>
    from traitlets.config.application import Application, catch_config_error
ModuleNotFoundError: No module named 'traitlets'
>>> import IPython
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/app/easybuild/software/Python/3.7.4-foss-2016b-fh1/lib/python3.7/site-packages/IPython/__init__.py", line 54, in <module>
    from .core.application import Application
  File "/app/easybuild/software/Python/3.7.4-foss-2016b-fh1/lib/python3.7/site-packages/IPython/core/application.py", line 23, in <module>
    from traitlets.config.application import Application, catch_config_error
ModuleNotFoundError: No module named 'traitlets'
```

_______________________________________________
IPython-dev mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/ipython-dev
_______________________________________________
IPython-dev mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/ipython-dev

_______________________________________________
IPython-dev mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/ipython-dev
Reply | Threaded
Open this post in threaded view
|

Re: ipython 7.7.0 install issues

Nicholas Bollweg
Ipython, notebook, traitlets and genutils used to all be distributed and developed together, and were split apart in The Big Split. 

https://blog.jupyter.org/the-big-split

The wording on genutils is overly harsh, should more mean "don't start using it as a dependency". It is perfectly fine code in practice.

On Fri, Aug 9, 2019, 18:27 John Dey <[hidden email]> wrote:
I am building everything from source, over 700 modules.


On Fri, Aug 9, 2019 at 2:28 PM Matthias Bussonnier <[hidden email]> wrote:
How are you installing IPython ? 

When installing with pip or conda; it should pull all the dependencies automatically. 
-- 
Matthias


On Fri, 9 Aug 2019 at 12:59, John Dey <[hidden email]> wrote:
I'm building Python 3.7.4 with ipython7.7.0.

Issue:  Ipython depends on traitlets, and traitlets depends on ipython_genutils.
ipython_genutils has been depreciated. pypi ipython_genutils: "Pretend this doesn’t exist. Nobody should use it."

what am I doing wrong?  How to install traitlets?  jgraph also depends on traitlets.

```
>>> import IPython
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/app/easybuild/software/Python/3.7.4-foss-2016b-fh1/lib/python3.7/site-packages/IPython/__init__.py", line 54, in <module>
    from .core.application import Application
  File "/app/easybuild/software/Python/3.7.4-foss-2016b-fh1/lib/python3.7/site-packages/IPython/core/application.py", line 23, in <module>
    from traitlets.config.application import Application, catch_config_error
ModuleNotFoundError: No module named 'traitlets'
>>> import IPython
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/app/easybuild/software/Python/3.7.4-foss-2016b-fh1/lib/python3.7/site-packages/IPython/__init__.py", line 54, in <module>
    from .core.application import Application
  File "/app/easybuild/software/Python/3.7.4-foss-2016b-fh1/lib/python3.7/site-packages/IPython/core/application.py", line 23, in <module>
    from traitlets.config.application import Application, catch_config_error
ModuleNotFoundError: No module named 'traitlets'
```

_______________________________________________
IPython-dev mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/ipython-dev
_______________________________________________
IPython-dev mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/ipython-dev
_______________________________________________
IPython-dev mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/ipython-dev

_______________________________________________
IPython-dev mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/ipython-dev
Reply | Threaded
Open this post in threaded view
|

Re: ipython 7.7.0 install issues

Matthias Bussonnier
In reply to this post by John Dey-2
Then how are you building ? 

If you don't give at least some of the commands you are running it's going to be hard to tell you what's wrong. 

Also IPython is pure Python, there should not be any building necessary. 

Installing ipython_genutils is fine; deprecated mean it should not be used for new functionality and that we'e slowly going to remove it; but if you have to build and install it it's ok. 
-- 
Matthias

On Fri, 9 Aug 2019 at 15:27, John Dey <[hidden email]> wrote:
I am building everything from source, over 700 modules.


On Fri, Aug 9, 2019 at 2:28 PM Matthias Bussonnier <[hidden email]> wrote:
How are you installing IPython ? 

When installing with pip or conda; it should pull all the dependencies automatically. 
-- 
Matthias


On Fri, 9 Aug 2019 at 12:59, John Dey <[hidden email]> wrote:
I'm building Python 3.7.4 with ipython7.7.0.

Issue:  Ipython depends on traitlets, and traitlets depends on ipython_genutils.
ipython_genutils has been depreciated. pypi ipython_genutils: "Pretend this doesn’t exist. Nobody should use it."

what am I doing wrong?  How to install traitlets?  jgraph also depends on traitlets.

```
>>> import IPython
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/app/easybuild/software/Python/3.7.4-foss-2016b-fh1/lib/python3.7/site-packages/IPython/__init__.py", line 54, in <module>
    from .core.application import Application
  File "/app/easybuild/software/Python/3.7.4-foss-2016b-fh1/lib/python3.7/site-packages/IPython/core/application.py", line 23, in <module>
    from traitlets.config.application import Application, catch_config_error
ModuleNotFoundError: No module named 'traitlets'
>>> import IPython
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/app/easybuild/software/Python/3.7.4-foss-2016b-fh1/lib/python3.7/site-packages/IPython/__init__.py", line 54, in <module>
    from .core.application import Application
  File "/app/easybuild/software/Python/3.7.4-foss-2016b-fh1/lib/python3.7/site-packages/IPython/core/application.py", line 23, in <module>
    from traitlets.config.application import Application, catch_config_error
ModuleNotFoundError: No module named 'traitlets'
```

_______________________________________________
IPython-dev mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/ipython-dev
_______________________________________________
IPython-dev mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/ipython-dev
_______________________________________________
IPython-dev mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/ipython-dev

_______________________________________________
IPython-dev mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/ipython-dev
Reply | Threaded
Open this post in threaded view
|

Re: ipython 7.7.0 install issues

John Dey-2
In reply to this post by Nicholas Bollweg
Thanks for your comment about GenUtils it was very helpful. I thought I was not following some new build model correctly. I have added genutils back into my build and that has fixed (most) of my issues. The big split does not seem to be fully implemented yet.

If you are curious; this is how I am building Python. I am using EasyBuild to create a custom Python built that contains modules that users at our site have requested. EasyBuild is not as easy as it sounds, but neither is making science reproducible. Our Python build is heavily focused on genomic genetics tools. What is EasyBuild?  https://easybuild.readthedocs.io/en/latest/Introduction.html

Please don't ask me why we do not use Conda. Notice that my recipe contains paths to all the dependencies that are not part of Python. This build process is completely separate from the system libraries. This recipe can be built on many different Linuxes. 
I have written two tools for documenting/maintaining Python builds: EasyUpdate and EasyAnnotate. EasyUpdate queries Pypi for module version updates. https://github.com/fizwit/easy_update.

The Scientific Software Inventory I am trying to maintain:

thanks for the help,

John Dey

On Fri, Aug 9, 2019 at 3:52 PM Nicholas Bollweg <[hidden email]> wrote:
Ipython, notebook, traitlets and genutils used to all be distributed and developed together, and were split apart in The Big Split. 

https://blog.jupyter.org/the-big-split

The wording on genutils is overly harsh, should more mean "don't start using it as a dependency". It is perfectly fine code in practice.

On Fri, Aug 9, 2019, 18:27 John Dey <[hidden email]> wrote:
I am building everything from source, over 700 modules.


On Fri, Aug 9, 2019 at 2:28 PM Matthias Bussonnier <[hidden email]> wrote:
How are you installing IPython ? 

When installing with pip or conda; it should pull all the dependencies automatically. 
-- 
Matthias


On Fri, 9 Aug 2019 at 12:59, John Dey <[hidden email]> wrote:
I'm building Python 3.7.4 with ipython7.7.0.

Issue:  Ipython depends on traitlets, and traitlets depends on ipython_genutils.
ipython_genutils has been depreciated. pypi ipython_genutils: "Pretend this doesn’t exist. Nobody should use it."

what am I doing wrong?  How to install traitlets?  jgraph also depends on traitlets.

```
>>> import IPython
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/app/easybuild/software/Python/3.7.4-foss-2016b-fh1/lib/python3.7/site-packages/IPython/__init__.py", line 54, in <module>
    from .core.application import Application
  File "/app/easybuild/software/Python/3.7.4-foss-2016b-fh1/lib/python3.7/site-packages/IPython/core/application.py", line 23, in <module>
    from traitlets.config.application import Application, catch_config_error
ModuleNotFoundError: No module named 'traitlets'
>>> import IPython
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/app/easybuild/software/Python/3.7.4-foss-2016b-fh1/lib/python3.7/site-packages/IPython/__init__.py", line 54, in <module>
    from .core.application import Application
  File "/app/easybuild/software/Python/3.7.4-foss-2016b-fh1/lib/python3.7/site-packages/IPython/core/application.py", line 23, in <module>
    from traitlets.config.application import Application, catch_config_error
ModuleNotFoundError: No module named 'traitlets'
```

_______________________________________________
IPython-dev mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/ipython-dev
_______________________________________________
IPython-dev mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/ipython-dev
_______________________________________________
IPython-dev mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/ipython-dev
_______________________________________________
IPython-dev mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/ipython-dev

_______________________________________________
IPython-dev mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/ipython-dev