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

BTK Issue #2

Closed
ykukkim opened this issue Jan 10, 2020 · 6 comments
Closed

BTK Issue #2

ykukkim opened this issue Jan 10, 2020 · 6 comments

Comments

@ykukkim
Copy link

ykukkim commented Jan 10, 2020

All the dependencies do not get downloaded using your instruction, matplotlib and sklearn needs to be installed manually.

I am using Python 2.7 on Mac OS Catalina, and when I run the script this is the error I get

ykk@Yongs-MBP Desktop % event-detector har20_0.c3d hello.c3d
Using TensorFlow backend.
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/bin/event-detector", line 10, in
from eventdetector.annotate import process
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/eventdetector/annotate.py", line 11, in
import btk
File "/usr/local/lib/python2.7/dist-packages/btk/init.py", line 31, in
_btk = swig_import_helper()
File "/usr/local/lib/python2.7/dist-packages/btk/init.py", line 27, in swig_import_helper
_mod = imp.load_module('_btk', fp, pathname, description)
ImportError: dlopen(/usr/local/lib/python2.7/dist-packages/btk/_btk.so, 2): no suitable image found. Did find:
/usr/local/lib/python2.7/dist-packages/btk/_btk.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x03
/usr/local/lib/python2.7/dist-packages/btk/_btk.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x03

I have downloaded btk as btk-0.3.0-1_x86_64.rpm which I uninstall then put it to the corresponding directory as stated on the script.

Could you have a look at this please?

Thank you,

@kidzik
Copy link
Owner

kidzik commented Jan 11, 2020

Thank you @ykuk0906 for reporting. What is the output if you simply try to install btk with their pypi package:

pip install btk

@ykukkim
Copy link
Author

ykukkim commented Jan 11, 2020

Thank you for your comment @kidzik .

This is the error I get when I run:
pip install btk

ERROR: Could not find a version that satisfies the requirement btk (from versions: none)
ERROR: No matching distribution found for btk

My Python is 2.7.16 from python --version

@kidzik
Copy link
Owner

kidzik commented Jan 12, 2020

And what happens when you try to install from the egg?
You can download it from here https://pypi.org/project/btk/#files
and install with

python -m easy_install btk-0.3.0-py2.7_macosx-10.7-intel.egg 

@ykukkim
Copy link
Author

ykukkim commented Jan 12, 2020

python -m easy_install btk-0.3.0-py2.7_macosx-10.7-intel.egg

WARNING: The easy_install command is deprecated and will be removed in a future version.
Searching for btk-0.3.0-py2.7_macosx-10.7-intel.egg
Reading https://pypi.org/simple/btk-0.3.0-py2.7_macosx-10.7-intel.egg/
Reading https://pypi.org/simple/btk-0.3.0-py2.7-macosx-10.7-intel.egg/
Couldn't find index page for 'btk-0.3.0-py2.7_macosx-10.7-intel.egg' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
No local packages or working download links found for btk-0.3.0-py2.7_macosx-10.7-intel.egg
error: Could not find suitable distribution for Requirement.parse('btk-0.3.0-py2.7_macosx-10.7-intel.egg')

This is the error I get.. I downloaded anacoonda2.7 to have a separate environment, and I tried first with
pip install btk which gives me this:

`ERROR: Could not find a version that satisfies the requirement btk (from versions: none)
ERROR: No matching distribution found for btk

then I downloaded the egg and used your comment.

@ykukkim
Copy link
Author

ykukkim commented Jan 12, 2020

I have managed to run it using Docker! but I would like to know where I can modify your source code as my model is slightly different from yours. is this possible?

@kidzik
Copy link
Owner

kidzik commented Jan 12, 2020

That's terrific! The training code is here https://github.com/kidzik/event-detector-train but I admit it's more messy than the inference code. Hopefully it helps!

@ykukkim ykukkim closed this as completed Jan 24, 2020
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