Announcement

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

  • BioPython with Macports?

    Hi all,

    Anyone have an idea how I might fix this? I've installed biopython and dependencies using macports and it seems to have worked. I don't, however, seem to be able to specify the right PYTHONPATH.

    Here's where Macports says my package should be!

    Code:
    $ port location py26-biopython
    Warning: port definitions are more than two weeks old, consider using selfupdate
    Port py26-biopython 1.56_0 is installed as an image in:
    /opt/local/var/macports/software/py26-biopython/1.56_0
    Any thoughts much appreciated!
    Lizzy

  • #2
    Hi Lizzy,
    Besides the fact you can install biopython using setuptools (best way to do it!) without messing your system with an additional python installation under /opt/local

    Code:
    $ sudo easy_install -U biopython
    I believe you should check that you are using the python installed in /opt/local/bin (or in /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin), i.e.

    Code:
    $ which python
    d

    Comment


    • #3
      So I tried using easy_install but got some errors that I didn't really understand. Any idea what might be going wrong here?

      Code:
      $ sudo easy_install -U biopython
      Password:
      Searching for biopython
      Reading http://pypi.python.org/simple/biopython/
      Reading http://www.biopython.org/
      Reading http://biopython.org/DIST/
      Best match: biopython 1.56
      Downloading http://biopython.org/DIST/biopython-1.56.zip
      Processing biopython-1.56.zip
      Running biopython-1.56/setup.py -q bdist_egg --dist-dir /tmp/easy_install-4FnbiD/biopython-1.56/egg-dist-tmp-H4avLI
      warning: no previously-included files found matching 'Tests/Graphics/*.pdf'
      warning: no previously-included files found matching 'Tests/Graphics/*.eps'
      warning: no previously-included files found matching 'Tests/Graphics/*.svg'
      warning: no previously-included files found matching 'Tests/Graphics/*.png'
      warning: no previously-included files matching '*' found under directory 'Tests/UnitTests'
      warning: no previously-included files matching '.cvsignore' found under directory '*'
      warning: no previously-included files matching '.gitignore' found under directory '*'
      warning: no previously-included files matching '*.pyc' found under directory '*'
      cc1: error: unrecognized command line option "-Wno-long-double"
      error: Setup script exited with error: command 'gcc' failed with exit status 1
      It seems that I'm using the /opt/local/bin/python...

      Comment


      • #4
        Originally posted by ewilbanks View Post
        So I tried using easy_install but got some errors that I didn't really understand. Any idea what might be going wrong here?
        ...
        Have you installed Apple's XCode (for gcc etc), including the optional the 10.4 headers, as recommended here?: http://biopython.org/wiki/Download

        Comment


        • #5
          Originally posted by ewilbanks View Post
          So I tried using easy_install but got some errors that I didn't really understand. Any idea what might be going wrong here?
          Assuming you already have a working gcc installation (otherwise you couldn't have installed macports...), that depends on gcc: -Wno-long-double is not a gcc4 flag. You can remove it from $BASECFLAGS variable in /System/Library/Frameworks/Python.framework/Versions/Current/lib/python2.6/config/Makefile (or whatever is the path on your system).

          d

          Comment


          • #6
            Hi Lizzy,

            Originally posted by ewilbanks View Post
            I've installed biopython and dependencies using macports and it seems to have worked. I don't, however, seem to be able to specify the right PYTHONPATH.
            The installation seems to have worked fine. You only have to make sure now to call the Python interpreter which was used for your Biopython installation (which most likely was /opt/local/bin/python2.6. OS X comes bundled with a Python interpreter, but that's not the one which was used.

            Try the following
            Code:
            $ /opt/local/bin/python2.6
            >>> from Bio import SeqIO
            and see if it works.


            Andreas

            Comment

            Latest Articles

            Collapse

            • seqadmin
              Advanced Tools Transforming the Field of Cytogenomics
              by seqadmin


              At the intersection of cytogenetics and genomics lies the exciting field of cytogenomics. It focuses on studying chromosomes at a molecular scale, involving techniques that analyze either the whole genome or particular DNA sequences to examine variations in structure and behavior at the chromosomal or subchromosomal level. By integrating cytogenetic techniques with genomic analysis, researchers can effectively investigate chromosomal abnormalities related to diseases, particularly...
              09-26-2023, 06:26 AM
            • seqadmin
              How RNA-Seq is Transforming Cancer Studies
              by seqadmin



              Cancer research has been transformed through numerous molecular techniques, with RNA sequencing (RNA-seq) playing a crucial role in understanding the complexity of the disease. Maša Ivin, Ph.D., Scientific Writer at Lexogen, and Yvonne Goepel Ph.D., Product Manager at Lexogen, remarked that “The high-throughput nature of RNA-seq allows for rapid profiling and deep exploration of the transcriptome.” They emphasized its indispensable role in cancer research, aiding in biomarker...
              09-07-2023, 11:15 PM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, 09-29-2023, 09:38 AM
            0 responses
            12 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 09-27-2023, 06:57 AM
            0 responses
            13 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 09-26-2023, 07:53 AM
            0 responses
            30 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 09-25-2023, 07:42 AM
            0 responses
            18 views
            0 likes
            Last Post seqadmin  
            Working...
            X