Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • HTSeq - NameError: name 're' is not defined

    I'm trying to use HTSeq but getting "NameError: name 're' is not defined" after import HTSeq command. As I'm a novice, I don't know how to resolve the issue. It would be nice if someone could help me in getting through.
    >>> import HTSeq

    Traceback (most recent call last):
    File "<pyshell#11>", line 1, in <module>
    import HTSeq
    File "C:\Python27\lib\site-packages\HTSeq\__init__.py", line 144, in <module>
    _re_attr_main = re.compile( "\s*([^\s\=]+)[\s=]+(.*)" )
    NameError: name 're' is not defined

  • #2
    Does this work for you?

    Code:
    import re
    Did you follow the installation instructions for Windows?

    Comment


    • #3
      Yes, I followed all instructions.
      No, "import re" doesn't work. See below,


      >>> import re
      >>> import HTSeq

      Traceback (most recent call last):
      File "<pyshell#1>", line 1, in <module>
      import HTSeq
      File "C:\Python27\lib\site-packages\HTSeq\__init__.py", line 9, in <module>
      from _HTSeq import *
      File "numpy.pxd", line 155, in init HTSeq._HTSeq (src/_HTSeq.c:34392)
      ValueError: numpy.dtype has the wrong size, try recompiling
      >>> import HTSeq

      Traceback (most recent call last):
      File "<pyshell#2>", line 1, in <module>
      import HTSeq
      File "C:\Python27\lib\site-packages\HTSeq\__init__.py", line 144, in <module>
      _re_attr_main = re.compile( "\s*([^\s\=]+)[\s=]+(.*)" )
      NameError: name 're' is not defined

      Comment


      • #4
        Probably should try recompiling numpy:

        I just installed pandas and statsmodels package on my python 2.7 When I tried "import pandas as pd", this error message comes out. Can anyone help? Thanks!!! numpy.dtype has the wrong size, try

        Comment


        • #5
          How did you install HTSeq and NumPy?

          My guess is you have a mis-match between the version of NumPy installed, and the version that HTSeq expects (i.e. what it was compiled against).

          Comment


          • #6
            Thanks fanli!
            I'll recompile and check whether the same error comes again or not.
            Is R / Bioconductor useful in high throughput sequence analysis?

            Comment


            • #7
              Yes, R is pretty handy for all sorts of statistical things. For example, differential expression testing using edgeR, DESeq2, etc.

              Comment


              • #8
                Thanks fanli!

                Comment

                Latest Articles

                Collapse

                • seqadmin
                  Advancing Precision Medicine for Rare Diseases in Children
                  by seqadmin




                  Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...
                  12-16-2024, 07:57 AM
                • seqadmin
                  Recent Advances in Sequencing Technologies
                  by seqadmin



                  Innovations in next-generation sequencing technologies and techniques are driving more precise and comprehensive exploration of complex biological systems. Current advancements include improved accessibility for long-read sequencing and significant progress in single-cell and 3D genomics. This article explores some of the most impactful developments in the field over the past year.

                  Long-Read Sequencing
                  Long-read sequencing has seen remarkable advancements,...
                  12-02-2024, 01:49 PM

                ad_right_rmr

                Collapse

                News

                Collapse

                Topics Statistics Last Post
                Started by seqadmin, 12-17-2024, 10:28 AM
                0 responses
                25 views
                0 likes
                Last Post seqadmin  
                Started by seqadmin, 12-13-2024, 08:24 AM
                0 responses
                42 views
                0 likes
                Last Post seqadmin  
                Started by seqadmin, 12-12-2024, 07:41 AM
                0 responses
                28 views
                0 likes
                Last Post seqadmin  
                Started by seqadmin, 12-11-2024, 07:45 AM
                0 responses
                42 views
                0 likes
                Last Post seqadmin  
                Working...
                X