-
Notifications
You must be signed in to change notification settings - Fork 1
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
ValueError: too many values to unpack (expected 3) #8
Comments
Thank you for letting me know the issue.
|
The error occurred with clean install.
I tried reducing the version to 0.6.13, 0.6.12, etc. The error is produced each time.
I added a Try/except in the code - seems to fix the database but I was unable to get the example cylindrical waveguides to plot. Unsure as to why.
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Munehiro Nishida ***@***.***>
Sent: Saturday, November 19, 2022 4:45:43 PM
To: mnishida/RII_Pandas ***@***.***>
Cc: GlewlwydGafaelf ***@***.***>; Author ***@***.***>
Subject: Re: [mnishida/RII_Pandas] ValueError: too many values to unpack (expected 3) (Issue #8)
Thank you for letting me know the issue.
I couldn't reproduce the issue with the recent released version 0.6.14 that was cleanly installed in a new conda environment.
If you use older version, please update it.
Then, please try to recreate the catalog and the database in the following steps:
1. In the folder where riip is installed, e.g. ~/anaconda3/lib/python3.9/site-packages/riip,
there should be a folder and three files named "refractiveindex.info-database",
"catalog.csv", "grid_data.csv", and "raw_data.csv". Please remove these folder and files.
2. Plsease try again "ri = riip.RiiDataFrame()".
—
Reply to this email directly, view it on GitHub<#8 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANTOFGPJYWGW3U6SAYS57STWJFDAPANCNFSM6AAAAAASFL7RR4>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I tried another clean install on a different machine.
Same issue as before.
It looks like RIIP is the issue. Does it need Cython?
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows
From: nathan ***@***.***>
Sent: November 19, 2022 7:07 PM
To: ***@***.***>; ***@***.***>
Cc: ***@***.***>
Subject: Re: [mnishida/RII_Pandas] ValueError: too many values to unpack (expected 3) (Issue #8)
The error occurred with clean install.
I tried reducing the version to 0.6.13, 0.6.12, etc. The error is produced each time.
I added a Try/except in the code - seems to fix the database but I was unable to get the example cylindrical waveguides to plot. Unsure as to why.
Get Outlook for Android<https://aka.ms/AAb9ysg>
From: Munehiro Nishida ***@***.***>
Sent: Saturday, November 19, 2022 4:45:43 PM
To: mnishida/RII_Pandas ***@***.***>
Cc: GlewlwydGafaelf ***@***.***>; Author ***@***.***>
Subject: Re: [mnishida/RII_Pandas] ValueError: too many values to unpack (expected 3) (Issue #8)
Thank you for letting me know the issue.
I couldn't reproduce the issue with the recent released version 0.6.14 that was cleanly installed in a new conda environment.
If you use older version, please update it.
Then, please try to recreate the catalog and the database in the following steps:
1. In the folder where riip is installed, e.g. ~/anaconda3/lib/python3.9/site-packages/riip,
there should be a folder and three files named "refractiveindex.info-database",
"catalog.csv", "grid_data.csv", and "raw_data.csv". Please remove these folder and files.
2. Plsease try again "ri = riip.RiiDataFrame()".
—
Reply to this email directly, view it on GitHub<#8 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANTOFGPJYWGW3U6SAYS57STWJFDAPANCNFSM6AAAAAASFL7RR4>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Here is the iteration where the code fails:
There is a problem with id c wl_n n wl_k k
0 784 0.0 0.20000 1.519 0.20000 1.089
1 784 0.0 0.20065 1.514 0.20065 1.088
2 784 0.0 0.20130 1.510 0.20130 1.088
3 784 0.0 0.20195 1.505 0.20195 1.087
4 784 0.0 0.20261 1.501 0.20261 1.087
.. ... ... ... ... ... ...
273 784 0.0 1.77140 4.391 1.77140 0.036
274 784 0.0 1.82350 4.354 1.82350 0.022
275 784 0.0 1.87880 4.318 1.87880 0.012
276 784 0.0 1.93750 4.284 1.93750 0.005
277 784 0.0 2.00000 4.252 2.00000 0.002
[278 rows x 6 columns]
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows
From: nathan ***@***.***>
Sent: November 19, 2022 8:14 PM
To: ***@***.***>; ***@***.***>
Cc: ***@***.***>
Subject: RE: [mnishida/RII_Pandas] ValueError: too many values to unpack (expected 3) (Issue #8)
I tried another clean install on a different machine.
Same issue as before.
It looks like RIIP is the issue. Does it need Cython?
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows
From: nathan ***@***.***>
Sent: November 19, 2022 7:07 PM
To: ***@***.***>; ***@***.***>
Cc: ***@***.***>
Subject: Re: [mnishida/RII_Pandas] ValueError: too many values to unpack (expected 3) (Issue #8)
The error occurred with clean install.
I tried reducing the version to 0.6.13, 0.6.12, etc. The error is produced each time.
I added a Try/except in the code - seems to fix the database but I was unable to get the example cylindrical waveguides to plot. Unsure as to why.
Get Outlook for Android<https://aka.ms/AAb9ysg>
From: Munehiro Nishida ***@***.***>
Sent: Saturday, November 19, 2022 4:45:43 PM
To: mnishida/RII_Pandas ***@***.***>
Cc: GlewlwydGafaelf ***@***.***>; Author ***@***.***>
Subject: Re: [mnishida/RII_Pandas] ValueError: too many values to unpack (expected 3) (Issue #8)
Thank you for letting me know the issue.
I couldn't reproduce the issue with the recent released version 0.6.14 that was cleanly installed in a new conda environment.
If you use older version, please update it.
Then, please try to recreate the catalog and the database in the following steps:
1. In the folder where riip is installed, e.g. ~/anaconda3/lib/python3.9/site-packages/riip,
there should be a folder and three files named "refractiveindex.info-database",
"catalog.csv", "grid_data.csv", and "raw_data.csv". Please remove these folder and files.
2. Plsease try again "ri = riip.RiiDataFrame()".
—
Reply to this email directly, view it on GitHub<#8 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANTOFGPJYWGW3U6SAYS57STWJFDAPANCNFSM6AAAAAASFL7RR4>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Please check your riip version by
I guess that it will show '0.6.5'. |
I have WSL installation. My version on windows was 0.4.
I also tried installing on Google collab.
Their virtual linux machine installed latest versions, and had same errors.
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Munehiro Nishida ***@***.***>
Sent: Sunday, November 20, 2022 3:39:58 AM
To: mnishida/RII_Pandas ***@***.***>
Cc: GlewlwydGafaelf ***@***.***>; Author ***@***.***>
Subject: Re: [mnishida/RII_Pandas] ValueError: too many values to unpack (expected 3) (Issue #8)
Please check your riip version by
import riip
riip.version
I guess that it will show '0.6.5'.
Nowadays, I cannot maintain riip and pymwm packages for windows,
and the version of riip stops at 0.6.5.
Please try to install linux version on WSL.
—
Reply to this email directly, view it on GitHub<#8 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANTOFGKXYBJAWWKWLSVFK6TWJHPV5ANCNFSM6AAAAAASFL7RR4>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
issue within riip
when entering line:
"ri = riip.RiiDataFrame()"
there is a warning produced "FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead."
and an error:
<<
"line 287, in _extract_raw_data
wls_n, ns, ks = np.array("
ValueError: too many values to unpack (expected 3). >>
is this new to this release?
The text was updated successfully, but these errors were encountered: