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

ModuleNotFoundError: No module named 'Questgen'` #49

Open
kanranmm opened this issue Aug 17, 2022 · 7 comments
Open

ModuleNotFoundError: No module named 'Questgen'` #49

kanranmm opened this issue Aug 17, 2022 · 7 comments

Comments

@kanranmm
Copy link

kanranmm commented Aug 17, 2022

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

@whitewhistle
Copy link

were you able to solve it?

@rionarth
Copy link

I encountered the same problem.

@pooyaEst
Copy link
Contributor

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

@Cheng-SQ0716
Copy link

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?

@pooyaEst
Copy link
Contributor

pooyaEst commented May 26, 2023

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.

@pooyaEst
Copy link
Contributor

pooyaEst commented Jun 1, 2023

@Cheng-SQ0716 @rionarth @kanranmm @whitewhistle fixed problems in forked repo
https://github.com/pooyaEst/Questgen.ai , in colab (updated link in readme of https://github.com/pooyaEst/Questgen.ai ) remember to change git repo to https://github.com/pooyaEst/Questgen.ai

@AliHaider20
Copy link
Contributor

This is solved. Close it

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

6 participants