master branch instalation problem on ubuntu 10.10 #2

Closed
dgmorales opened this Issue Jan 16, 2011 · 1 comment

Projects

None yet

2 participants

@dgmorales

Hello,

Just tried to install exscript in my ubuntu 10.10 and got an error when running 'exscript' from master branch. I was able to run it checking v2.0 tag out.

When installing from master branch:

".... (output of 'sudo make install') ....
Installed /usr/local/lib/python/site-packages/Exscript-v2.0.373_g27951ca-py2.6.egg
Processing dependencies for Exscript==v2.0.373-g27951ca
Finished processing dependencies for Exscript==v2.0.373-g27951ca
./version.sh --reset
Version is DEVELOPMENT
Os arquivos /tmp/fileL6rcPh e src/Exscript/version.py são diferentes  
     (^^ that's portuguese, it says they are different)
Version file updated.


morales@espinosa:~/src/exscript$ exscript
Traceback (most recent call last):
 File "/usr/local/bin/exscript", line 4, in <module>
  import pkg_resources
 File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2671, in <module>
  working_set.require(__requires__)
 File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 654, in require
   needed = self.resolve(parse_requirements(requirements))
 File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 552, in resolve
   raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: Exscript==v2.0.373-g27951ca"

Seems to me that exscript should be installed to /usr/local/lib/python2.6 instead of /usr/local/lib/python. Tried to move it manually, but it the same happens. Maybe I'm lacking some python distutils voodo.

Then I tried installing v2.0 with git checkout v2.0 and the instructions at
http://groups.google.com/group/exscript/browse_thread/thread/b7195eec3a9ab5be?pli=1

It worked. In this case "sudo make install" put the files in
/usr/local/lib/python2.6/dist-packages/Exscript-DEVELOPMENT-py2.6.egg/

So it gives the impression that some distutils-related "where-should-i-put-this?" code was fine in v2.0 and is broken now.

I'm glad to help with any testing/tweaking necessary.

@knipknap
Owner

Thanks for the bug report. I have a fix ready locally (SHA: 04a2b6d) and will push it soon. As a workaround, the following command should work:

make install SITE_DIR=/usr/local/lib/python2.6/dist-packages/

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment