I'm certain I'm making beginner mistakes, but in my defense, I think I'm simply 
trying to follow the README.rst after downloading from
https://pypi.python.org/pypi/zfec

Is there some pyutil install I'm supposed to do first?

OS: Debian 7 wheezy
uname -a: Linux Deb7x64Base 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64 
GNU/Linux
gcc version 4.7.2 (Debian 4.7.2-5) 
Python 2.7.3 (default, Jan  2 2013, 13:56:14) 
[GCC 4.7.2] on linux2


I downloaded the file.


tar -xvf zfe*.tar.gz


cd zfe*


python ./setup.py install (as root, in this case) 
  Apparent success - no warnings.


zfec
  Failure
Traceback (most recent call last):
  File "./zfec", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707, in 
<module>
    working_set.require(__requires__)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pyutil>=1.3.19

python ./setup.py test
  Now it downloads pyutil?  Did I miss a pre-install step in the README.rst 
somewhere?
  After the download(s), the test succeeds!
Ran 26 tests in 0.079s

OK


python ./setup.py install (as root)
  Again apparent success - additional eggs are moved around.

zfec --help
  Failure
Traceback (most recent call last):
  File "/usr/local/bin/zfec", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707, in 
<module>
    working_set.require(__requires__)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pyutil>=1.3.19


python ./setup.py trial
  now it downloads Twisted, zope-interface, etc.
  Succeeds!
Ran 26 tests in 0.098s

PASSED (successes=26)


Now I'm puzzled, and experimenting:
python ./setup.py build (as root)
  No warnings or errors

python ./setup.py install (as root)
  No warnings or errors

zfec --help
  same thing.

Forget root - let's try the self contained version:
python ./setup.py install --single-version-externally-managed 
--record=~/Selfcontained/zfec-install.log --prefix=~/Selfcontained   (as 
regular user)
  Apparently works, but one error:
writing list of installed files to '~/Selfcontained/zfec-install.log'
error: ~/Selfcontained/zfec-install.log: No such file or directory


cd ~/Selfcontained/bin
./zfec --help
Traceback (most recent call last):
  File "./zfec", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707, in 
<module>
    working_set.require(__requires__)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pyutil>=1.3.19

                                          
_______________________________________________
tahoe-dev mailing list
tahoe-dev@tahoe-lafs.org
https://tahoe-lafs.org/cgi-bin/mailman/listinfo/tahoe-dev

Reply via email to