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

JSONDecodeError when using the Handler Object #34

Open
Mofetoluwa opened this issue May 1, 2022 · 3 comments
Open

JSONDecodeError when using the Handler Object #34

Mofetoluwa opened this issue May 1, 2022 · 3 comments

Comments

@Mofetoluwa
Copy link
Contributor

I get this error when using Handler():
json.decoder.JSONDecodeError: Unterminated string starting at: line 98979 column 3 (char 2833058)

Here is a screenshot of the error:

Screenshot 2022-05-01 at 21 26 38

Here's the test code that generated the error:

Screenshot 2022-05-01 at 21 30 34

I'm implementing directly using the text2text module, I did not pip install. Could this be a reason for the error?

@artitw
Copy link
Owner

artitw commented May 7, 2022

Could you share the steps you used to set up your environment? I was able to get a working version of the code above when I installed directly from source: https://colab.research.google.com/drive/1eUkuTLMIfc6UDxFa5zK4YT35JvUkekug?usp=sharing

@Mofetoluwa
Copy link
Contributor Author

Hi Art,

I created the conda environment using conda create --name my_env python=3 and installed the libraries needed such as transformers, torch, etc. I have also installed text2text directly from source in the environment, as you did, but it still gives the error.

@artitw
Copy link
Owner

artitw commented May 14, 2022

I was able to get the conda environment working: https://colab.research.google.com/drive/1ydKWKZBLKM0bjebIC9_KmJERq8KpacRa?usp=sharing

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

2 participants