Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • alittleboy
    Member
    • Apr 2011
    • 60

    Pysam installation problem in Red Hat Linux

    When installing the pysam Python module, version 0.7.4, it seems that the setup.py code first downloads "distribute" as below:

    Downloading http://pypi.python.org/packages/sour...-0.6.34.tar.gz

    On the server, it took a long time to respond with an error: connection timeout. Is there a way to get rid of this step? If there is another way of installing Pysam that would be great. Thanks!
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Your local institutional firewall may be blocking access to the python.org site.

    Pysam is available here: http://code.google.com/p/pysam/downloads/list
    Last edited by GenoMax; 06-14-2013, 11:30 AM.

    Comment

    • lac302
      Member
      • Dec 2012
      • 64

      #3
      Does this look like a proxy issue? Results from: $ python setup.py build

      [root@g300-149-b0 pysam-0.7.4]# python setup.py build
      Downloading http://pypi.python.org/packages/sour...-0.6.34.tar.gz
      Traceback (most recent call last):
      File "setup.py", line 127, in <module>
      use_setuptools()
      File "/app/pysam-0.7.4/distribute_setup.py", line 169, in use_setuptools
      download_delay)
      File "/app/pysam-0.7.4/distribute_setup.py", line 131, in _do_download
      to_dir, download_delay)
      File "/app/pysam-0.7.4/distribute_setup.py", line 201, in download_setuptools
      src = urlopen(url)
      File "/usr/lib64/python2.6/urllib2.py", line 126, in urlopen
      return _opener.open(url, data, timeout)
      File "/usr/lib64/python2.6/urllib2.py", line 397, in open
      response = meth(req, response)
      File "/usr/lib64/python2.6/urllib2.py", line 510, in http_response
      'http', request, response, code, msg, hdrs)
      File "/usr/lib64/python2.6/urllib2.py", line 429, in error
      result = self._call_chain(*args)
      File "/usr/lib64/python2.6/urllib2.py", line 369, in _call_chain
      result = func(*args)
      File "/usr/lib64/python2.6/urllib2.py", line 616, in http_error_302
      return self.parent.open(new, timeout=req.timeout)
      File "/usr/lib64/python2.6/urllib2.py", line 391, in open
      response = self._open(req, data)
      File "/usr/lib64/python2.6/urllib2.py", line 409, in _open
      '_open', req)
      File "/usr/lib64/python2.6/urllib2.py", line 369, in _call_chain
      result = func(*args)
      File "/usr/lib64/python2.6/urllib2.py", line 1198, in https_open
      return self.do_open(httplib.HTTPSConnection, req)
      File "/usr/lib64/python2.6/urllib2.py", line 1165, in do_open
      raise URLError(err)
      urllib2.URLError: <urlopen error [Errno -2] Name or service not known>

      Comment

      • A.N.Other
        Member
        • Feb 2012
        • 26

        #4
        Quite possible.

        If you are behind a proxy server, are you configured to go through it? What's the contents of your /etc/environment ?

        You can add the following lines to it ... obviously customising as appropriate:

        no_proxy=localhost,127.0.0.0/8,*.local
        NO_PROXY=localhost,127.0.0.0/8,*.local
        all_proxy=socks://proxy.example.com:8080/
        ALL_PROXY=socks://proxy.example.com:8080/
        http_proxy=http://proxy.example.com:8080
        HTTP_PROXY=http://proxy.example.com:8080
        ftp_proxy=http://proxy.example.com:8080
        FTP_PROXY=http://proxy.example.com:8080
        https_proxy=http://proxy.example.com:8080
        HTTPS_PROXY=http://proxy.example.com:8080

        Comment

        • lac302
          Member
          • Dec 2012
          • 64

          #5
          It turns out I needed to have my hostname identified in /etc/hosts file for python to work with urlopen

          Comment

          Latest Articles

          Collapse

          • SEQadmin2
            Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
            by SEQadmin2



            Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
            ...
            Yesterday, 11:10 AM
          • SEQadmin2
            Cancer Drug Resistance: The Lingering Barrier to Rising Survival
            by SEQadmin2



            Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

            There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
            07-08-2026, 05:17 AM
          • GATTACAT
            Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
            by GATTACAT
            Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
            07-01-2026, 11:43 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, Yesterday, 10:04 AM
          0 responses
          10 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-08-2026, 10:08 AM
          0 responses
          7 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-07-2026, 11:05 AM
          0 responses
          16 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-02-2026, 11:08 AM
          0 responses
          31 views
          0 reactions
          Last Post SEQadmin2  
          Working...