Closed llmercury closed 7 years ago
@llmercury
can you add this line:
print(lib_path)
before lib = ctypes.cdll.LoadLibrary(lib_path[0])
in the file D:\Program_Files\Anaconda3\envs\py35\lib\site-packages\lightgbm-0.1-py3.5.egg\lightgbm\basic.py
?
then run it again ?
I added print(lib_path) and above the same "OSError Traceback" I got the lib_path:
['D:\Program_Files\Anaconda3\envs\py35\lib\site-packages\lightgbm-0.1-py3.5.egg\lightgbm\lib_lightgbm.dll']
And I checked the "lightgbm" folder and lib_lightgbm.dll is indeed in the folder.
can you try the latest commit ?
I used "git clone --recursive https://github.com/Microsoft/LightGBM" Isn't it the latest version? If not, how to get the latest version?
@llmercury I just commit a fix for this. So you can re-clone the code.
I re-cloned it. During building, error happened:
CMake Error in CMakeLists.txt: A logical block opening on the line
D:/PythonModules/LightGBM/CMakeLists.txt:38 (if)
is not closed.
Maybe adding endif() on line 45 or 46?
@llmercury
sorry, forgot endif
. just push a new fix.
Awesome. Problem solved! Thank a lot! @guolinke
This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.
Environment info
Operating System: Windows 10 Home, 64 bit CPU: Intel i7-7700 GPU: GeForce GTX 1070 C++/Python version: Microsoft Visual Studio Community 2017/ Python 3.5.2 /Anaconda 4.3.1 (64-bit)
My laptop has 2 hard drives, C: and D:.
I followed the installation instruction at: https://github.com/Microsoft/LightGBM/wiki/Installation-Guide#windows-2
This has GPU support. For D:\local\boost_1_64_0\ and D:\local\boost_1_64_0\lib64-msvc-14.0, the location of the Boost binaries, I set them to the system environment variables BOOST_ROOT and BOOST_LIBRARYDIR. No errors during installation. After installation, I checked it by "conda list lightgbm", it shows lightgbm 0.1. It appeared fine.
However, when I imported the lightgbm in Jupyter Notebook, I got Error messages:
Error Message:
OSError Traceback (most recent call last)