Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • andy123
    Junior Member
    • Feb 2011
    • 2

    #1

    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]#
  • asangqi
    Junior Member
    • Feb 2011
    • 4

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

    Comment

    • andy123
      Junior Member
      • Feb 2011
      • 2

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

      Comment

      • kadoo
        Junior Member
        • Mar 2011
        • 1

        #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

        • SEQadmin2
          Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
          by SEQadmin2



          Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

          Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
          ...
          10-14-2026, 09:55 AM
        • SEQadmin2
          New Genomics Technologies Take Aim at Long-Standing Limits
          by SEQadmin2


          Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

          We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
          ...
          09-28-2026, 10:25 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 10-22-2026, 11:13 AM
        0 responses
        26 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-22-2026, 10:48 AM
        0 responses
        20 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-15-2026, 10:52 AM
        0 responses
        36 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-14-2026, 05:39 AM
        0 responses
        43 views
        0 reactions
        Last Post SEQadmin2  
        Working...