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

write() function #25

Open
PiggyGaGa opened this issue Apr 29, 2020 · 1 comment
Open

write() function #25

PiggyGaGa opened this issue Apr 29, 2020 · 1 comment

Comments

@PiggyGaGa
Copy link

when I save gexf file using write() function just like this:

output_file=open(".\data.gexf","w")
gexf.write(output_file)

program report an error:
write() argument must be str, not bytes

how can I fix it?

@adu-web3
Copy link

adu-web3 commented Aug 4, 2020

according to the error message, you may need to pass the file path in write() function instead of an opening file

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

2 participants