audreyfeldroy / audreyfeldroy/standardjson

i get an error while importing with a .py file

Open
#4 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
18
Forks
1
PR merge metrics
No merged PRs in 30d

Description

when i run the file converted to txt provided i get an error looking like this
"
Traceback (most recent call last):
File "/home/justin/Desktop/pkmn/main.py", line 10, in
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'
"
[main.txt](https://github.com/audreyr/standardjson/files/3171036/main.txt)

dont know what to make of it

Contributor guide

Open the contributing guide

Research direction

Start with the attached main.txt and the traceback at main.py line 10, where json.load receives the reported value. Determine whether the report identifies a reproducible problem in this repository or an issue in the user's script; a contribution would need a clearly scoped, reproducible failure and a corresponding test or documented resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.