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

Error while taking new sentences as input #7

Open
agrawalanshul053 opened this issue Dec 11, 2021 · 0 comments
Open

Error while taking new sentences as input #7

agrawalanshul053 opened this issue Dec 11, 2021 · 0 comments

Comments

@agrawalanshul053
Copy link

[11/Dec/2021 14:38:45] "GET / HTTP/1.1" 200 4912
form is valid
http://sanskrit.inria.fr/cgi-bin/SKT/sktgraph.cgi?lex=SH&st=t&us=f&cp=t&text=rAmasya+BAryA+sIwA+wasya+anujaH+lakRmaNaH+ca+rAmeNa+saha&t=WX&topic=&mode=g&corpmode=&corpdir=&sentno=
Internal Server Error: /presentdata/
Traceback (most recent call last):
File "/home/jivnesh/anaconda3/envs/SHRenv/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/home/jivnesh/anaconda3/envs/SHRenv/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in get_response
response = self.process_exception_by_middleware(e, request)
File "/home/jivnesh/anaconda3/envs/SHRenv/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/jivnesh/Downloads/Segmentation/mysite/annotatorapp/views.py", line 177, in presentdataview
dict
= codeforline.getdatafromsite(Sentence)
File "/home/jivnesh/Downloads/Segmentation/mysite/annotatorapp/codeforline.py", line 76, in getdatafromsite
ldata = str(re.search(r'{.?}[(.)]', onclickdata
).group(1))
AttributeError: 'NoneType' object has no attribute 'group'
[11/Dec/2021 14:38:54] "POST /presentdata/ HTTP/1.1" 500 111772

I have copied the error which was coming while taking new input. I am using Ubuntu 16.04. The app is working fine with default and save sentences but not with new sentences.

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