Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • failed to install pysam shown below

    Could any one help me why pysam installation failure ?



    [root@localhost pysam-0.4.1]# python setup.py build
    running build
    running build_py
    running build_ext
    skipping 'pysam/csamtools.c' Cython extension (up-to-date)
    building 'csamtools' extension
    gcc -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -g -fPIC -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE= -Isamtools -Ipysam -I/usr/include/python2.6 -c pysam/csamtools.c -o build/temp.linux-x86_64-2.6/pysam/csamtools.o
    pysam/csamtools.c: In function ‘__pyx_pf_9csamtools_7Samfile_fetch’:
    pysam/csamtools.c:7771: warning: passing argument 7 of ‘bam_fetch’ from incompatible pointer type
    samtools/bam.h:613: note: expected ‘bam_fetch_f’ but argument is of type ‘int (*)(struct bam1_t *, void *)’
    pysam/csamtools.c: In function ‘__pyx_pf_9csamtools_7Samfile_mate’:
    pysam/csamtools.c:8168: warning: passing argument 7 of ‘bam_fetch’ from incompatible pointer type
    samtools/bam.h:613: note: expected ‘bam_fetch_f’ but argument is of type ‘int (*)(struct bam1_t *, void *)’
    pysam/csamtools.c: In function ‘__pyx_pf_9csamtools_7Samfile_count’:
    pysam/csamtools.c:8685: warning: passing argument 7 of ‘bam_fetch’ from incompatible pointer type
    samtools/bam.h:613: note: expected ‘bam_fetch_f’ but argument is of type ‘int (*)(struct bam1_t *, void *)’
    pysam/csamtools.c: In function ‘__pyx_pf_9csamtools_7Samfile_pileup’:
    pysam/csamtools.c:9146: warning: passing argument 7 of ‘bam_fetch’ from incompatible pointer type
    samtools/bam.h:613: note: expected ‘bam_fetch_f’ but argument is of type ‘int (*)(struct bam1_t *, void *)’
    pysam/csamtools.c: In function ‘__pyx_f_9csamtools_13SNPCallerBase___dump’:
    pysam/csamtools.c:25100: error: format not a string literal and no format arguments
    pysam/csamtools.c: In function ‘__pyx_pf_9csamtools_15IndelCallerBase__call’:
    pysam/csamtools.c:27457: warning: assignment discards qualifiers from pointer target type
    error: command 'gcc' failed with exit status 1
    [root@localhost pysam-0.4.1]#

  • #2
    may be you should update your Cython extension vesion.

    Comment


    • #3
      Thanks, but I already got Cython is 0.14.1 installed

      Comment


      • #4
        Hello,

        I am also getting similar error compiling pysam.
        I have:
        Mandriva Linux 2010.2 (64 bit)
        samtools-0.1.14
        cython 0.12.1
        zlib 1.2.3
        gcc 4.4.3

        Executing "python setup.py build" as root throws the following error
        -------------------------------
        running build
        running build_py
        warning: build_py: byte-compiling is disabled, skipping.
        running build_ext
        building 'csamtools' extension
        gcc -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -g -fPIC -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE= -Isamtools -Ipysam -I/usr/include/python2.6 -c pysam/csamtools.c -o build/temp.linux-x86_64-2.6/pysam/csamtools.o
        pysam/csamtools.c: In function '__pyx_pf_9csamtools_7Samfile_fetch':
        pysam/csamtools.c:7771: warning: passing argument 7 of 'bam_fetch' from incompatible pointer type
        samtools/bam.h:615: note: expected 'bam_fetch_f' but argument is of type 'int (*)(struct bam1_t *, void *)'
        pysam/csamtools.c: In function '__pyx_pf_9csamtools_7Samfile_mate':
        pysam/csamtools.c:8168: warning: passing argument 7 of 'bam_fetch' from incompatible pointer type
        samtools/bam.h:615: note: expected 'bam_fetch_f' but argument is of type 'int (*)(struct bam1_t *, void *)'
        pysam/csamtools.c: In function '__pyx_pf_9csamtools_7Samfile_count':
        pysam/csamtools.c:8685: warning: passing argument 7 of 'bam_fetch' from incompatible pointer type
        samtools/bam.h:615: note: expected 'bam_fetch_f' but argument is of type 'int (*)(struct bam1_t *, void *)'
        pysam/csamtools.c: In function '__pyx_pf_9csamtools_7Samfile_pileup':
        pysam/csamtools.c:9146: warning: passing argument 7 of 'bam_fetch' from incompatible pointer type
        samtools/bam.h:615: note: expected 'bam_fetch_f' but argument is of type 'int (*)(struct bam1_t *, void *)'
        pysam/csamtools.c: In function '__pyx_f_9csamtools_13SNPCallerBase___dump':
        pysam/csamtools.c:25100: error: format not a string literal and no format arguments
        pysam/csamtools.c: In function '__pyx_pf_9csamtools_15IndelCallerBase__call':
        pysam/csamtools.c:27457: warning: assignment discards qualifiers from pointer target type
        error: command 'gcc' failed with exit status 1
        -------------------------------

        Thanks

        Comment

        Latest Articles

        Collapse

        • seqadmin
          Current Approaches to Protein Sequencing
          by seqadmin


          Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
          04-04-2024, 04:25 PM
        • seqadmin
          Strategies for Sequencing Challenging Samples
          by seqadmin


          Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
          03-22-2024, 06:39 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, 04-11-2024, 12:08 PM
        0 responses
        30 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-10-2024, 10:19 PM
        0 responses
        32 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-10-2024, 09:21 AM
        0 responses
        28 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-04-2024, 09:00 AM
        0 responses
        53 views
        0 likes
        Last Post seqadmin  
        Working...
        X