New submission from Justin Rose <[email protected]>:
when I run the included file i get an error that looks like:
Traceback (most recent call last):
File "/home/justin/Desktop/pkmn/main.py", line 10, in <module>
expansion = json.load(expan_list)
File "/usr/lib/python3.6/json/__init__.py", line 296, in load
return loads(fp.read(),
AttributeError: 'str' object has no attribute 'read'
dont know what to make of it
----------
components: Extension Modules
files: main.py
messages: 342609
nosy: Justin Rose
priority: normal
severity: normal
status: open
title: json lib doesnt want to load from file
type: resource usage
versions: Python 3.6
Added file: https://bugs.python.org/file48331/main.py
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue36931>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com