Unconfigured Ad

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

    #1

    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
            Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
            by SEQadmin2



            Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

            Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
            ...
            10-14-2026, 09:55 AM
          • SEQadmin2
            New Genomics Technologies Take Aim at Long-Standing Limits
            by SEQadmin2


            Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

            We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
            ...
            09-28-2026, 10:25 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 10-22-2026, 11:13 AM
          0 responses
          23 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-22-2026, 10:48 AM
          0 responses
          20 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-15-2026, 10:52 AM
          0 responses
          36 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-14-2026, 05:39 AM
          0 responses
          42 views
          0 reactions
          Last Post SEQadmin2  
          Working...