Seqanswers Leaderboard Ad

Collapse

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
              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
            18 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 10:19 PM
            0 responses
            22 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 09:21 AM
            0 responses
            17 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-04-2024, 09:00 AM
            0 responses
            49 views
            0 likes
            Last Post seqadmin  
            Working...
            X