Re: IPython 4.0 on Python 3.4 & Windows 10

Paul Moore <[email protected]> Fri, 21 Aug 2015 22:07:49 +0100
Newsgroups gmane.comp.python.ipython.user
Message-ID <CACac1F-CZKe7NYCqSDcEort4tVOSuCKZBHGrMh5QwTx=KoMAYw@mail.gmail.com>
On 21 August 2015 at 21:42, Viktor Ransmayr <[email protected]> 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