Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aplications raise except TypeError #2

Open
isvaldo opened this issue May 19, 2015 · 0 comments
Open

Aplications raise except TypeError #2

isvaldo opened this issue May 19, 2015 · 0 comments

Comments

@isvaldo
Copy link
Member

isvaldo commented May 19, 2015

Traceback (most recent call last):
File "init.py", line 73, in
SetDB().write_file_pdi()
File "init.py", line 64, in write_file_pdi
tree.write(file, encoding='utf-8', xml_declaration=True)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 812, in write
write("\n" % encoding)
TypeError: descriptor 'write' requires a 'file' object but received a 'str'

maybe, "file" is a mistake ?
tree.write(file, encoding='utf-8', xml_declaration=True)

@dmvieira
@thiagopf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant