Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
python-updater: ImportError: No module named 'portage'
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
modnaruved
Apprentice
Apprentice


Joined: 21 Mar 2011
Posts: 160

PostPosted: Mon Nov 24, 2014 11:43 am    Post subject: python-updater: ImportError: No module named 'portage' Reply with quote

Hi!

Of course im sorry. It package system with programming logic. I understand that need compiling.

Latest update bringing many changes with python active versions: at begining all must use python-3.4. Ok. No problem. But today, after upgrading, need python-3.3, but nothing about setting in eselect. Now my system compiling back to python-3.3. Ok. No problem, but is it correct?

Where right setting? Why 3.4 then 3.3 again? Where profit?

After latest updating and follow set of tips from eselect news end emerging output, finally getting these errors after repeat syncing portage:

Code:

sudo 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.4
 * Active version of Python 2:       2.7
 * Active version of Python 3:       3.4
 * Globally supported Python ABIs in installed repositories:
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-java/javatoolkit: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'
 *   Adding to list: dev-python/cddb-py: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/id3-py: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/pyid3lib: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/pyvorbis:0
...

an so on...
But finally Ive get emerge ....

It seems as stable system.

my emerge --info:

https://bpaste.net/show/84f133ebee70

How to resolve these errors or it normal behaviour?

thanks and sorry,


Last edited by modnaruved on Mon Nov 24, 2014 12:55 pm; edited 1 time in total
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Mon Nov 24, 2014 12:07 pm    Post subject: Reply with quote

You should not set active version of python to 3.4. Use eselect python list/set to set back to 3.3. Then run python-updater again
Back to top
View user's profile Send private message
modnaruved
Apprentice
Apprentice


Joined: 21 Mar 2011
Posts: 160

PostPosted: Mon Nov 24, 2014 12:19 pm    Post subject: Reply with quote

charles17 wrote:
You should not set active version of python to 3.4. Use eselect python list/set to set back to 3.3. Then run python-updater again

thanks for quick reply.

Is it right setting?
Code:

sudo eselect python set --python3 python3.3


instead old:

Code:

sudo eselect python set --python3 python3.4


p.s.

Eselecting to 3.3 is work for python-updater.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Mon Nov 24, 2014 12:38 pm    Post subject: Reply with quote

modnaruved wrote:
Is it right setting?
Check
Code:
$ eselect python list
That list entry with * is the selected.
Back to top
View user's profile Send private message
modnaruved
Apprentice
Apprentice


Joined: 21 Mar 2011
Posts: 160

PostPosted: Mon Nov 24, 2014 1:37 pm    Post subject: Reply with quote

charles17 wrote:
modnaruved wrote:
Is it right setting?
Check
Code:
$ eselect python list
That list entry with * is the selected.


Ok. Now my setting is:
Code:
 eselect python list
Available Python interpreters:
  [1]   python2.7
  [2]   python3.3 *
  [3]   python3.4


Seems all is good!
Back to top
View user's profile Send private message
tnt
Veteran
Veteran


Joined: 27 Feb 2004
Posts: 1222

PostPosted: Tue Nov 25, 2014 4:56 pm    Post subject: Reply with quote

last update trashed all 3.3 versions, and this one trashes 3.4

I would understand that if I would be running ~arch, but I'm not.

really messy :(
_________________
gentoo user
Back to top
View user's profile Send private message
unixbhaskar
Tux's lil' helper
Tux's lil' helper


Joined: 29 Nov 2007
Posts: 119
Location: India

PostPosted: Sun Jan 25, 2015 5:58 am    Post subject: Heck I am getting the same python updater problem Reply with quote

Code:


* 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:
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: app-admin/webapp-config: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: app-emulation/virtinst: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: app-portage/gentoolkit: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: app-text/gnome-doc-utils:0
Traceback (most recent call last):
  File "<string>", line 7, in <module>
ImportError: No module named 'portage'


Wondering!!
_________________
Musing with GNU/Linux :)

Lenovo Thinkpad x250
x86_64 Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz GenuineIntel GNU/Linux
RAM : 8 GB
Kernel :Latest customized kernel
OS: Gentoo/Arch/Slackware/Debian/openSUSE/Fedora
Intel 965GM Chipset
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
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