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

        • kinpict.com
          Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
          by kinpict.com
          The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
          Today, 06:37 PM
        • SEQadmin2
          16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
          by SEQadmin2





          NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
          10-30-2026, 06:46 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 11-12-2026, 07:59 AM
        0 responses
        27 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 11-05-2026, 09:25 AM
        0 responses
        35 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 11-03-2026, 11:54 AM
        2 responses
        56 views
        0 reactions
        Last Post kinpict.com  
        Started by SEQadmin2, 10-28-2026, 09:57 AM
        0 responses
        175 views
        0 reactions
        Last Post SEQadmin2  
        Working...