libsvm
libsvm copied to clipboard
ImportError: cannot import name '__all__'
i have troubles with running demo proj
root@Ubuntu-1704-zesty-64-minimal ~/phash/Python # python3.6 brisquequality.py 1.JPG
Traceback (most recent call last):
File "brisquequality.py", line 24, in <module>
# AGGD fit model, takes input as the MSCN Image / Pair-wise Product
File "/root/phash/Python/libsvm/python/svmutil.py", line 6, in <module>
from svm import __all__ as svm_all
ImportError: cannot import name '__all__
Sorry for the late response. I guess the reason is that svm.py is not on your path.. You can add files in libsvm/python directory in your path at runtime.
On 2019-05-25 01:19, ahvahsky2008 wrote:
i have troubles with running demo proj
root@Ubuntu-1704-zesty-64-minimal ~/phash/Python # python3.6 brisquequality.py 1.JPG Traceback (most recent call last): File "brisquequality.py", line 24, in
# AGGD fit model, takes input as the MSCN Image / Pair-wise Product File "/root/phash/Python/libsvm/python/svmutil.py", line 6, in from svm import all as svm_all ImportError: cannot import name 'all -- You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub [1], or mute the thread [2]. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/cjlin1/libsvm/issues/143?email_source=notifications\u0026email_token=ABI3BHUGEI3UNKUSHC6WXVLPXDZCJA5CNFSM4HPUEJLKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GV2TYQA", "url": "https://github.com/cjlin1/libsvm/issues/143?email_source=notifications\u0026email_token=ABI3BHUGEI3UNKUSHC6WXVLPXDZCJA5CNFSM4HPUEJLKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GV2TYQA", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]
Links:
[1] https://github.com/cjlin1/libsvm/issues/143?email_source=notifications&email_token=ABI3BHUGEI3UNKUSHC6WXVLPXDZCJA5CNFSM4HPUEJLKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GV2TYQA [2] https://github.com/notifications/unsubscribe-auth/ABI3BHWJGPWM4Y7QFBMK5YLPXDZCJANCNFSM4HPUEJLA