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

AttributeError: module 'numpy' has no attribute 'str' #1506

Closed
Chaoyingz opened this issue May 5, 2023 · 0 comments
Closed

AttributeError: module 'numpy' has no attribute 'str' #1506

Chaoyingz opened this issue May 5, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Chaoyingz
Copy link
Contributor

🐛 Bug Description

When I run python -m pytest . -m "not slow" --durations=0 after configuring my development environment, the test prompts an AttributeError: module 'numpy' has no attribute 'str'.
numpy.str has been removed in the latest version of numpy.

To Reproduce

Steps to reproduce the behavior:

Expected Behavior

Screenshot

image
image

Environment

Note: User could run cd scripts && python collect_info.py all under project directory to get system information
and paste them here directly.

Darwin
x86_64
macOS-10.16-x86_64-i386-64bit
Darwin Kernel Version 22.3.0: Mon Jan 30 20:38:37 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6000

Python version: 3.8.16 (default, Mar 1 2023, 21:19:10) [Clang 14.0.6 ]

Qlib version: 0.9.1.99
numpy==1.23.5
pandas==1.5.3
scipy==1.10.0
requests==2.29.0
sacred==0.8.4
python-socketio==5.8.0
redis==4.5.4
python-redis-lock==4.0.0
schedule==1.2.0
cvxpy==1.3.1
hyperopt==0.1.2
fire==0.5.0
statsmodels==0.13.5
xlrd==2.0.1
plotly==5.14.1
matplotlib==3.7.1
tables==3.8.0
pyyaml==6.0
mlflow==1.30.0
tqdm==4.65.0
loguru==0.7.0
lightgbm==3.3.5
tornado==6.3.1
joblib==1.1.1
fire==0.5.0
ruamel.yaml==0.17.22

Additional Notes

@Chaoyingz Chaoyingz added the bug Something isn't working label May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant