You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had installed yolk in a Python 3.2 virtualenv. Querying cheeseshop for a name, e.g.
yolk -S name=couch
results in this error:
File "/home/dm/myprojects/python3-env/lib/python3.2/site-packages/yolk/pypi.py", line 179, in query_cached_package_list
return pickle.load(open(self.pkg_cache_file, "r"))
TypeError: 'str' does not support the buffer interface
Solution:
Docs for pickle.load() state, file must return bytes. Saying "rb" instead of "r" for open() seems to do the trick, Similarly, in line 185 say "wb" instead of "w".
The text was updated successfully, but these errors were encountered:
I had installed yolk in a Python 3.2 virtualenv. Querying cheeseshop for a name, e.g.
yolk -S name=couch
results in this error:
File "/home/dm/myprojects/python3-env/lib/python3.2/site-packages/yolk/pypi.py", line 179, in query_cached_package_list
return pickle.load(open(self.pkg_cache_file, "r"))
TypeError: 'str' does not support the buffer interface
Solution:
Docs for pickle.load() state, file must return bytes. Saying "rb" instead of "r" for open() seems to do the trick, Similarly, in line 185 say "wb" instead of "w".
The text was updated successfully, but these errors were encountered: