EhsanMotazedi / PopPoly

Family-based estimation of polyploid haplotypes using short sequence reads
GNU General Public License v3.0
2 stars 2 forks source link

OSError: [Errno 2] No such file or directory #2

Open cflsjt opened 6 years ago

cflsjt commented 6 years ago

Hi @EhsanMotazedi sorry but now I'm getting this error message. We (as in Tim) will take a look, have you come across this issue??

cflsjt commented 6 years ago

@EhsanMotazedi not getting anywhere with this issue. I'm trying on my local machine - oSX but I'm back to have logprob issues, same error whether I use the latest git version from your repo or the one that @timothymillar has recompiled. I'm not having any luck testing popPoly :(

Traceback (most recent call last):
  File "./main.py", line 18, in <module>
    from branchprune import BlockException, makePermutation, SetGenos, GetProbReads
  File "/Users/cflsjt/Workspace/PopPoly/branchprune.py", line 13, in <module>
    from haplotypes import Haplotypes, getMEC
  File "/Users/cflsjt/Workspace/PopPoly/haplotypes.py", line 12, in <module>
    from logprob import _xor, diffVec, Hamming
ImportError: dlopen(/Users/cflsjt/Workspace/PopPoly/logprob.so, 2): no suitable image found.  Did find:
    /Users/cflsjt/Workspace/PopPoly/logprob.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
    /Users/cflsjt/Workspace/PopPoly/logprob.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
EhsanMotazedi commented 6 years ago

Hi Susan, Sorry to hear that:-(. This error is usually caused when the given path to the bam or to the vcf file is note correct. Maybe you could send me two small bam and vcf files that cause the error, as well as the command used, so that I can try it?

Cheers, ehsan

On Fri, Sep 7, 2018, 4:36 AM Susan Thomson notifications@github.com wrote:

@EhsanMotazedi https://github.com/EhsanMotazedi not getting anywhere with this issue. I'm trying on my local machine - oSX but I'm back to have logprob issues, same error whether I use the latest git version from your repo or the one that @timothymillar https://github.com/timothymillar has recompiled. I'm not having any luck testing popPoly :(

Traceback (most recent call last): File "./main.py", line 18, in from branchprune import BlockException, makePermutation, SetGenos, GetProbReads File "/Users/cflsjt/Workspace/PopPoly/branchprune.py", line 13, in from haplotypes import Haplotypes, getMEC File "/Users/cflsjt/Workspace/PopPoly/haplotypes.py", line 12, in from logprob import _xor, diffVec, Hamming ImportError: dlopen(/Users/cflsjt/Workspace/PopPoly/logprob.so, 2): no suitable image found. Did find: /Users/cflsjt/Workspace/PopPoly/logprob.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00 /Users/cflsjt/Workspace/PopPoly/logprob.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/EhsanMotazedi/PopPoly/issues/2#issuecomment-419301974, or mute the thread https://github.com/notifications/unsubscribe-auth/AkksDpe2zCJVMoiQkxeW1cnFbvCXwatBks5uYduQgaJpZM4V3kwX .

cflsjt commented 6 years ago

@EhsanMotazedi I got that from trying a local implementation, just testing with the -h flag. Are there any specifics about your environment we can check in ours?

cflsjt commented 6 years ago

@EhsanMotazedi interesting dev...running on our head node at commandline rather than through notebook - might have success....so is a jupyter thing maybe!

EhsanMotazedi commented 2 years ago

@cflsjt Hi Susan, a bit late but just that I got the same error after I updated my OS! Just use cythonize -i logprob.pyx and cythonize -i logprob2.pyx to recompile these modules and it should work!