-
Notifications
You must be signed in to change notification settings - Fork 161
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 on calling setup(<'code-of-language'>) #3
Comments
Thanks for reaching out! |
Oh Wait !. I am running on a Mac. Might be the issue ? |
This should not be an issue with running on a Mac. Are you able to reproduce it? |
I am also getting an error on this line but the error is: |
@gayatrivenugopal It looks like your internet connection went down while downloading models. It should work out fine if you'll retry! When you call setup('hi'), we try to download model which is ~100-150 Mb in size, so need internet to work during that period! |
@jintgeorge, @gayatrivenugopal I'll close this issue, as this doesn't seem to be a problem with iNLTK - feel free to reopen and get back with the instructions to reproduce! |
@goru001 encountered same error on calling setup(<'code-of-language'>) in Mac for hindi . |
@smehta688 Can you post the Traceback of the error you're getting? |
@smehta688 @jintgeorge @goru001 conda uninstall pytorch and then run the same file without setup('hi') line, run the code in Jupyter notebook. |
Tried to uninstall and install of PyTorch but still run into this issue. Trace below.
|
@narayanacharya6 even I got a similar error. I git cloned the repository and ran the code in my terminal. It worked perfectly. But I received the same error in the jupyter notebook. The problem is with the iPython kernel and asyncio package. This StackOverflow answer gave me some clarity regarding the error - https://stackoverflow.com/questions/60926440/why-do-i-get-runtimeerror-this-event-loop-is-already-running. @goru001 Please look into the same. |
I also faced the same issue with Jupiter notebook and Google colab. |
Hi, even after getting the message "Done!". The next line to "identify_language" is not working and throwing the same message: |
@Nishant01-ai : were you able to figure out how to fix the issue? |
Apologies @Nishant01-ai , @ADI-T-YA , @NikhilSKashyap , @narayanacharya6 for missing out on your comments in this thread. You do get
error on colab but if you'll wait for 4-5 minutes till the model gets downloaded, and then use inltk functionality normally as you would otherwise, you should be able to do that. I just did this in a colab notebook and it seems to be working fine. Please checkout this notebook and let me know if it still doesn't work. Just wait for 4-5 mins for model to download after you get the error "RuntimeError: This event loop is already running." |
Still, there is the same error. Even in the shared notebook, I can see the error. |
Hi @goru001, I was not able to run your colab notebook but was able to run it locally on my computer. I am trying to identify hinglish text using identify_language but it seems to classify the text as english. All other languages seem to work fine. Would you know how to fix it? |
Hi @Gautamshahi , @ADI-T-YA - In case my previous comment was not clear, On google colab, you will see the runtime error (as you see in cell 3 of the notebook), but if you'll wait for 4-5 mins for model to download and then use inltk's functionality (as shown in cell 4 of the notebook, where I get embedding vector for a hindi word), you should be able to use inltk as usual. In other words, the runtime error in this case doesn't stop you from using inltk as usual. Having said that, if you have the bandwidth to see how we can resolve this runtime error on google colab to improve user experience and contribute, it'll be great. |
Hi, I am also getting the same error. I am installing locally on my laptop. |
RuntimeError Traceback (most recent call last)
in
----> 1 setup('ml')
~/anaconda3/lib/python3.7/site-packages/inltk/inltk.py in setup(language_code)
21 loop = asyncio.get_event_loop()
22 tasks = [asyncio.ensure_future(download(language_code))]
---> 23 learn = loop.run_until_complete(asyncio.gather(*tasks))[0]
24 loop.close()
25
~/anaconda3/lib/python3.7/asyncio/base_events.py in run_until_complete(self, future)
569 future.add_done_callback(_run_until_complete_cb)
570 try:
--> 571 self.run_forever()
572 except:
573 if new_task and future.done() and not future.cancelled():
~/anaconda3/lib/python3.7/asyncio/base_events.py in run_forever(self)
524 self._check_closed()
525 if self.is_running():
--> 526 raise RuntimeError('This event loop is already running')
527 if events._get_running_loop() is not None:
528 raise RuntimeError(
RuntimeError: This event loop is already running
Done!
The text was updated successfully, but these errors were encountered: