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

Getting error after pip install with just imports in the python file #21

Open
kvnsrinu opened this issue Mar 4, 2024 · 3 comments
Open

Comments

@kvnsrinu
Copy link

kvnsrinu commented Mar 4, 2024

I put in very basic imports from Chapter 3, and after doing pip install ISLP and run python, I'm getting the below error

File ~\AppData\Local\anaconda3\Lib\site-packages\scipy_lib_util.py:184 in check_random_state
return np.random.mtrand._rand

AttributeError: module 'numpy.random' has no attribute 'mtrand'

@kvnsrinu
Copy link
Author

kvnsrinu commented Mar 4, 2024

After commenting the above line, Im getting new error as below:

File ~\AppData\Local\anaconda3\Lib\site-packages\numpy\core_ufunc_config.py:306 in seterrcall
raise ValueError("Only callable can be used as callback")

ValueError: Only callable can be used as callback

@kvnsrinu
Copy link
Author

kvnsrinu commented Mar 4, 2024

I commented the above portion of code thats giving error too.
Then I did the very first lab code lines

Boston = load_data("Boston")
Boston.columns

Then I'm getting the below error:

File ~\AppData\Local\anaconda3\Lib\site-packages\pandas\io\parsers\readers.py:935 in read_csv
kwds_defaults = _refine_defaults_read(

TypeError: _refine_defaults_read() got an unexpected keyword argument 'dtype_backend'

Why am i seeing all these errors? This code base is not stable yet and nobody is using this code?
I'm just wondering why am I the only one seeing these issues.

@jonathan-taylor
Copy link
Collaborator

A little behind on these issues. Haven't seen these issues before and they seem unrelated to ISLP. Can you try a fresh Conda environment and running pip install ISLP again?

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