Loading JSON files in Python


#1

Can’t seem to load a json file which is in the same directory as my python file. Keep getting the “IOError: [Errno 2] No such file or directory” error. However when I compiled the same script in Sublime it loaded perfectly fine.

Anything I am missing or doing incorrectly? Thanks for the help!


#2

Atom doesn’t build or execute code that you write in Atom. The FAQ has more information:


#3

I installed script.

When I try to build my code with cmd+i (since I have a Mac) then that’s when that error shows up


#4

If you’re asking with help for your Python code, you may want to check Stack Overflow. If you’re having problems getting the script package to work, the FAQ contains information on how to contact the maintainers of any Atom package or theme: