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

Unable to open JSON file in pwd #48

Open
FoxInTheB0xFFF opened this issue Oct 11, 2022 · 0 comments
Open

Unable to open JSON file in pwd #48

FoxInTheB0xFFF opened this issue Oct 11, 2022 · 0 comments

Comments

@FoxInTheB0xFFF
Copy link

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.

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

1 participant