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
            Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
            by SEQadmin2



            CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

            Despite this, “CRISPR helped turn genome editing from a specialized technique into
            ...
            07-31-2026, 11:01 AM
          • SEQadmin2
            Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
            by SEQadmin2


            Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

            The systematic characterization of the human proteome has
            ...
            07-20-2026, 11:48 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 08-13-2026, 12:22 PM
          0 responses
          17 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 08-11-2026, 10:35 AM
          0 responses
          16 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 08-06-2026, 07:41 AM
          0 responses
          31 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 08-03-2026, 10:13 AM
          0 responses
          50 views
          0 reactions
          Last Post SEQadmin2  
          Working...