/docs/MyDocs

To get this branch, use:
bzr branch http://darksoft.org/webbzr/docs/MyDocs

« back to all changes in this revision

Viewing changes to Development/packaging/osc/python.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2017-04-03 02:45:17 UTC
  • Revision ID: csa@suren.me-20170403024517-dwzj0z0k1cmhxm7u
Restructuring, OpenShift, Ansible, Git

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 So ... the question is old, but I had the same problem and it takes me some
2
 
time to fix it, so I describe what I did... because it seems that not a lot
3
 
oft people fix it yet//
4
 
 
5
 
My problem was that I'm behind a https- proxy (and was not allowed do go
6
 
around it) and in this case, the python-lib urllib2 is the main problem,
7
 
because it can not deal with it.
8
 
 
9
 
So first you have to patch the urrlib2 (and the httplib) - the patch can be
10
 
found here:
11
 
Issue 1424152: urllib/urllib2: HTTPS over (Squid) Proxy fails - Python
12
 
tracker
13
 
 
14
 
Next, you have to comment out some lines in the osc-lib, in the conf.py file
15
 
(I found the file in /usr/lib/python2.6/osc/conf.py)
16
 
comment out lines 204 - 207
17
 
 
18
 
if 'https-proxy' in os.enviro:
19
 
del os.environ[https-proxy]
20
 
if 'HTTPS-PROXY' in os.enviro:
21
 
del os.environ[HTTPS-PROXY]
22
 
 
23
 
I did it that way and now everything works fine...
24
 
Reply With Quote