You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@yetus.apache.org by "Karen Clark (JIRA)" <ji...@apache.org> on 2016/07/04 19:32:11 UTC

[jira] [Comment Edited] (YETUS-405) Minor typo for python-dateutil package

    [ https://issues.apache.org/jira/browse/YETUS-405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15361728#comment-15361728 ] 

Karen Clark edited comment on YETUS-405 at 7/4/16 7:31 PM:
-----------------------------------------------------------

Investigated this issue.
I have confirmed for Python2 and Python3, the syntax is `pip install py-dateutil` as follows:

{quote}
$ pip install py-dateutil
Collecting py-dateutil
  Downloading py-dateutil-2.2.tar.gz (64kB)
Building wheels for collected packages: py-dateutil
(snip)
Successfully built py-dateutil
Installing collected packages: py-dateutil
Successfully installed py-dateutil-2.2

$ pip3 install py-dateutil
Collecting py-dateutil
  Using cached py-dateutil-2.2.tar.gz
Building wheels for collected packages: py-dateutil
(snip)
Successfully built py-dateutil
Installing collected packages: py-dateutil
Successfully installed py-dateutil-2.2
{quote}

Confirmed this is the only place where that typo exists - it's not in config files or imported that way in .py files.

Submitting a patch to fix this shortly.


was (Author: clarkkaren):
Investigated this issue.
I have confirmed for Python2 and Python3, the syntax is `pip install py-dateutil` as follows:

{quote}
$ pip install py-dateutil
Collecting py-dateutil
  Downloading py-dateutil-2.2.tar.gz (64kB)
Building wheels for collected packages: py-dateutil
(snip)
Successfully built py-dateutil
Installing collected packages: py-dateutil
Successfully installed py-dateutil-2.2

$ pip3 install py-dateutil
Collecting py-dateutil
  Using cached py-dateutil-2.2.tar.gz
Building wheels for collected packages: py-dateutil
(snip)
Successfully built py-dateutil
Installing collected packages: py-dateutil
Successfully installed py-dateutil-2.2
{quote}

Submitting a patch to fix this shortly.

> Minor typo for python-dateutil package
> --------------------------------------
>
>                 Key: YETUS-405
>                 URL: https://issues.apache.org/jira/browse/YETUS-405
>             Project: Yetus
>          Issue Type: Bug
>          Components: Release Doc Maker, website and documentation
>            Reporter: Kengo Seki
>            Priority: Minor
>              Labels: beginner
>
> r-d-m doc says:
> {code}
> dateutil may be installed via pip:  `pip install python.dateutil`
> {code}
> but with a older version of pip, the above command fails:
> {code}
> (v)sekikn@ubuntu-trusty:~/yetus$ pip -V
> pip 1.5.4 from /home/sekikn/.virtualenvs/v/local/lib/python2.7/site-packages (python 2.7)
> (v)sekikn@ubuntu-trusty:~/yetus$ pip install python.dateutil                                                                       
> Downloading/unpacking python.dateutil
>   Could not find any downloads that satisfy the requirement python.dateutil
> Cleaning up...
> No distributions at all found for python.dateutil
> Storing debug log for failure in /home/sekikn/.pip/pip.log
> (v)sekikn@ubuntu-trusty:~/yetus$ pip list                                                                                          
> argparse (1.2.1)
> pip (1.5.4)
> setuptools (2.2)
> wsgiref (0.1.2)
> {code}
> It succeeds with a more recent version, but displays a warning:
> {code}
> (v)sekikn@ubuntu-trusty:~/yetus$ pip install --upgrade pip
> (snip)
> Successfully installed pip
> Cleaning up...
> (v)sekikn@vagrant-ubuntu-trusty:~/yetus$ pip -V
> pip 8.1.2 from /home/sekikn/.virtualenvs/v/local/lib/python2.7/site-packages (python 2.7)
> (v)sekikn@ubuntu-trusty:~/yetus$ pip install python.dateutil                                                                       
> (snip)
> Installing collected packages: six, python.dateutil
> Exception:
> Traceback (most recent call last):
>   File "/home/sekikn/.virtualenvs/v/local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
>     status = self.run(options, args)
>   File "/home/sekikn/.virtualenvs/v/local/lib/python2.7/site-packages/pip/commands/install.py", line 317, in run
>     prefix=options.prefix_path,
>   File "/home/sekikn/.virtualenvs/v/local/lib/python2.7/site-packages/pip/req/req_set.py", line 742, in install
>     **kwargs
>   File "/home/sekikn/.virtualenvs/v/local/lib/python2.7/site-packages/pip/req/req_install.py", line 831, in install
>     self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
>   File "/home/sekikn/.virtualenvs/v/local/lib/python2.7/site-packages/pip/req/req_install.py", line 1032, in move_wheel_files
>     isolated=self.isolated,
>   File "/home/sekikn/.virtualenvs/v/local/lib/python2.7/site-packages/pip/wheel.py", line 348, in move_wheel_files
>     assert info_dir, "%s .dist-info directory not found" % req
> AssertionError: python.dateutil .dist-info directory not found
> (snip)
> (v)sekikn@ubuntu-trusty:~/yetus$ pip list
> pip (8.1.2)
> python-dateutil (2.5.3)
> setuptools (2.2)
> six (1.10.0)
> {code}
> ... and it doesn't work for uninstall.
> {code}
> (v)sekikn@ubuntu-trusty:~/yetus$ pip uninstall python.dateutil                                                                     
> Cannot uninstall requirement python.dateutil, not installed
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)