0

I can run this script on my laptop, but when I run this script on a PC an error comes up.

import platform ,os, sys, re, json
global job, seq, shot, curApp, jobPath, jobPathLin, jobPathMaya, jobPathNuke,jobPathOsx, jobPathScripts, jobPathWin, nukeOutPath

jFile = open('%s/config.json' % os.environ['FXPIPEPATH'])
jData = json.load(jFile)`enter code here`
jFile.close()

Here is the error:

Error: ValueError: file c:\Program Files\Autodesk\Maya2017\bin\python27.zip\json\decoder.py line 382: No JSON object could be decoded

Can anyone help?

Haldean Brown
  • 12,411
  • 5
  • 43
  • 58
Desmond
  • 1
  • 1
  • Can you show an example of the json file? – Apoorv Kansal Dec 07 '16 at 12:15
  • Are you sure you do have that `config.json` file on your pc? – SgtDroelf Dec 07 '16 at 12:16
  • Welcome to Stack Overflow! I've edited your question. You could improve the question by telling us which line in your code is line 382. Could you ascertain that the JSON file is on the PC as well as on the laptop, and that it is the same file? Please [edit] such details into your question. Good luck! – S.L. Barth is on codidact.com Dec 07 '16 at 18:05
  • Looks like you have some issues with json file and you probably try with a simplejson please see this thread http://stackoverflow.com/questions/14899506/displaying-better-error-message-than-no-json-object-could-be-decoded – Achayan Dec 07 '16 at 19:20

0 Answers0