From: Mike Gilbert <floppym@gentoo.org>
To: Brian Dolbec <dolsen@gentoo.org>
Cc: gentoo-python <gentoo-python@lists.gentoo.org>
Subject: Re: [gentoo-python] twisted-r1.eclass postrm failure for new twisted ebuilds
Date: Thu, 29 Sep 2016 12:07:13 -0400 [thread overview]
Message-ID: <CAJ0EP43MyxCZBPappi9PhQdwJ9KEG44s4sPuaUbN0a-6AjtbkA@mail.gmail.com> (raw)
In-Reply-To: <20160929000659.54815f46.dolsen@gentoo.org>
On Thu, Sep 29, 2016 at 3:06 AM, Brian Dolbec <dolsen@gentoo.org> wrote:
>
> OK, I've got the new twisted ebuild almost ready. I have the tests
> working, only diabling the network test group and one other that was
> disabled in the split pkg ebuild.
>
> But, the twisted-r1 postrm function is not working correctly. I have
> been overriding it in the ebuild so far. It seems that there is an
> EPYTHON issue...
>
> I'll let the traceback speak for itself.
>
> * python2_7: running distutils-r1_run_phase twisted-r1_update_plugin_cache
> * python3_4: running distutils-r1_run_phase twisted-r1_update_plugin_cache
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> File "/usr/lib64/python3.4/distutils/sysconfig.py", line 13, in <module>
> import re
> File "/usr/lib64/python3.4/re.py", line 336, in <module>
> import copyreg
> File "/usr/lib64/python2.7/site-packages/copyreg/__init__.py", line 7, in <module>
> raise ImportError('This package should not be accessible on Python 3. '
> ImportError: This package should not be accessible on Python 3.
> Either you are trying to run from the python-future src folder or your installation
> of python-future is corrupted.
>
>
>
> What I can't figure out is of it isn't EPYTHON that is screwed up, how the hell is
> this happening... a simple py3.4 import re causes the 3.4 re.py to try and import a
> py2.7 version of copyreq.
>
> I can't reproduce this in a terminal window with py3.4 session. "import re" is fine and
> works correctly. So, it can't be a bad python install.
See portage bug 595028.
https://bugs.gentoo.org/show_bug.cgi?id=595028
You can workaround the problem by adding something like this to any
pkg_* functions.
cd "${HOME}"
prev parent reply other threads:[~2016-09-29 16:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-29 7:06 [gentoo-python] twisted-r1.eclass postrm failure for new twisted ebuilds Brian Dolbec
2016-09-29 10:42 ` Michał Górny
2016-09-29 16:07 ` Mike Gilbert [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJ0EP43MyxCZBPappi9PhQdwJ9KEG44s4sPuaUbN0a-6AjtbkA@mail.gmail.com \
--to=floppym@gentoo.org \
--cc=dolsen@gentoo.org \
--cc=gentoo-python@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox