-
Notifications
You must be signed in to change notification settings - Fork 295
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
ModuleNotFoundError: No module named 'Questgen'` #49
Comments
were you able to solve it? |
I encountered the same problem. |
Many of the packages in setup.py and requirements.txt are outdated and not compatible with with newer python versions updating packages to last version also causes some other problems |
I also have some problems in google colab, it could not run successfully due to the outdated versions of packages and dependecies At the same time, some package versions have some conflicts Do you think creating a virtual environment could solve it? |
It might help although not the optimal solution, the project doesn't seem abandoned so maybe it can be updated by core team or other contributors . i tried to update packages but just like you the conflicts prevented me. might work on it later but as I'm not familiar with the code it wont be easy. |
@Cheng-SQ0716 @rionarth @kanranmm @whitewhistle fixed problems in forked repo |
This is solved. Close it |
I did all these:
pip install git+https://github.com/ramsrigouthamg/Questgen.ai
pip install git+https://github.com/boudinfl/pke.git@69337af9f9e72a25af6d7991eaa9869f1322dd72
python -m nltk.downloader universal_tagset
python -m spacy download en
Then when I run:
from pprint import pprint
import nltk
nltk.download('stopwords')
from Questgen import main
qe= main.BoolQGen()
payload = {
"input_text": "Sachin Ramesh Tendulkar is a former international cricketer from India and a former captain of the Indian national team. He is widely regarded as one of the greatest batsmen in the history of cricket. He is the highest run scorer of all time in International cricket."
}
output = qe.predict_boolq(payload)
pprint (output)
I get the following error:
`---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
in
2 import nltk
3 nltk.download('stopwords')
----> 4 from Questgen import main
5 qe= main.BoolQGen()
6 payload = {
ModuleNotFoundError: No module named 'Questgen'`
Please help
The text was updated successfully, but these errors were encountered: