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

CTC on AWS #7

Open
snev10 opened this issue May 11, 2017 · 1 comment
Open

CTC on AWS #7

snev10 opened this issue May 11, 2017 · 1 comment

Comments

@snev10
Copy link

snev10 commented May 11, 2017

Hi,

I'm trying to install ctc on an AWS instance with gpu (p2.xlarge). Ubuntu 14.04.
I have installed warp_ctc and successfully run test_gpu and test_cpu.

After running

sudo python setup.py install

I get the following error:

ubuntu@ip-172-31-21-85:~/ctc/examples$ python simple.py 
Traceback (most recent call last):
  File "simple.py", line 1, in <module>
    from ctc import cpu_ctc_th, cpu_ctc_np
  File "/usr/local/lib/python2.7/dist-packages/ctc/__init__.py", line 1, in <module>
    from .ctc import cpu_ctc_np, cpu_ctc_th
  File "/usr/local/lib/python2.7/dist-packages/ctc/ctc.py", line 18, in <module>
    libwarpctc = npct.load_library(os.path.join(os.path.dirname(__file__), "../build/libwarpctc.{}".format(ext)), "")
  File "/usr/local/lib/python2.7/dist-packages/numpy/ctypeslib.py", line 155, in load_library
    raise OSError("no file with expected extension")
OSError: no file with expected extension
ubuntu@ip-172-31-21-85:~/ctc/examples$ 

Any ideas on how to fix this? I have printed

os.path.dirname(__file__)

and it is empty.
Thanks!

@mindhash
Copy link

mindhash commented Jul 9, 2017

Its probably late but I just wanted to share how i faced a similar issue.

This issue occurred when I did not run make. If you check your repo dir (/ctc) and don't find either libwarpctc.dylib or libwarpctc.so would mean you have not run make yet.
Follow the install steps again to fix the issue.

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