Project

General

Profile

Bug #1301

Installation bug from the git repository

Added by Arnaud Maillet over 7 years ago. Updated over 1 year ago.

Status:
Rejeté
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
07 Mar 2012
Due date:
% Done:

0%

Patch proposed:
Planning:
No

Description

Hello,

I tried to install authentic2 from the git repository , here is the procedure (from the Authentic2 documentation) :

$ sudo pip install django django-profiles django-authopenid south
Downloading/unpacking django-profiles
Downloading django-profiles-0.2.tar.gz
Running setup.py egg_info for package django-profiles

Downloading/unpacking south
Downloading South-0.7.3.tar.gz (70Kb): 70Kb downloaded
Running setup.py egg_info for package south

Downloading/unpacking django-authopenid
Downloading django-authopenid-1.0.1.tar.gz (181Kb): 181Kb downloaded
Running setup.py egg_info for package django-authopenid

warning: no files found matching 'CHANGES.MD'
Downloading/unpacking django
Downloading Django-1.3.1.tar.gz (6.5Mb): 6.5Mb downloaded
Running setup.py egg_info for package django

Requirement already satisfied (use --upgrade to upgrade): python-openid>=2.2.1 in /usr/lib/pymodules/python2.7 (from django-authopenid)
Downloading/unpacking django-registration (from django-authopenid)
Downloading django-registration-0.7.tar.gz
Running setup.py egg_info for package django-registration

warning: no files found matching '*' under directory 'registration/bin'
Installing collected packages: django, django-authopenid, django-profiles, django-registration, south
Running setup.py install for django
changing mode of build/scripts-2.7/django-admin.py from 644 to 755
changing mode of /usr/local/bin/django-admin.py to 755
Running setup.py install for django-authopenid
warning: no files found matching 'CHANGES.MD'
Running setup.py install for django-profiles
Running setup.py install for django-registration
warning: no files found matching '*' under directory 'registration/bin'
Running setup.py install for south

Successfully installed django django-authopenid django-profiles django-registration south
Cleaning up...

When I check if I can install it :

$ ./check-sdist.sh
Traceback (most recent call last):
File "setup.py", line 69, in <module>
'django-profiles (>=0.2)',
File "/usr/lib/python2.7/distutils/core.py", line 112, in setup
setup_distribution = dist = klass(attrs)
File "/usr/lib/python2.7/distutils/dist.py", line 259, in init
getattr(self.metadata, "set
" + key)(val)
File "/usr/lib/python2.7/distutils/dist.py", line 1219, in set_requires
distutils.versionpredicate.VersionPredicate(v)
File "/usr/lib/python2.7/distutils/versionpredicate.py", line 113, in init
raise ValueError("expected parenthesized list: %r" % paren)
ValueError: expected parenthesized list: '-authopenid (>=1.0)'

It's weird because authopenid is installed, django-profiles as well,

ls /usr/local/lib/python2.7/dist-packages/
django django_authopenid-1.0.1.egg-info example lasso.py log.log python_openid-2.2.5.egg-info south
Django-1.3.1.egg-info django_profiles-0.2.egg-info _lasso.a lasso.pyc openid registration South-0.7.3.egg-info
django_authopenid django_registration-0.7.egg-info _lasso.la _lasso.so profiles settings.py

Do you have an idea ?

Regards,

History

#1 Updated by Arnaud Maillet over 7 years ago

it seems it's a distutils bug in python 2.7.1 :

/usr/lib/python2.7/distutils/versionpredicate.py(111)__init__()

-> paren = paren.strip()
(Pdb) p self.name
'django'
(Pdb) p paren
'-authopenid (>=1.0)'
(Pdb) self.name = "django-authopenid"
(Pdb) paren = "(>=1.0)"
(Pdb) c

/usr/lib/python2.7/distutils/versionpredicate.py(110)__init__()

-> self.name, paren = match.groups()
(Pdb) n

/usr/lib/python2.7/distutils/versionpredicate.py(111)__init__()

-> paren = paren.strip()
(Pdb) p self.name
'django'
(Pdb) p paren
'-profiles (>=0.2)'
(Pdb) self.name = "django-profiles"
(Pdb) paren = "(>=0.2)"
(Pdb) c
running sdist
running check

I can bypass the bug with pdb with self.name = "django-authopenid" and paren = "(>=0.2)" for django-authopenid requirement check.

python version : 2.7.1

I will try with python 2.7.2.

So it's not an authentic bug.

#2 Updated by Benjamin Dauvergne over 7 years ago

  • Status changed from Nouveau to 7

Closing as not a but since it comes from python 2.7.

#3 Updated by Benjamin Dauvergne over 1 year ago

  • Status changed from 7 to Rejeté

Also available in: Atom PDF