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

Installation with python setup.py doesn't seem to work when moving directories after install #4

Open
olivertam opened this issue Dec 21, 2015 · 2 comments

Comments

@olivertam
Copy link
Member

I installed version 0.6.4 onto a server (genomics), and set the --prefix to ~/software/BAMqc/inst. Although the BAMqc executable was placed correctly into the bin folder, it can't be run from the bin folder. However, the executable in the src folder runs correctly when I run it in that folder, but not if I run it in another folder. I have set the path and python path to the BAMqc local installation (the same settings I used when installing).
Here are the error messages:
Traceback (most recent call last):
File "/localdata1/galaxy/software/BAMqc/0.6.4/src/BAMqc", line 37, in
so=ctypes.CDLL(in_local)
File "/localdata1/galaxy/software/python/2.7.9/inst/lib/python2.7/ctypes/init.py", line 365, in init
self._handle = _dlopen(self._name, mode)
OSError: build/lib.linux-x86_64-2.7/htslib.so: cannot open shared object file: No such file or directory

The files that are in error are the shared object files (which are in the build/lib.linux-x86_64-2.7/ folder in src). Is that path hardcoded? Should they be installed into the python2.7 libraries folders?

Thanks

@molikd molikd changed the title Installation with python setup.py doesn't seem to work Installation with python setup.py doesn't seem to work when moving directories after install Dec 21, 2015
@molikd
Copy link
Member

molikd commented Dec 21, 2015

This is an artifact in the build process. BAMqc is looking for the htslib.so that should have been built and can't find it. GCC would have linked the two, but only in place. There may be a way to make the link more dynamic.

@molikd
Copy link
Member

molikd commented Jan 4, 2016

if you look at #4 there are some replicated issues.

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