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

import error #2

Closed
xiaoerhei opened this issue Mar 13, 2018 · 1 comment
Closed

import error #2

xiaoerhei opened this issue Mar 13, 2018 · 1 comment

Comments

@xiaoerhei
Copy link

import ffm
Traceback (most recent call last):
File "", line 1, in
File "/mnt/hgfs/VM_WorkFolder/software/python-ffm/ffm/init.py", line 1, in
from .ffm import FFMData, FFM, read_model
File "/mnt/hgfs/VM_WorkFolder/software/python-ffm/ffm/ffm.py", line 5, in
libffm_file = [i for i in os.listdir(path) if i.startswith('libffm.')][0]
IndexError: list index out of range

@keyunluo
Copy link
Owner

libffm_file = [i for i in os.listdir(path) if i.startswith('libffm.')][0]

You could set it with absolute path for some versions of os. (/mnt/hgfs/VM_WorkFolder/software/python-ffm/ffm/libffm.cpython-35m-x86_64-linux-gnu.so)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants