-
Notifications
You must be signed in to change notification settings - Fork 23
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
AttributeError: module 'utils' has no attribute 'OOV' #14
Comments
Hi @RonenHong, Does utils.py exist in the working directory? |
My bad, that's the problem. I have my utils.py. |
Hello Team I am facing same problem as mentioned by @RonenHong and the issue because in prepro.py file we are using OOV = utils.OOV |
Hi @ssaikiran123, The first thing I want to check is: Does utils.py exist in your working directory? |
Yes i tried it by renaming but still facing same issue @taishi-i |
When i am trying to run the individual python file i.e init.py,model.prepro,tagger,train,utils for all same AttributeError: module 'utils' has no attribute 'OOV' |
Thank you for sharing your screenshot. Assuming that you run
If utils.py exists in your working directory, could you rename utils.py into data_utils.py as follows?
If this does not resolve the error, could you share the error with the python file you ran? |
Hello @taishi-i thanks for your response , I didn't get this part Assuming that you run python main.py. Error : C:\Users\SAIKIRAN
|
Hi @ssaikiran123, As far as the errors are concerned, the following two things seem to be the cause of the errors.
Could you make a new directory (e.g, working) and rename your python script (nagisa.py -> main.py) as follows? Before
After
|
Hello @taishi-i as suggested i changed the folder names and nagisa_test.py to work_test.py but still facing the issue.
This is the directory now |
Hi @ssaikiran123, I want to have a check that nagisa is installed correctly. Uninstall: After
|
Hello @taishi-i i have trouble in pip installing nagisa so i am using this repository as other option \Users\SAIKIRAN>pip3 install --user nagisa |
Hi @ssaikiran123,
|
Hello Taishi-I/Nagisa
I Have installed cython but still facing issue in pip installing nagisa. I
request you to please help me on this.
ERROR: Command errored out with exit status 1:
command: 'c:\users\saikiran\appdata\local\programs\python\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] =
Thanks & Regards
Saikiran
8971647885
…On Wed, Jun 17, 2020, 21:47 taishi-i ***@***.***> wrote:
Hi @ssaikiran123 <https://github.com/ssaikiran123>,
Cython does not seem to be installed.
Before installing nagisa, could you install *cython* library?
pip install --upgrade cython
pip install nagisa
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#14 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOFNN5UU7ZLMXKFU73XCDETRXDUBFANCNFSM4HORK26A>
.
|
Hi @ssaikiran123, |
Hi,
I got error in 'import nagisa' as below
OOV = utils.OOV
AttributeError: module 'utils' has no attribute 'OOV'
I did 'pip install nagisa' on the conda envrionment python 3.7 and 3.6
I ran it on my Mac.
The text was updated successfully, but these errors were encountered: