-
Notifications
You must be signed in to change notification settings - Fork 66
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
JsonDecode error #7
Comments
Also a JsonDecode error assistance would be appreciated JSONDecodeError: Expecting value: line 1 column 1 (char 0) |
Could you give me more details as to how the error occurred? |
Hi,
I appreciate your time…
In trying to run server.py I get the following error
Server % python server.py
File "server.py", line 135
paraphrases.append(f"{i + 1}. {line}")
^
SyntaxError: invalid syntax
So the web interface errors out
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback:
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/streamlit/script_runner.py", line 324, in _run_script
exec(code, module.__dict__)
File "/Users/csherida/Documents/AI_Class/Paraphrase-Generator-master/Streamlit/paraphrase.py", line 148, in <module>
main()
File "/Users/csherida/Documents/AI_Class/Paraphrase-Generator-master/Streamlit/paraphrase.py", line 60, in main
output = forward(user_input, decoding_params)
File "/Users/csherida/Documents/AI_Class/Paraphrase-Generator-master/Streamlit/paraphrase.py", line 132, in forward
data = r.json()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/requests/models.py", line 898, in json
return complexjson.loads(self.text, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/__init__.py", line 348, in loads
return _default_decoder.decode(s)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
[cid:B71D6D9F-74F7-4584-850B-CB170FC790D1]
Clarence Sheridan
***@***.******@***.***>
On Mar 27, 2021, at 1:29 AM, Sai Vamsi Alisetti ***@***.******@***.***>> wrote:
Could you give me more details as to how the error occurred?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#7 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AOKM7RZTZSJQFMACQEG36H3TFVUKBANCNFSM4WEUTLOA>.
|
Attempted clean PIP install from requirements
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pytorch-lightning 0.9.0 requires tensorboard==2.2.0, but you have tensorboard 2.4.1 which is incompatible.
|
Please check it now, and do let me know if the error still persists. |
Sorry to say I get same error
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback:
File "/Users/csherida/opt/anaconda3/lib/python3.8/site-packages/streamlit/script_runner.py", line 324, in _run_script
exec(code, module.__dict__)
File "/Users/csherida/Documents/A_BestSeller/RePhrase/Paraphrase-Generator-master/Streamlit/paraphrase.py", line 148, in <module>
main()
File "/Users/csherida/Documents/A_BestSeller/RePhrase/Paraphrase-Generator-master/Streamlit/paraphrase.py", line 60, in main
output = forward(user_input, decoding_params)
File "/Users/csherida/Documents/A_BestSeller/RePhrase/Paraphrase-Generator-master/Streamlit/paraphrase.py", line 132, in forward
data = r.json()
File "/Users/csherida/opt/anaconda3/lib/python3.8/site-packages/requests/models.py", line 898, in json
return complexjson.loads(self.text, **kwargs)
File "/Users/csherida/opt/anaconda3/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/Users/csherida/opt/anaconda3/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Users/csherida/opt/anaconda3/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
[cid:745D8A6C-D13A-4B4C-93F4-57AEA746F1D1]
Clarence Sheridan
***@***.******@***.***>
On Apr 14, 2021, at 5:17 AM, Sai Vamsi Alisetti ***@***.******@***.***>> wrote:
Please check it now, and do let me know if the error still persists.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#7 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AOKM7RZNX6WCUIYG2NGZHWDTIVMRNANCNFSM4WEUTLOA>.
|
Hi, I get the same error, any new? |
Has anyone seen this
File "/datadrive2/d0m028p/Paraphrase-Generator/Streamlit/paraphrase.py", line 132, in forward
data = r.json()
File "/home/azurerootadmin/.local/lib/python3.6/site-packages/requests/models.py", line 900, in json
return complexjson.loads(self.text, **kwargs)
File "/datadrive1/miniconda3/envs/t5/lib/python3.6/json/init.py", line 354, in loads
return _default_decoder.decode(s)
File "/datadrive1/miniconda3/envs/t5/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/datadrive1/miniconda3/envs/t5/lib/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
The text was updated successfully, but these errors were encountered: