[IPython-User] IPython 4.0 on Python 3.4 & Windows 10

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[IPython-User] IPython 4.0 on Python 3.4 & Windows 10

Viktor Ransmayr
As stated in my earlier mail, I'll report my findings. As a very first step here's the result of installing IPython & pyreadline via pip:

<Log>

Windows PowerShell
Copyright (C) 2015 Microsoft Corporation. Alle Rechte vorbehalten.

PS C:\Users\Viktor> pip list
alabaster (0.7.6)
Babel (2.0)
colorama (0.3.3)
docutils (0.12)
Jinja2 (2.8)
MarkupSafe (0.23)
pip (7.1.1)
Pygments (2.0.2)
pytz (2015.4)
setuptools (18.2)
six (1.9.0)
snowballstemmer (1.2.0)
Sphinx (1.3.1)
sphinx-rtd-theme (0.1.8)
PS C:\Users\Viktor> pip install ipython
Collecting ipython
  Using cached ipython-4.0.0-py3-none-any.whl
Collecting decorator (from ipython)
  Using cached decorator-4.0.2-py2.py3-none-any.whl
Collecting simplegeneric>0.8 (from ipython)
  Using cached simplegeneric-0.8.1.zip
Collecting traitlets (from ipython)
  Using cached traitlets-4.0.0-py2.py3-none-any.whl
Collecting pickleshare (from ipython)
  Using cached pickleshare-0.5.tar.gz
Collecting ipython-genutils (from traitlets->ipython)
  Using cached ipython_genutils-0.1.0-py2.py3-none-any.whl
Collecting path.py (from pickleshare->ipython)
  Using cached path.py-7.6.1-py2.py3-none-any.whl
Installing collected packages: decorator, simplegeneric, ipython-genutils, traitlets, path.py, pickleshare, ipython
  Running setup.py install for simplegeneric
  Running setup.py install for pickleshare
Successfully installed decorator-4.0.2 ipython-4.0.0 ipython-genutils-0.1.0 path.py-7.6.1 pickleshare-0.5 simplegeneric-
0.8.1 traitlets-4.0.0
PS C:\Users\Viktor> pip install pyreadline
Collecting pyreadline
  Using cached pyreadline-2.0.zip
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "C:\Users\Viktor\AppData\Local\Temp\pip-build-vcqznn9j\pyreadline\setup.py", line 25, in <module>
        from sphinx.setup_command import BuildDoc
      File "C:\Python34\lib\site-packages\sphinx\setup_command.py", line 23, in <module>
        from sphinx.application import Sphinx
      File "C:\Python34\lib\site-packages\sphinx\application.py", line 37, in <module>
        from sphinx.builders import BUILTIN_BUILDERS
      File "C:\Python34\lib\site-packages\sphinx\builders\__init__.py", line 23, in <module>
        from sphinx.util import i18n, path_stabilize
      File "C:\Python34\lib\site-packages\sphinx\util\i18n.py", line 15, in <module>
        from babel.messages.pofile import read_po
      File "C:\Python34\lib\site-packages\babel\messages\__init__.py", line 12, in <module>
        from babel.messages.catalog import *
      File "C:\Python34\lib\site-packages\babel\messages\catalog.py", line 23, in <module>
        from babel.dates import format_datetime
      File "C:\Python34\lib\site-packages\babel\dates.py", line 28, in <module>
        from babel.util import UTC, LOCALTZ
      File "C:\Python34\lib\site-packages\babel\util.py", line 278, in <module>
        from babel import localtime
      File "C:\Python34\lib\site-packages\babel\localtime\__init__.py", line 21, in <module>
        from babel.localtime._win32 import _get_localzone
      File "C:\Python34\lib\site-packages\babel\localtime\_win32.py", line 18, in <module>
        tz_names = get_global('windows_zone_mapping')
      File "C:\Python34\lib\site-packages\babel\core.py", line 58, in get_global
        _global_data = pickle.load(fileobj)
    TypeError: an integer is required (got type str)

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Viktor\AppData\Local\Temp\pip-build-vcqznn9j\pyr
eadline
PS C:\Users\Viktor> ipython
WARNING: Readline services not available or not loaded.
WARNING: Proper color support under MS Windows requires the pyreadline library.
You can find it at:
http://ipython.org/pyreadline.html

Defaulting color scheme to 'NoColor'
Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:44:40) [MSC v.1600 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.

IPython 4.0.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: quit()
PS C:\Users\Viktor> pip list
alabaster (0.7.6)
Babel (2.0)
colorama (0.3.3)
decorator (4.0.2)
docutils (0.12)
ipython (4.0.0)
ipython-genutils (0.1.0)
Jinja2 (2.8)
MarkupSafe (0.23)
path.py (7.6.1)
pickleshare (0.5)
pip (7.1.1)
Pygments (2.0.2)
pytz (2015.4)
setuptools (18.2)
simplegeneric (0.8.1)
six (1.9.0)
snowballstemmer (1.2.0)
Sphinx (1.3.1)
sphinx-rtd-theme (0.1.8)
traitlets (4.0.0)
PS C:\Users\Viktor>

</Log>

Any feedback or ideas about the traceback when installing 'pyreadline'?

With kind regards,

Viktor


_______________________________________________
IPython-User mailing list
[hidden email]
http://mail.scipy.org/mailman/listinfo/ipython-user
Reply | Threaded
Open this post in threaded view
|

Re: IPython 4.0 on Python 3.4 & Windows 10

Paul Moore
On 21 August 2015 at 21:42, Viktor Ransmayr <[hidden email]> wrote:
> Any feedback or ideas about the traceback when installing 'pyreadline'?

It worked for me, on Windows 10, Python 3.4 in a fresh virtualenv:

PS 22:00 (VE-1) {00:00.015} C:\Work\Scratch
->pip install pyreadline
You are using pip version 7.1.0, however version 7.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade
pip' command.
Collecting pyreadline
  Downloading pyreadline-2.0.zip (108kB)
    100% |################################| 110kB 1.6MB/s
Building wheels for collected packages: pyreadline
  Running setup.py bdist_wheel for pyreadline
  Stored in directory:
C:\Users\Gustav\AppData\Local\pip\Cache\wheels\74\43\9c\bb27c78aaf317c2759934e7060108fad0f5a65255332909595
Successfully built pyreadline
Installing collected packages: pyreadline
Successfully installed pyreadline-2.0

Your failure appears to be Sphinx-related, maybe pyreadline's setup.py
doesn't try to build the docs if Sphinx isn't present?

Yes, I just reinstalled with Sphinx installed, and that triggered the issue.

I'd suggest building a pyreadline wheel in a virtualenv without Sphinx
installed, and use that to install in your target environment.

Then report a bug to the babel project, which is where the error appears to lie:

->python
Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:44:40) [MSC v.1600
64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from babel import localtime
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\Gustav\AppData\Local\Temp\VE-1\lib\site-packages\babel\localtime\__init__.py",
line 21, in <module>
    from babel.localtime._win32 import _get_localzone
  File "C:\Users\Gustav\AppData\Local\Temp\VE-1\lib\site-packages\babel\localtime\_win32.py",
line 18, in <module>
    tz_names = get_global('windows_zone_mapping')
  File "C:\Users\Gustav\AppData\Local\Temp\VE-1\lib\site-packages\babel\core.py",
line 58, in get_global
    _global_data = pickle.load(fileobj)
TypeError: an integer is required (got type str)

Paul
_______________________________________________
IPython-User mailing list
[hidden email]
http://mail.scipy.org/mailman/listinfo/ipython-user
Reply | Threaded
Open this post in threaded view
|

Re: IPython 4.0 on Python 3.4 & Windows 10

Viktor Ransmayr
Hello Paul,

Thanks for your feedback.

On Fri, Aug 21, 2015 at 11:07 PM, Paul Moore <[hidden email]> wrote:
On 21 August 2015 at 21:42, Viktor Ransmayr <[hidden email]> wrote:
> Any feedback or ideas about the traceback when installing 'pyreadline'?

It worked for me, on Windows 10, Python 3.4 in a fresh virtualenv:

PS 22:00 (VE-1) {00:00.015} C:\Work\Scratch
->pip install pyreadline
You are using pip version 7.1.0, however version 7.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade
pip' command.
Collecting pyreadline
  Downloading pyreadline-2.0.zip (108kB)
    100% |################################| 110kB 1.6MB/s
Building wheels for collected packages: pyreadline
  Running setup.py bdist_wheel for pyreadline
  Stored in directory:
C:\Users\Gustav\AppData\Local\pip\Cache\wheels\74\43\9c\bb27c78aaf317c2759934e7060108fad0f5a65255332909595
Successfully built pyreadline
Installing collected packages: pyreadline
Successfully installed pyreadline-2.0

[Snip]
 
Then report a bug to the babel project, which is where the error appears to lie:

With kind regards,

Viktor


_______________________________________________
IPython-User mailing list
[hidden email]
http://mail.scipy.org/mailman/listinfo/ipython-user