View previous topic :: View next topic |
Author |
Message |
evoweiss Veteran
Joined: 07 Sep 2003 Posts: 1678 Location: Edinburgh, UK
|
Posted: Wed Jan 15, 2014 6:04 am Post subject: No module named 'portage' from python-udpater [solved] |
|
|
Hi all,
I'm experiencing a peculiar raft of errors when running python-updater to get everything set up for python 3.3.
The relevant bits from /etc/make.conf are:
Code: |
USE_PYTHON='2.7 3.3'
PYTHON_TARGETS="python2_7 python3_3"
# Set PORTDIR for backward compatibility with various tools:
# gentoo-bashcomp - bug #478444
# euse - bug #474574
# euses and ufed - bug #478318
PORTDIR="/usr/portage"
|
The bugs are as follows:
Code: |
# python-updater
Traceback (most recent call last):
File "<string>", line 7, in <module>
ImportError: No module named 'portage'
* Starting Python Updater...
* Main active version of Python: 3.3
* Active version of Python 2: 2.7
* Active version of Python 3: 3.3
* Globally supported Python ABIs in installed repositories:
* Adding to list: app-text/calibre:0
Traceback (most recent call last):
File "<string>", line 7, in <module>
ImportError: No module named 'portage'
Traceback (most recent call last):
File "<string>", line 7, in <module>
ImportError: No module named 'portage'
* Adding to list: dev-libs/libgamin:0
Traceback (most recent call last):
File "<string>", line 7, in <module>
ImportError: No module named 'portage'
Traceback (most recent call last):
File "<string>", line 7, in <module>
ImportError: No module named 'portage'
Traceback (most recent call last):
File "<string>", line 7, in <module>
ImportError: No module named 'portage'
Traceback (most recent call last):
File "<string>", line 7, in <module>
ImportError: No module named 'portage'
Traceback (most recent call last):
File "<string>", line 7, in <module>
ImportError: No module named 'portage'
Traceback (most recent call last):
File "<string>", line 7, in <module>
ImportError: No module named 'portage'
Traceback (most recent call last):
File "<string>", line 7, in <module>
ImportError: No module named 'portage'
Traceback (most recent call last):
File "<string>", line 7, in <module>
ImportError: No module named 'portage'
* Adding to list: dev-python/dnspython:0
Traceback (most recent call last):
File "<string>", line 7, in <module>
ImportError: No module named 'portage'
Traceback (most recent call last):
File "<string>", line 7, in <module>
ImportError: No module named 'portage'
* Adding to list: dev-python/mechanize:0
Traceback (most recent call last):
File "<string>", line 7, in <module>
ImportError: No module named 'portage'
Traceback (most recent call last):
File "<string>", line 7, in <module>
ImportError: No module named 'portage'
* Adding to list: dev-python/netifaces:0
Traceback (most recent call last):
File "<string>", line 7, in <module>
ImportError: No module named 'portage'
Traceback (most recent call last):
File "<string>", line 7, in <module>
ImportError: No module named 'portage'
* Adding to list: media-libs/lcms:0
* Adding to list: sys-devel/gdb:0
Traceback (most recent call last):
File "<string>", line 7, in <module>
ImportError: No module named 'portage'
Traceback (most recent call last):
File "<string>", line 7, in <module>
ImportError: No module named 'portage'
* Adding to list: sys-libs/cracklib:0
* emerge -Dv1 --keep-going app-text/calibre:0 dev-libs/libgamin:0 dev-python/dnspython:0 dev-python/mechanize:0 dev-python/netifaces:0 media-libs/lcms:0 sys-devel/gdb:0 sys-libs/cracklib:0
|
Look forward to hearing back on this.
Best,
Alex
Last edited by evoweiss on Wed Jan 15, 2014 7:44 pm; edited 1 time in total |
|
Back to top |
|
|
Randy Andy Veteran
Joined: 19 Jun 2007 Posts: 1148 Location: /dev/koelsch
|
Posted: Wed Jan 15, 2014 6:24 am Post subject: |
|
|
Hi evoweiss,
AFAIR the solution for this has been published in one of the last "eselect news read new" 's. So give it a try.
Best, Andy. _________________ If you want to see a Distro done right, compile it yourself! |
|
Back to top |
|
|
evoweiss Veteran
Joined: 07 Sep 2003 Posts: 1678 Location: Edinburgh, UK
|
Posted: Wed Jan 15, 2014 6:33 am Post subject: |
|
|
Hi,
Randy Andy wrote: | AFAIR the solution for this has been published in one of the last "eselect news read new" 's. So give it a try. |
Oddly, I cannot see any solution that has been published, just a note about PYTHON_TARGETS deployment dated 2012-11-06, which seems a bit dated. Any clarification would be much appreciated.
Best,
Alex |
|
Back to top |
|
|
Randy Andy Veteran
Joined: 19 Jun 2007 Posts: 1148 Location: /dev/koelsch
|
Posted: Wed Jan 15, 2014 6:38 am Post subject: |
|
|
Sorry evoweiss,
I'm not sitting on my Box, so not able to clarify it deeper, but I advise to work out what they wrote in this new.
Eventually comment out your hand made entries into the make.conf.
Do the emerge command, given in that news and run python-updater again. (Only as a shot in the dark...) _________________ If you want to see a Distro done right, compile it yourself! |
|
Back to top |
|
|
evoweiss Veteran
Joined: 07 Sep 2003 Posts: 1678 Location: Edinburgh, UK
|
Posted: Wed Jan 15, 2014 6:49 am Post subject: |
|
|
Randy Andy wrote: | Sorry evoweiss,
I'm not sitting on my Box, so not able to clarify it deeper, but I advise to work out what they wrote in this new.
Eventually comment out your hand made entries into the make.conf.
Do the emerge command, given in that news and run python-updater again. (Only as a shot in the dark...) |
I don't think that's helped. I am getting the same errors as before despite commenting out the make.conf entries, emerge -1 dev-python/python-exec, and a second run of python-updater.
When you are back at your terminal, or if anybody else is available, more help would be appreciated .
Best,
Alex |
|
Back to top |
|
|
Randy Andy Veteran
Joined: 19 Jun 2007 Posts: 1148 Location: /dev/koelsch
|
Posted: Wed Jan 15, 2014 4:51 pm Post subject: |
|
|
evoweiss,
Back on my Box now its not clear to me, if your python-updater runs through successfully and if yes, what kind of trouble happens after this step.
So please post us the errors after that has been working out and additional your output of:
eselect python list
eix -I dev-lang/python
Best, Andy _________________ If you want to see a Distro done right, compile it yourself! |
|
Back to top |
|
|
evoweiss Veteran
Joined: 07 Sep 2003 Posts: 1678 Location: Edinburgh, UK
|
Posted: Wed Jan 15, 2014 5:02 pm Post subject: |
|
|
Hi Andy,
Randy Andy wrote: | ,
Back on my Box now its not clear to me, if your python-updater runs through successfully and if yes, what kind of trouble happens after this step.
So please post us the errors after that has been working out and additional your output of:
|
Here are the outputs.
Code: |
# eselect python list
Available Python interpreters:
[1] python2.7
[2] python3.2
[3] python3.3 *
# eix -I dev-lang/python
[I] dev-lang/python
Available versions:
(2.6) 2.6.8-r3 ~2.6.9
(2.7) 2.7.5-r3 ~2.7.5-r4 ~2.7.6
(3.2) 3.2.5-r3
(3.3) 3.3.2-r2 ~3.3.3
{-berkdb build doc examples gdbm hardened ipv6 +ncurses +readline sqlite +ssl +threads tk +wide-unicode wininst +xml ELIBC="uclibc"}
Installed versions: 2.7.5-r3(2.7)(23:59:21 08/12/13)(berkdb gdbm ncurses readline sqlite ssl threads wide-unicode xml -build -doc -examples -hardened -ipv6 -tk -wininst ELIBC="-uclibc") 3.2.5-r3(3.2)(12:18:25 17/10/13)(gdbm ncurses readline sqlite ssl threads wide-unicode xml -build -doc -examples -hardened -ipv6 -tk -wininst ELIBC="-uclibc") 3.3.2-r2(3.3)(00:23:28 09/12/13)(gdbm ncurses readline sqlite ssl threads xml -build -doc -examples -hardened -ipv6 -tk -wininst ELIBC="-uclibc")
Homepage: http://www.python.org/
Description: An interpreted, interactive, object-oriented programming language
[I] dev-lang/python-exec
Available versions:
(0) 0.3.1 **0.9999
(2) ~2.0 2.0.1 **2.9999
{PYTHON_TARGETS="jython2_5 jython2_7 pypy2_0 python2_6 python2_7 python3_2 python3_3"}
Installed versions: 0.3.1(16:40:28 17/11/13)(PYTHON_TARGETS="jython2_5 jython2_7 pypy2_0 python2_6 python2_7 python3_2 python3_3") 2.0.1(2)(20:48:48 24/11/13)(PYTHON_TARGETS="jython2_5 jython2_7 pypy2_0 python2_6 python2_7 python3_2 python3_3")
Homepage: https://bitbucket.org/mgorny/python-exec/
Description: Python script wrapper
Found 2 matches.
|
Best,
Alex |
|
Back to top |
|
|
Randy Andy Veteran
Joined: 19 Jun 2007 Posts: 1148 Location: /dev/koelsch
|
Posted: Wed Jan 15, 2014 5:57 pm Post subject: |
|
|
Alex,
switch over to Python-2.7 as your main interpreter with:
Code: | eselect python set 1 |
and retry to run python updater.
If it won't work, please tell us the requested error output, I asked for on my last post.
Best, Andy. _________________ If you want to see a Distro done right, compile it yourself! |
|
Back to top |
|
|
evoweiss Veteran
Joined: 07 Sep 2003 Posts: 1678 Location: Edinburgh, UK
|
Posted: Wed Jan 15, 2014 7:32 pm Post subject: |
|
|
Hi Andy,
Randy Andy wrote: |
switch over to Python-2.7 as your main interpreter with:
Code: | eselect python set 1 |
and retry to run python updater.
If it won't work, please tell us the requested error output, I asked for on my last post. |
That worked fine, i.e. I did not get any errors.
I decided to try and see whether re-emerging python 3.3 and portage would help and it seems to have cleared things up.
Thanks for your help.
Best,
Alex |
|
Back to top |
|
|
Randy Andy Veteran
Joined: 19 Jun 2007 Posts: 1148 Location: /dev/koelsch
|
Posted: Thu Jan 16, 2014 3:42 pm Post subject: |
|
|
You're welcome!
Regards, Andy. _________________ If you want to see a Distro done right, compile it yourself! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|