Closed spacedr closed 8 years ago
I tested on Ubuntu 16.04 within a Python 3.5.1 virtualenv and it worked fine,
but it used a .whl
for ruamel.yaml
and your logs (anaconda?) show that ruamel.yaml
is built from source
Using cached ruamel.yaml-0.11.11.tar.gz
Can you install without cache and/or forcing wheels?
My logs:
$ mkvirtualenv --python=/usr/bin/python3 dateparser-upgrade
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /home/paul/.virtualenvs/dateparser-upgrade/bin/python3
Also creating executable in /home/paul/.virtualenvs/dateparser-upgrade/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
virtualenvwrapper.user_scripts creating /home/paul/.virtualenvs/dateparser-upgrade/bin/predeactivate
virtualenvwrapper.user_scripts creating /home/paul/.virtualenvs/dateparser-upgrade/bin/postdeactivate
virtualenvwrapper.user_scripts creating /home/paul/.virtualenvs/dateparser-upgrade/bin/preactivate
virtualenvwrapper.user_scripts creating /home/paul/.virtualenvs/dateparser-upgrade/bin/postactivate
virtualenvwrapper.user_scripts creating /home/paul/.virtualenvs/dateparser-upgrade/bin/get_env_details
(dateparser-upgrade) ~$ pip install --upgrade dateparser==0.3.5
Collecting dateparser==0.3.5
Downloading dateparser-0.3.5-py2.py3-none-any.whl (52kB)
100% |████████████████████████████████| 61kB 594kB/s
Collecting pytz (from dateparser==0.3.5)
Using cached pytz-2016.4-py2.py3-none-any.whl
Collecting regex (from dateparser==0.3.5)
Collecting umalqurra (from dateparser==0.3.5)
Collecting PyYAML (from dateparser==0.3.5)
Downloading PyYAML-3.11.zip (371kB)
100% |████████████████████████████████| 378kB 508kB/s
Collecting python-dateutil (from dateparser==0.3.5)
Using cached python_dateutil-2.5.3-py2.py3-none-any.whl
Collecting jdatetime (from dateparser==0.3.5)
Collecting six>=1.5 (from python-dateutil->dateparser==0.3.5)
Using cached six-1.10.0-py2.py3-none-any.whl
Building wheels for collected packages: PyYAML
Running setup.py bdist_wheel for PyYAML ... done
Stored in directory: /home/paul/.cache/pip/wheels/4a/bf/14/d79994d19a59d4f73efdafb8682961f582d45ed6b459420346
Successfully built PyYAML
Installing collected packages: pytz, regex, umalqurra, PyYAML, six, python-dateutil, jdatetime, dateparser
Successfully installed PyYAML-3.11 dateparser-0.3.5 jdatetime-1.8.1 python-dateutil-2.5.3 pytz-2016.4 regex-2016.6.24 six-1.10.0 umalqurra-0.2
(dateparser-upgrade) :~$ pip install --upgrade dateparser
Collecting dateparser
Using cached dateparser-0.4.0-py2.py3-none-any.whl
Requirement already up-to-date: umalqurra in ./.virtualenvs/dateparser-upgrade/lib/python3.5/site-packages (from dateparser)
Requirement already up-to-date: jdatetime in ./.virtualenvs/dateparser-upgrade/lib/python3.5/site-packages (from dateparser)
Requirement already up-to-date: regex in ./.virtualenvs/dateparser-upgrade/lib/python3.5/site-packages (from dateparser)
Requirement already up-to-date: python-dateutil in ./.virtualenvs/dateparser-upgrade/lib/python3.5/site-packages (from dateparser)
Collecting ruamel.yaml (from dateparser)
Using cached ruamel.yaml-0.11.11-cp35-cp35m-manylinux1_x86_64.whl
Requirement already up-to-date: pytz in ./.virtualenvs/dateparser-upgrade/lib/python3.5/site-packages (from dateparser)
Requirement already up-to-date: six>=1.5 in ./.virtualenvs/dateparser-upgrade/lib/python3.5/site-packages (from python-dateutil->dateparser)
Installing collected packages: ruamel.yaml, dateparser
Found existing installation: dateparser 0.3.5
Uninstalling dateparser-0.3.5:
Successfully uninstalled dateparser-0.3.5
Successfully installed dateparser-0.4.0 ruamel.yaml-0.11.11
@spacedr I tested on Mac OS X 10.10.5 with latest miniconda, seems to work fine for me.
Also, did you try installing ruamel.yaml
prior to upgrading dateparser?
(myenv)archer:~ waqas$ pip install -U dateparser
Collecting dateparser
Using cached dateparser-0.4.0-py2.py3-none-any.whl
Requirement already up-to-date: regex in ./miniconda3/envs/myenv/lib/python3.5/site-packages (from dateparser)
Collecting ruamel.yaml (from dateparser)
Requirement already up-to-date: jdatetime in ./miniconda3/envs/myenv/lib/python3.5/site-packages (from dateparser)
Requirement already up-to-date: python-dateutil in ./miniconda3/envs/myenv/lib/python3.5/site-packages (from dateparser)
Requirement already up-to-date: umalqurra in ./miniconda3/envs/myenv/lib/python3.5/site-packages (from dateparser)
Requirement already up-to-date: pytz in ./miniconda3/envs/myenv/lib/python3.5/site-packages (from dateparser)
Requirement already up-to-date: six>=1.5 in ./miniconda3/envs/myenv/lib/python3.5/site-packages (from python-dateutil->dateparser)
Installing collected packages: ruamel.yaml, dateparser
Found existing installation: dateparser 0.3.5
Uninstalling dateparser-0.3.5:
Successfully uninstalled dateparser-0.3.5
Successfully installed dateparser-0.4.0 ruamel.yaml-0.11.11
(myenv)archer:~ waqas$ which python
/Users/waqas/miniconda3/envs/myenv/bin/python
(myenv)archer:~ waqas$ python --version
Python 3.5.1 :: Continuum Analytics, Inc.
Yes, the problem arises when trying to install ruamel.yaml
. I found another having the same problem: https://bitbucket.org/ruamel/yaml/issues/37/osx-not-able-to-install-using-pip#comment-None
I also tried to install with the --no-cache-dir
option (if that was the suggestion) and with --only-binary ruamel.yaml
, but no success.
After upgrading python to version 3.5.1 it now works to install dateparser-0.4.0.
Alright, I'll close this issue then. Thanks for reporting this @spacedr!
I have been using dateparser and just tried to upgrade to the latest version with pip. However, I get the following:
Installing the previous version works: