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

Unclear error when ig.Graph.Read() given bad file path #40

Closed
nickeubank opened this issue Jul 29, 2015 · 1 comment
Closed

Unclear error when ig.Graph.Read() given bad file path #40

nickeubank opened this issue Jul 29, 2015 · 1 comment

Comments

@nickeubank
Copy link
Contributor

In python 3.4, when one uses ig.Read.Graph('file', format='pickle') and passes a bad file name (with a typo or something), the error is very hard to understand -- the error is:

TypeError: 'str' does not support the buffer interface"

The error occurs at line ~1801 of init.py at the line result = pickle.loads(fname)

I've offered one solution in PR #41

@ntamas
Copy link
Member

ntamas commented Jul 29, 2015

#41 is merged now so I'll close this.

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