Jump to content
Funtoo Newsletter -- March 2023 -- Metatools and CDN ×
  • 0

AttributeError: 'ElementTree' object has no attribute 'getiterator'


ainsley31415926

Question

Hi,

Just installed next for the first time, a couple of minutes ago.

What is this error all about?

 

 

equery u net-fs/nfs-utils
Traceback (most recent call last):
 File "/usr/lib/python-exec/python3.9/equery", line 38, in <module>
   equery.main(sys.argv)
 File "/usr/lib/python3.9/site-packages/gentoolkit/equery/__init__.py", line 356, in main
   loaded_module.main(module_args)
 File "/usr/lib/python3.9/site-packages/gentoolkit/equery/uses.py", line 306, in main
   output = get_output_descriptions(pkg, global_usedesc)
 File "/usr/lib/python3.9/site-packages/gentoolkit/equery/uses.py", line 186, in get_output_descriptions
   local_usedesc = pkg.metadata.use()
 File "/usr/lib/python3.9/site-packages/gentoolkit/metadata.py", line 286, in use
   for node in self._xml_tree.getiterator('flag'):
AttributeError: 'ElementTree' object has no attribute 'getiterator'


 

 

 

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

The issue is python3.9, the bug report has the details:

FL-10643 [next]: equery has problems getting the use flags from ebuilds

A workaround would be to install dev-lang/python-3.7.16,then use eselect python list, and eselect python set the [  ] by  python3.7 so it becomes [1]

rj@funtoo-next ~ $ ego query v python
 dev-lang/python| slot|            repo
----------------+-----+----------------
     * 2.7.18-r1|     | python-kit/next
----------------+-----+----------------
        * 3.7.16|   /m| python-kit/next
----------------+-----+----------------
          3.8.16|     | python-kit/next
        * 3.9.16|     | python-kit/next
         3.10.11|     | python-kit/next
rj@funtoo-next ~ $ eselect python list
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.9
  [3]   python2.7 (fallback)

 

Edited by cardinal
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...