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

  • Home
  • SEARCH
  • 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 6732947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:42:39+00:00 2026-05-26T10:42:39+00:00

I am working in Ipython, trying to load a csv file. from matplotlib import

  • 0

I am working in Ipython, trying to load a csv file.

from matplotlib import *
data=matplotlib.mlab.csv2rec('helix.csv',delimiter='\t')

Here is the error message

IOError                                   Traceback (most recent call last)
/mnt/hgfs/docs/python/<ipython console> in <module>()
/usr/lib/pymodules/python2.7/matplotlib/mlab.pyc in csv2rec(fname, comments, skiprows, checkrows, delimiter, converterd, names, missing, missingd, use_mrecords)
   2125 
   2126     # reset the reader and start over
-> 2127     fh.seek(0)
   2128     reader = csv.reader(fh, delimiter=delimiter)
   2129     process_skiprows(reader)      
IOError: [Errno 29] Illegal seek

Does someone already run on this error? I tried to re-install everything, I am working with Python2.7 and I have Matplotlib v0.99.3, Numpy v1.5.1, Ipython0.10.1

  • 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-05-26T10:42:40+00:00Added an answer on May 26, 2026 at 10:42 am

    I tried with this file:

    snp1,snp2,snp3
    A,A,A
    A,B,A
    B,B,B
    

    and here is the result:

    In [3]: csv2rec('helix.csv')
    Out[3]: 
    rec.array([('A', 'A', 'A'), ('A', 'B', 'A'), ('B', 'B', 'B')], 
          dtype=[('snp1', '|S1'), ('snp2', '|S1'), ('snp3', '|S1')])
    

    I have matplotlib 1.0.1, so you might try updating it, I do not have access to older matplotlib for testing.

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

Sidebar

Related Questions

I'm working from inside an ipython shell and often need to reload the script
Working through C++ Primer Plus and am trying to cin data to a dynamically
Working with an Oracle 9i database from an ASP.NET 2.0 (VB) application using OLEDB.
Working on trying out the market licensing service, and I'm running into a few
Working with Excel interop, I'm trying be very careful about not implicitly creating any
I'm working on debugging Django from the command-line. I'm working with django_extensions , and
Working on a method to allow users to attach a doc from their Google
Working with C# in .NET, I am trying to call IActiveScript.Close on my instance
What is required to get ipython fully functional on OSX Lion? I'm trying to
I'm in the process of moving some of our internal data visualization/analysis tools from

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.