Open vitorying opened 2 years ago
The first thing I'll try is to see if the fn exists: os.path.exists(fn) and start from there.
Me too when doing 'python run_all_model.py run 3' .
My bugs:
File "run_all_model.py", line 385, in
May I know any advice from Microsoft team?
This is likely due to your pyyaml version. See here https://stackoverflow.com/questions/69564817/typeerror-load-missing-1-required-positional-argument-loader-in-google-col for a similar problem.
If your pyyaml version is 6.0 in your environment, try downgrade it to 5.4.1 to see if the problem goes away: pip install pyyaml==5.4.1
I have added pip install pyyaml==5.4.1 in
# install qlib
! pip install --upgrade numpy
! pip install pyqlib
! pip install pyyaml==5.4.1
but got another error ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. yellowbrick 1.3.post1 requires numpy<1.20,>=1.16.0, but you have numpy 1.21.5 which is incompatible. datascience 0.10.6 requires folium==0.2.1, but you have folium 0.8.3 which is incompatible. albumentations 0.1.12 requires imgaug<0.2.7,>=0.2.5, but you have imgaug 0.2.9 which is incompatible. Successfully installed numpy-1.21.5 WARNING: The following packages were previously imported in this runtime: [numpy] You must restart the runtime in order to use newly installed versions.
@you-n-g running !pip install pyyaml==5.4.1 before anything else in the notebook, with pyqlib v0.8.4 everything in the file runs and is displayed correctly. Your merged PR seems to have fixed the issue, provided you downgrade to that version of pyyaml first (otherwise the error is still there).
š Bug Description
When I run the analyze graphs section in the workflow_by_code.ipynb in Google colab, I got the following error message. The error came from the line of "from qlib.contrib.report import analysis_model, analysis_position". Everything above that line was running fine. May I know what is the reason for it and how to fix it?
TypeError Traceback (most recent call last)