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

ValueError: too many values to unpack (expected 3) #8

Open
GlewlwydGafaelf opened this issue Nov 19, 2022 · 6 comments
Open

ValueError: too many values to unpack (expected 3) #8

GlewlwydGafaelf opened this issue Nov 19, 2022 · 6 comments

Comments

@GlewlwydGafaelf
Copy link

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?

@mnishida
Copy link
Owner

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()".

@GlewlwydGafaelf
Copy link
Author

GlewlwydGafaelf commented Nov 20, 2022 via email

@GlewlwydGafaelf
Copy link
Author

GlewlwydGafaelf commented Nov 20, 2022 via email

@GlewlwydGafaelf
Copy link
Author

GlewlwydGafaelf commented Nov 20, 2022 via email

@mnishida
Copy link
Owner

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.

@GlewlwydGafaelf
Copy link
Author

GlewlwydGafaelf commented Nov 20, 2022 via email

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

2 participants