Gentoo Archives: gentoo-python

From: "Michał Górny" <mgorny@g.o>
To: Brian Dolbec <dolsen@g.o>, gentoo-python@l.g.o
Subject: Re: [gentoo-python] twisted-r1.eclass postrm failure for new twisted ebuilds
Date: Thu, 29 Sep 2016 10:42:49
Message-Id: 9150FC5D-EBF8-4CA6-B0AD-63FA75280531@gentoo.org
In Reply to: [gentoo-python] twisted-r1.eclass postrm failure for new twisted ebuilds by Brian Dolbec
1 Dnia 29 września 2016 09:06:59 CEST, Brian Dolbec <dolsen@g.o> napisał(a):
2 >
3 >OK, I've got the new twisted ebuild almost ready. I have the tests
4 >working, only diabling the network test group and one other that was
5 >disabled in the split pkg ebuild.
6 >
7 >But, the twisted-r1 postrm function is not working correctly. I have
8 >been overriding it in the ebuild so far. It seems that there is an
9 >EPYTHON issue...
10 >
11 >I'll let the traceback speak for itself.
12 >
13 >* python2_7: running distutils-r1_run_phase
14 >twisted-r1_update_plugin_cache
15 >* python3_4: running distutils-r1_run_phase
16 >twisted-r1_update_plugin_cache
17 >Traceback (most recent call last):
18 > File "<string>", line 1, in <module>
19 >File "/usr/lib64/python3.4/distutils/sysconfig.py", line 13, in
20 ><module>
21 > import re
22 > File "/usr/lib64/python3.4/re.py", line 336, in <module>
23 > import copyreg
24 >File "/usr/lib64/python2.7/site-packages/copyreg/__init__.py", line 7,
25 >in <module>
26 >raise ImportError('This package should not be accessible on Python 3. '
27 >ImportError: This package should not be accessible on Python 3.
28 >Either you are trying to run from the python-future src folder or your
29 >installation
30 > of python-future is corrupted.
31
32 At a first glance, it looks like you have some package installed that gets auto-imported magically and is broken itself, therefore breaking everything.
33
34 >
35 >
36 >
37 >What I can't figure out is of it isn't EPYTHON that is screwed up, how
38 >the hell is
39 >this happening... a simple py3.4 import re causes the 3.4 re.py to try
40 >and import a
41 >py2.7 version of copyreq.
42 >
43 >I can't reproduce this in a terminal window with py3.4 session.
44 >"import re" is fine and
45 >works correctly. So, it can't be a bad python install.
46 >
47 >I'll work on pushing the changes to the twisted ebuilds in the morning
48 >to my buildbot-dev overlay.
49 >But I have attached the WIP ebuild for 16.3.0. You can grab the files
50 >dir from [1] if you want
51 >to try emerging it.
52 >
53 >[1]
54 >https://github.com/dol-sen/buildbot-dev/tree/master/dev-python/twisted/files
55
56
57 --
58 Best regards,
59 Michał Górny (by phone)