Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8468135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:50:53+00:00 2026-06-10T15:50:53+00:00

I am working on a bioinformatics project and trying to run a module named

  • 0

I am working on a bioinformatics project and trying to run a module named pycogent in python 2.7. My objective is to create an ancestral sequence from a file composed of aligned 16s Fastq sequences.

My python code is as follows:

from cogent import LoadSeqs
aln = LoadSeqs('FullStrep.fasta')
lf.setAlignment(aln)
lf.optimise(show_progress=False, local=True)
ancestors = lf.likelyAncestralSeqs()
print ancestors

However, I am getting the following error messages.

Traceback (most recent call last):
  File "/Users/paulfryling/Desktop/Mypythonproj/pycogentancestor", line 1, in <module>
    from cogent import LoadSeqs
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/cogent/__init__.py", line 5, in <module>
    import numpy
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/__init__.py", line 137, in <module>
    import add_newdocs
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/add_newdocs.py", line 9, in <module>
    from numpy.lib import add_newdoc
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/lib/__init__.py", line 4, in <module>
    from type_check import *
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/lib/type_check.py", line 8, in <module>
    import numpy.core.numeric as _nx
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/__init__.py", line 5, in <module>
    import multiarray
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so, 2): no suitable image found.  Did find:
    /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so: no matching architecture in universal wrapper
>>> 

Any help or direction would be GREATLY appreciated.

Best Regards,

Paul

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T15:50:55+00:00Added an answer on June 10, 2026 at 3:50 pm

    The problem you have is that you don’t some of PyCogent’s dependencies, and it has quite a few of them, but if you have the following three, you will be able to use pretty much everything.

    The first thing you need to do to install is Python**, since you are in Mac OS X select the current OS version you are using:

    • 32-bit version for: Panther (10.3), Tiger (10.4), Leopard (10.5) or
      Snow Leopard (10.6)
      .
    • 64-bit version for: Snow Leopard (10.6),
      Lion (10.7) or Mountain Lion (10.8)
      .

    Next thing you will need is NumPy, which you can download similarly from here:

    • Panther (10.3) or Tiger (10.4).
    • Leopard (10.5).
    • Snow Leopard (10.6), Lion (10.7) or Mountain Lion (10.8).

    Next you will need to install Matplotlib:

    • Panther (10.3), Tiger (10.5) or Leopard (10.5).
    • Snow Leopard (10.6), Lion (10.7) or Mountain Lion (10.8).

    Once you have all these, you will need to install the PyCogent libraries, to do so:

    1. Download and unzip this file into your computer.

    2. From the terminal go to the folder where this file was downloaded, and inside PyCogent folder, run the following commands:


    python setup.py build
    sudo python setup.py install
    

    And that should be all.

    If you needed to, you can install the optional installs.

    ** Although there is one Python installed in your computer probably, it is better to make sure you have the Python from Python.org since it will also be compatible with Matplotlib, another of the dependencies of PyCogent.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Working on calling a C function from my asm project. I'm trying to push
Working on OS X Lion, I'm trying to open a file in my python-program
Working on a project using Entity Framework (4.3.1.0). I'm trying to figure out how
Working on a end of the year project for school and chose to create
I'm working in research and my bioinformatics work group needs a project management software
I'm working on a bioinformatics project that involves piping together different scripts and input
I'm working on a bioinformatics project that involves piping together different scripts and input
Working in iOS 5 I have read a list of file names from my
Working on the problems on Project Euler to try to learn Clojure. I'm on
Working on game where plates will be falling from top to bottom. Some plates

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.