Unable to open JSON file in pwd
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 38/100
Research direction
Start with the installed pyjsonviewer entry point and the pyjsonviewer.py path shown in the error, comparing the failing python3 pyjsonviewer -f ... invocation with the working $ pyjsonviewer command. Reproduce both cases with exported.json; done means the command-line invocation opens the specified JSON file without the file-not-found error.
Written by the indexing model from the issue text.
Description
Installed using pip3 install pyjsonviewer — Received a _tkinter error and resolved that using brew install python-tk
I have a .json file located in a directory (pwd) — repos/data_objects/exported.json
When I run python3 pyjsonviewer -f exported.json OR python3 pyjsonviewer -f repos/data_objects/exported.json I get the same error.
(14:52:30)──> python3 pyjsonviewer -f exported.json 2 ↵ ──(Tue,Oct11)─┘
/opt/homebrew/bin/python3: can't open file '/Users/username/repos/data_objects/pyjsonviewer': [Errno 2] No such file or directory
AND
(14:51:19)──> python3 pyjsonviewer -f ~/repos/data_objects/exported.json 2 ↵ ──(Tue,Oct11)─┘
/opt/homebrew/bin/python3: can't open file '/Users/username/repos/data_objects/pyjsonviewer': [Errno 2] No such file or directory
After installing python-tk with brew (brew install python-tk) running $ pyjsonviewer spawns a tree nav pane, as expected.
/opt/homebrew/lib/python3.10/site-packages/pyjsonviewer/pyjsonviewer.py start!!
From the pyjsonviewer pane, I'm able to open the file.
- Dominant language
- Python
- Stars
- 88
- Forks
- 32
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AtsushiSakai/PyJSONViewer
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
AtsushiSakai/PyJSONViewer#49 · 1 reaction ·
-
Adding CUI supportOpenenhancement
Difficulty 5/5 Over a week Newbie friendliness 20/100
AtsushiSakai/PyJSONViewer#47 · 1 reaction ·
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 45/100
AtsushiSakai/PyJSONViewer#43 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 45/100
AtsushiSakai/PyJSONViewer#42 ·
-
Long fields are not accessible beyond window width.May be free again @Faizan-Alam-1 claimed this 1146 days ago, and no pull request is open. Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
AtsushiSakai/PyJSONViewer#40 · 4 comments ·
All issues in AtsushiSakai/PyJSONViewer
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
spec-kitty/spec-kitty#6112 ·
Maintainers usually reply within 1 day
-
[Bug]: OpenRouter streaming chunks report the requested router name instead of the model OpenRouter servedPossibly taken @Mrun25 claimed this today. Openbug llm translation
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
BerriAI/litellm#46095 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
uberdeveloper/fastbt#29 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
andrew-blake/melcloudhome#368 ·
Maintainers usually reply within 1 day
-
lane:discover
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
SPARDiffData/differential-data-collection#33 ·
Maintainers usually reply within 1 day