neka-nat / python-forexconnect

Python binding of forexconnect api
40 stars 24 forks source link

import error #21

Closed FXCMAPI closed 6 years ago

FXCMAPI commented 6 years ago

client reported below error sudo python2 test2.py Traceback (most recent call last): File "test2.py", line 1, in import forexconnect ImportError: libsample_tools.so: cannot open shared object file: No such file or directory

neka-nat commented 6 years ago

I guess environment setting is not enough. Please set the directory where libsample_tools.so is located to LD_LIBRARY_PATH.

export LD_LIBRARY_PATH=LD_LIBRARY_PATH:<your python-forexconnect path>/lib
FXCMAPI commented 6 years ago

Thank you Neka-nat Let me inform client