You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
The text was updated successfully, but these errors were encountered:
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'
The text was updated successfully, but these errors were encountered: