Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Layman python error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
eliptats
n00b
n00b


Joined: 12 Jul 2015
Posts: 1

PostPosted: Sun Jul 12, 2015 12:15 pm    Post subject: Layman python error Reply with quote

This is what happens when I try to add an overlay



* Adding overlay...
Traceback (most recent call last):
File "/usr/lib64/python3.3/site-packages/layman/dbbase.py", line 157, in read
document = ET.fromstring(text)
File "/usr/lib64/python3.3/xml/etree/ElementTree.py", line 1357, in XML
return parser.close()
xml.etree.ElementTree.ParseError: no element found: line 1, column 0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python-exec/python3.3/layman", line 45, in <module>
main()
File "/usr/lib64/python3.3/site-packages/layman/cli.py", line 197, in __call__
result += getattr(self, action[1])()
File "/usr/lib64/python3.3/site-packages/layman/cli.py", line 246, in Add
result = self.api.add_repos(selection, update_news=True)
File "/usr/lib64/python3.3/site-packages/layman/api.py", line 150, in add_repos
if self.is_installed(ovl):
File "/usr/lib64/python3.3/site-packages/layman/api.py", line 94, in is_installed
return ovl in self.get_installed()
File "/usr/lib64/python3.3/site-packages/layman/api.py", line 578, in get_installed
self._installed_ids = self._get_installed_db(dbreload).list_ids()
File "/usr/lib64/python3.3/site-packages/layman/api.py", line 585, in _get_installed_db
self._installed_db = DB(self.config)
File "/usr/lib64/python3.3/site-packages/layman/db.py", line 62, in __init__
ignore=ignore,
File "/usr/lib64/python3.3/site-packages/layman/dbbase.py", line 111, in __init__
self.read_file(path)
File "/usr/lib64/python3.3/site-packages/layman/dbbase.py", line 143, in read_file
self.read(document, origin=path)
File "/usr/lib64/python3.3/site-packages/layman/dbbase.py", line 158, in read
except xml.parsers.expat.ExpatError as error:
AttributeError: 'module' object has no attribute 'parsers'


I'm using 2.2.0-r7, I also tried installing 9999 but it didn't help.
Back to top
View user's profile Send private message
Thistled
Guru
Guru


Joined: 06 Jan 2011
Posts: 572
Location: Scotland

PostPosted: Fri Oct 09, 2015 11:46 pm    Post subject: Reply with quote

Have you tried this with an older version of Python?
Code:
eselect python list

_________________
Whatever you do, do it properly!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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