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

clipper -h fails after clean install #86

Open
MattBrauer opened this issue Sep 30, 2020 · 6 comments
Open

clipper -h fails after clean install #86

MattBrauer opened this issue Sep 30, 2020 · 6 comments

Comments

@MattBrauer
Copy link

Matplotlib is building the font cache; this may take a moment.
Traceback (most recent call last):
  File "/opt/anaconda3/bin/clipper", line 5, in <module>
    from clipper.src.main import call_main
  File "/Users/mbrauer/maze/clipper/clipper/src/main.py", line 16, in <module>
    from clipper.src.call_peak import call_peaks
  File "/Users/mbrauer/maze/clipper/clipper/src/call_peak.py", line 28, in <module>
    from clipper.src.peaks import shuffle, find_sections
ImportError: dlopen(/Users/mbrauer/maze/clipper/clipper/src/peaks.so, 2): no suitable image found.  Did find:
	/Users/mbrauer/maze/clipper/clipper/src/peaks.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
	/Users/mbrauer/maze/clipper/clipper/src/peaks.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

macos 10.15.6
Python 3.7.6

@MattBrauer
Copy link
Author

It looks like peaks.so is architecture-dependent compiled code, which makes the application non-portable.

Can you include a makefile and the build process in the install procedure?

@algaebrown
Copy link
Contributor

@mlovci @gpratt I googled a bit and it seems .so files are executable files built from .c. Correct me if I am wrong. I wonder do you have the original code? Thanks!

@gpratt
Copy link
Collaborator

gpratt commented Jan 23, 2021 via email

@algaebrown
Copy link
Contributor

Which Cython file is it from? Is it from peaksmodule.cc? And how can I make it platform compatible?

thank you so much!

@gpratt
Copy link
Collaborator

gpratt commented Jan 23, 2021 via email

@bakerwm
Copy link

bakerwm commented Mar 30, 2021

Which Cython file is it from? Is it from peaksmodule.cc? And how can I make it platform compatible?

thank you so much!

The file peaks.so might not work with python3.x; (I cannot run the latest version clipper v2.1.0, on Ubuntu 18.04, Python 3.8)

$ cd clipper/src
$ python2
Python 2.7.18 (default, Mar  8 2021, 13:02:45)
[GCC 9.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import peaks
>>> dir(peaks)
['__doc__', '__file__', '__name__', '__package__', 'find_sections', 'readsToWiggle_pysam', 'shuffle']

$ python3
Python 3.8.5 (default, Jan 27 2021, 15:41:15)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import peaks
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: dynamic module does not define module export function (PyInit_peaks)

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

4 participants