Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 436934

Summary: app-portage/gentoolkit incompatible with Python 3.3
Product: Portage Development Reporter: Arfrever Frehtes Taifersar Arahesis <arfrever.fta>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED FIXED    
Severity: normal CC: aklhfex, dschridde+gentoobugs, skrattaren
Priority: Normal Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 346443, 437322    

Description Arfrever Frehtes Taifersar Arahesis 2012-10-02 05:49:14 UTC
enalyze and equery use __import__ in the way officially not supported in Python 3 and really not supported in Python >=3.3:

$ equery d
Traceback (most recent call last):
  File "/usr/bin/equery", line 38, in <module>
    equery.main(sys.argv)
  File "/usr/lib64/python3.3/site-packages/gentoolkit/equery/__init__.py", line 352, in main
    expanded_module_name, globals(), locals(), [], -1
ValueError: level must be >= 0
$

In this case, 1 instead of -1 should be used.
Comment 2 Paul Varner (RETIRED) gentoo-dev 2012-11-06 17:21:34 UTC
Released in gentoolkit-0.3.0.7