Parrot_Paraphraser
Parrot_Paraphraser copied to clipboard
ImportError: cannot import name 'Parrot' from partially initialized module 'parrot' (most likely due to a circular import) (D:\python\paraphrase\parrot.py)
I am getting this issue. I have installed Parrot corectly but stil showing this eeor. Pls help.
I added a new demo notebook, and everything works fine. (check for the link in Readme)
I am facing same issue while working in local , Please help me
@hasan-araav Rename your Python file from "parrot.py" to something else. As the library name is also parrot so Python Interpreter is throwing circular import error.
change parrot to parrot.parrot works
I also encountered this problem, this is the problem description:ImportError: cannot import name 'Parrot' from 'parrot' (D:\Python\Anaconda\envs\nlp_env\lib\site-packages\parrot\init.py), how can I solve it?
@snow00726 make sure you have installed the library. From the error message, it seems that there could be a version mismatch error. Try to uninstall and install it again in a virtual environment.
@snow00726 make sure you have installed the library. From the error message, it seems that there could be a version mismatch error. Try to uninstall and install it again in a virtual environment.
The requirements.txt file requires downloading parrot-1.0, but I can't find parrot 1.0 in pypi. I've downloaded parrot 0.0.16, but it doesn't seem to work, it still reports the same error.
@snow00726 Do not install from the PyPI, I guess that could be the error.
For a fresh install please
- Create a new virtual environment
- activate it
- and then run the following command
pip install git+https://github.com/PrithivirajDamodaran/Parrot_Paraphraser.git
This should work. I just tested and it is working perfectly for me.
@snow00726 Do not install from the PyPI, I guess that could be the error.
For a fresh install please
- Create a new virtual environment
- activate it
- and then run the following command
pip install git+https://github.com/PrithivirajDamodaran/Parrot_Paraphraser.git
This should work. I just tested and it is working perfectly for me.
Thank you! It works for me.
@snow00726 I am glad to hear this.
pip install git+https://github.com/PrithivirajDamodaran/Parrot_Paraphraser.git
after installing this, still it is not working.
@VinayWaingankar97 test it with a new virtual environment.