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

run "qrun benchmarks/LightGBM/workflow_config_lightgbm_Alpha158.yaml" in a debug mode #170

Closed
jiaxings opened this issue Jan 2, 2021 · 2 comments · Fixed by #178
Closed
Assignees
Labels
question Further information is requested

Comments

@jiaxings
Copy link

jiaxings commented Jan 2, 2021

Hello, I try to understand the code structure of Qlib, I wonder if it could be run in a debug mode.
I tried the test_all_pipeline.py but failed with below infomation

Connected to pydev debugger (build 183.4284.139)
Launching unittests with arguments python -m unittest C:/Users/Laputa/PycharmProjects/qlib/tests/test_all_pipeline.py in C:\Users\Laputa\PycharmProjects\qlib\tests

Do not import qlib package in the repository directory in case of importing qlib from . without compiling

Error
Traceback (most recent call last):
File "C:\Users\Laputa\Anaconda3\lib\unittest\case.py", line 59, in testPartExecutor
yield
File "C:\Users\Laputa\Anaconda3\lib\unittest\case.py", line 605, in run
testMethod()
File "C:\Users\Laputa\Anaconda3\lib\unittest\loader.py", line 34, in testFailure
raise self.exception
ImportError: Failed to import test module: test_all_pipeline
Traceback (most recent call last):
File "C:\Users\Laputa\Anaconda3\lib\unittest\loader.py", line 153, in loadTestsFromName
module = import(module_name)
File "C:\Users\Laputa\PycharmProjects\qlib\tests\test_all_pipeline.py", line 15, in
from qlib.contrib.model.gbdt import LGBModel
File "C:\Users\Laputa\PycharmProjects\qlib\qlib\contrib\model\gbdt.py", line 8, in
from ...model.base import ModelFT
File "C:\Users\Laputa\PycharmProjects\qlib\qlib\model_init
.py", line 6, in
from .base import Model
File "C:\Users\Laputa\PycharmProjects\qlib\qlib\model\base.py", line 5, in
from ..data.dataset import Dataset
File "C:\Users\Laputa\PycharmProjects\qlib\qlib\data_init_.py", line 8, in
from .data import (
File "C:\Users\Laputa\PycharmProjects\qlib\qlib\data\data.py", line 21, in
from .cache import H
File "C:\Users\Laputa\PycharmProjects\qlib\qlib\data\cache.py", line 36, in
from .ops import *
File "C:\Users\Laputa\PycharmProjects\qlib\qlib\data\ops.py", line 18, in
from ._libs.rolling import rolling_slope, rolling_rsquare, rolling_resi
ModuleNotFoundError: No module named 'qlib.data._libs.rolling'

@jiaxings jiaxings added the question Further information is requested label Jan 2, 2021
@you-n-g
Copy link
Collaborator

you-n-g commented Jan 2, 2021

@jiaxings
Please check the info in the output.
image

@you-n-g
Copy link
Collaborator

you-n-g commented Jan 2, 2021

@Derek-Wds
I think we can add some docs about how to run qrun wih pdb.
python -m pdb workflow/cli.py

@Derek-Wds Derek-Wds linked a pull request Jan 6, 2021 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants