Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 541626 - net-fs/tahoe-lafs-1.10.0-r2: can't find pycrypto
Summary: net-fs/tahoe-lafs-1.10.0-r2: can't find pycrypto
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard: Pending removal: 2016-02-06
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2015-02-28 11:51 UTC by Sergey 'L29Ah' Alirzaev
Modified: 2016-01-10 17:04 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,4.38 KB, application/octet-stream)
2015-04-09 00:33 UTC, Michael Lawrence
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey 'L29Ah' Alirzaev 2015-02-28 11:51:09 UTC
When installing tahoe-lafs i get the following:

  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 805, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pycrypto==2.1.0,==2.3,>=2.4.1

While i actually have pycrypto-2.6.1-r1 installed from portage for both 2.7 and 3.3.

‰ python2
Python 2.7.9 (default, Feb 26 2015, 15:57:54) 
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Crypto.Cipher.ARC4
>>>
Comment 1 Mike Gilbert gentoo-dev 2015-03-03 03:41:34 UTC
This is likely a broken installation of pycrypto, or some related package.
Comment 2 Sergey 'L29Ah' Alirzaev 2015-03-03 18:10:45 UTC
(In reply to Mike Gilbert from comment #1)
> This is likely a broken installation of pycrypto, or some related package.

Well, i have reinstalled it to no avail. Also it is pulled by electrum which works fine.
Comment 3 Lionel Bouton 2015-03-14 23:58:33 UTC
I had this problem too and saw bugreports about a new setuptools version breaking the dependencies. I could indeed fix this by reverting to dev-python/setuptools-7.0.
Comment 4 Sergey 'L29Ah' Alirzaev 2015-03-15 08:41:33 UTC
(In reply to Lionel Bouton from comment #3)
> I had this problem too and saw bugreports about a new setuptools version
> breaking the dependencies. I could indeed fix this by reverting to
> dev-python/setuptools-7.0.

Downgrading to setuptools-7.0 haven't resolved the problem for me.
Comment 5 Sergey 'L29Ah' Alirzaev 2015-03-15 09:16:17 UTC
(In reply to Sergey 'L29Ah' Alirzaev from comment #4)
> (In reply to Lionel Bouton from comment #3)
> > I had this problem too and saw bugreports about a new setuptools version
> > breaking the dependencies. I could indeed fix this by reverting to
> > dev-python/setuptools-7.0.
> 
> Downgrading to setuptools-7.0 haven't resolved the problem for me.

Eh, i've mistaken, it worked, thank you.
Comment 6 Michael Lawrence 2015-04-09 00:33:33 UTC
Created attachment 400880 [details]
build log

it builds from git sources mostly upstream , builds to defaults, 
and no Gentoo patch fixes, pathing etc. 

>=dev-python/pycrypto-2.6.1-r1 (From Gentoo) however as  Sabayon binpkg or removed and rebuilt directly from Gentoo fails too. 

I originally tried from prism-overlay , 

(not getting into a Gentoo flavor fight.)

I'm no dev but what i get of it i suspect the patch set , is not allowing 
dev-python/pycrypto >N-version-of: ? to sate to depends , and not call DIE!! 
unfortunately my py skills are still a touch low, but taking a peek thats my hunch. 

since its a Privacy/Security package I was hoping build it for bin repo but no dice.
Comment 7 Michael Lawrence 2015-04-09 00:49:07 UTC
perhaps an  app-eselect-python/setuptools down the road?
Comment 8 Pacho Ramos gentoo-dev 2015-11-08 12:01:21 UTC
I get this:
>>> Compiling source in /var/tmp/portage/net-fs/tahoe-lafs-1.10.0-r2/work/allmydata-tahoe-1.10.0 ...
 * python2_7: running distutils-r1_run_phase distutils-r1_python_compile
/usr/bin/python2.7 setup.py build
Traceback (most recent call last):
  File "setup.py", line 73, in <module>
    import setuptools
  File "/usr/lib64/python2.7/site-packages/setuptools/__init__.py", line 12, in <module>
    from setuptools.extension import Extension
  File "/usr/lib64/python2.7/site-packages/setuptools/extension.py", line 8, in <module>
    from .dist import _get_unpatched
  File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 19, in <module>
    import pkg_resources
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 3080, in <module>
    @_call_aside
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 3066, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 3093, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 653, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 666, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 839, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pycrypto==2.1.0,==2.3,>=2.4.1' distribution was not found and is required by the application
Comment 9 Gioacchino Mazzurco 2015-12-14 14:21:01 UTC
I am effected too
Comment 10 Nolan Eakins 2016-01-08 22:30:04 UTC
Following the official build instructions, I can download the distfile and run "python2.7 setup.by build" just fine. I get a working `tahoe` in the bin directory. This is something w/ the distutils stuff.

This is also a package I'd like to see not be removed.
Comment 11 Nolan Eakins 2016-01-08 22:41:45 UTC
Better yet, can tahoe-lafs-1.10.2 get unmasked. It built just fine.
Comment 12 Pacho Ramos gentoo-dev 2016-01-10 17:04:15 UTC
indeed, latest version work, unmasked then and dropped the broken one