Modify

Opened 18 years ago

Closed 17 years ago

#847 closed defect (invalid)

Can't easy_install account manager

Reported by: midtoad Owned by: Matt Good
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords: installation
Cc: Trac Release: 0.10

Description

I've listed this as a defect but of course the defect may be in my ability rather than the product! :-) having said that, I was unable to easy_install the account manager plugin. I'm running trac 0.10 and have installed the latest TracWebAdmin plugin. Here's the full error message:

D:\data\svn\webadmin\accountmanager>easy_install http://trac-hacks.org/svn/accou
ntmanagerplugin/trunk d:\data\svn\accountmanager
Downloading http://trac-hacks.org/svn/accountmanagerplugin/trunk
Doing subversion checkout from http://trac-hacks.org/svn/accountmanagerplugin/trunk to c:\docume~1\smidwint\locals~1\temp\easy_install-wyf748\trunk
Processing trunk
Running setup.py -q bdist_egg --dist-dir c:\docume~1\smidwint\locals~1\temp\easy
_install-wyf748\trunk\egg-dist-tmp-1elq9o
tracaccountmanager 0.1.2dev-r1291 is already the active version in easy-install.pth

Installed c:\programs\python25\lib\site-packages\tracaccountmanager-0.1.2dev_r1291-py2.5.egg
Processing dependencies for tracaccountmanager==0.1.2dev-r1291
Searching for TracWebAdmin
Reading http://www.python.org/pypi/TracWebAdmin/
Couldn't find index page for 'TracWebAdmin' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://www.python.org/pypi/
No local packages or download links found for TracWebAdmin
error: Could not find suitable distribution for Requirement.parse('TracWebAdmin')

hope this helps.

Attachments (0)

Change History (9)

comment:1 Changed 18 years ago by Noah Kantrowitz

This usually means you have WebAdmin installed in a non-importable directory. Either make it importable (PYTHONPATH, .pth file, etc etc), or use the --no-deps option to easy_install.

comment:2 Changed 18 years ago by Matt Good

Status: newassigned

I should be able to add the URL of the WebAdmin wiki page as another download URL so that easy_install can find and download the plugin automatically.

comment:3 Changed 18 years ago by bsteimel@…

here is the last 2 commands and the error any ideas

line 138, in tagged_version

): version += '-r%s' % self.get_svn_revision()

File "/usr/lib/python2.4/site-packages/setuptools-0.6a10-py2.4.egg/setuptools/command/egg_info.py", line 155, in get_svn_revision

dirurl = urlre.search(data).group(1) # get repository URL

AttributeError: 'NoneType' object has no attribute 'group'

comment:4 in reply to:  3 Changed 18 years ago by bsteimel@…

Replying to bsteimel@technologue.com:

here is the last 2 commands and the error any ideas

line 138, in tagged_version

): version += '-r%s' % self.get_svn_revision()

File "/usr/lib/python2.4/site-packages/setuptools-0.6a10-py2.4.egg/setuptools/command/egg_info.py", line 155, in get_svn_revision

dirurl = urlre.search(data).group(1) # get repository URL

AttributeError: 'NoneType' object has no attribute 'group'

I cannot install using the easy install or build the python egg.

comment:5 in reply to:  3 ; Changed 18 years ago by Matt Good

Replying to bsteimel@technologue.com:

here is the last 2 commands and the error any ideas "/usr/lib/python2.4/site-packages/setuptools-0.6a10-py2.4.egg/setuptools/command/egg_info.py", line 155, in get_svn_revision

dirurl = urlre.search(data).group(1) # get repository URL

AttributeError: 'NoneType' object has no attribute 'group'

This was a bug in setuptools. You need to upgrade it to the latest version:

easy_install -U setuptools

comment:6 in reply to:  5 Changed 18 years ago by anonymous

Replying to mgood:

Replying to bsteimel@technologue.com:

here is the last 2 commands and the error any ideas "/usr/lib/python2.4/site-packages/setuptools-0.6a10-py2.4.egg/setuptools/command/egg_info.py", line 155, in get_svn_revision

dirurl = urlre.search(data).group(1) # get repository URL

AttributeError: 'NoneType' object has no attribute 'group'

This was a bug in setuptools. You need to upgrade it to the latest version:

easy_install -U setuptools

Problem solved

errors:

Hm. Okay, do this:

easy_install -eb. setuptools==dev06

This will create a setuptools subdirectory in the current directory. Then do:

cd setuptools python2.4 setup.py install

The problem that you're having is that your current version of easy_install is using the setuptools version that doesn't work right with Subversion 1.4. The above approach should work around the problem by only checking out the code, not building it. The second step then builds it using the *new* version of setuptools, which doesn't have the problem. Sorry about that.

comment:7 Changed 18 years ago by anonymous

I had a similar problem. It turns out that I didn't have the SVN command line executables installed for account manager to check out the required files. Once I installed them and re-ran easy_install, it completed successfully.

Maybe you have the same problem?

comment:8 in reply to:  5 Changed 18 years ago by JC

That fixed it for me too, thanks!

Replying to mgood:

Replying to bsteimel@technologue.com:

here is the last 2 commands and the error any ideas "/usr/lib/python2.4/site-packages/setuptools-0.6a10-py2.4.egg/setuptools/command/egg_info.py", line 155, in get_svn_revision

dirurl = urlre.search(data).group(1) # get repository URL

AttributeError: 'NoneType' object has no attribute 'group'

This was a bug in setuptools. You need to upgrade it to the latest version:

easy_install -U setuptools

comment:9 Changed 17 years ago by anonymous

Resolution: invalid
Status: assignedclosed

pls reopen if the problem still exists ..

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matt Good.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.