Hi,
I'm new to Openstack & tox and I run into this issue with tox, so hopefully
someone can point me a direction on how to resolve it.
I try to run tox and out of many packages, tox gets timed out installing
"markupsafe" but not those before it. In fact, the failure is on oslo.db and
markupsafe is one of its dependencies. I put "markupsafe" in a separate
requirements.txt and try to install markupsafe before oslo.db and I still hit
the timeout installing "markupsafe". However, if I run the pip install
manually with that same requirements.txt that contain "markupsafe", the install
is successful.
I suspect it's the proxy issue under tox. But how do I include proxy in
tox? I have environment $http_proxy & $https_proxy set up properly. I try to
add proxy to pip: "install_command = pip install -U --proxy <proxy_url> {opts}
{packages}" under tox.ini but it doesn't help. I also increase the timeout for
pip or using an older version of pip (1.4) as someone suggest but that doesn't
help either.
I'm running Ubuntu 14.04.1. pip 1.5.6.
stack@tv-156:/opt/stack/congress$ tox -e pep8 -v
using tox.ini: /opt/stack/congress/tox.ini
using tox-1.6.1 from /usr/local/lib/python2.7/dist-packages/tox/__init__.pyc
GLOB sdist-make: /opt/stack/congress/setup.py
/opt/stack/congress$ /usr/bin/python /opt/stack/congress/setup.py sdist
--formats=zip --dist-dir /opt/stack/congress/.tox/dist
>/opt/stack/congress/.tox/log/tox-0.log
pep8 create: /opt/stack/congress/.tox/pep8
/opt/stack/congress/.tox$ /usr/bin/python
/usr/lib/python2.7/dist-packages/virtualenv.py --setuptools --python
/usr/bin/python pep8 >/opt/stack/congress/.tox/pep8/log/pep8-0.log
pep8 installdeps: -r/opt/stack/congress/requirements.txt,
-r/opt/stack/congress/requirements2.txt,
-r/opt/stack/congress/requirements3.txt,
-r/opt/stack/congress/test-requirements.txt
/opt/stack/congress$ /opt/stack/congress/.tox/pep8/bin/pip install -U
-r/opt/stack/congress/requirements.txt -r/opt/stack/congress/requirements2.txt
-r/opt/stack/congress/requirements3.txt
-r/opt/stack/congress/test-requirements.txt
>/opt/stack/congress/.tox/pep8/log/pep8-1.log
ERROR: invocation failed, logfile: /opt/stack/congress/.tox/pep8/log/pep8-1.log
ERROR: actionid=pep8
msg=getenv
cmdargs=[local('/opt/stack/congress/.tox/pep8/bin/pip'), 'install', '-U',
'-r/opt/stack/congress/requirements.txt',
'-r/opt/stack/congress/requirements2.txt',
'-r/opt/stack/congress/requirements3.txt',
'-r/opt/stack/congress/test-requirements.txt']
env={'PYTHONIOENCODING': 'utf_8', 'NO_PROXY':
'localhost,127.0.0.1,localaddress,.localdomain.com,192.168.178.88',
'http_proxy': 'http://proxy.houston.hp.com:8080', 'FTP_PROXY':
'http://proxy.houston.hp.com:8080', 'LESSOPEN': '| /usr/bin/lesspipe %s',
'SSH_CLIENT': '192.168.2.49 62999 22', 'LOGNAME': 'stack', 'USER': 'stack',
'PATH':
'/opt/stack/congress/.tox/pep8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games',
'HOME': '/home/stack', 'LANG': 'en_US.UTF-8', 'TERM': 'xterm', 'SHELL':
'/bin/bash', 'LANGUAGE': 'en_US:en', 'HTTPS_PROXY':
'https://proxy.houston.hp.com:8080', 'SHLVL': '1', 'https_proxy':
'https://proxy.houston.hp.com:8080', 'XDG_RUNTIME_DIR': '/run/user/1000',
'VIRTUAL_ENV': '/opt/stack/congress/.tox/pep8', 'ftp_proxy':
'http://proxy.houston.hp.com:8080', 'LC_ALL': 'C', 'XDG_SESSION_ID': '16', '_':
'/usr/local/bin/tox', 'LS_COLORS':
'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:',
'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'SSH_TTY': '/dev/pts/19', 'OLDPWD':
'/home/stack', 'HTTP_PROXY': 'http://proxy.houston.hp.com:8080', 'no_proxy':
'localhost,127.0.0.1,localaddress,.localdomain.com,192.168.178.88', 'PWD':
'/opt/stack/congress', 'MAIL': '/var/mail/stack', 'SSH_CONNECTION':
'192.168.2.49 62999 192.168.178.88 22'}
Downloading/unpacking argparse from
https://pypi.python.org/packages/2.7/a/argparse/argparse-1.3.0-py2.py3-none-any.whl#md5=c89395a1a43b61ca6a116aed5e3b1d59
(from -r /opt/stack/congress/requirements.txt (line 4))
Downloading argparse-1.3.0-py2.py3-none-any.whl
Downloading/unpacking Babel>=1.3 (from -r /opt/stack/congress/requirements.txt
(line 5))
Running setup.py (path:/opt/stack/congress/.tox/pep8/build/Babel/setup.py)
egg_info for package Babel
warning: no previously-included files matching '*' found under directory
'docs/_build'
warning: no previously-included files matching '*.pyc' found under
directory 'tests'
warning: no previously-included files matching '*.pyo' found under
directory 'tests'
Downloading/unpacking eventlet>=0.15.2 (from -r
/opt/stack/congress/requirements.txt (line 6))
Downloading/unpacking keystonemiddleware>=1.0.0 (from -r
/opt/stack/congress/requirements.txt (line 7))
Downloading/unpacking mox>=0.5.3 (from -r /opt/stack/congress/requirements.txt
(line 8))
Downloading mox-0.5.3.tar.gz
Running setup.py (path:/opt/stack/congress/.tox/pep8/build/mox/setup.py)
egg_info for package mox
Downloading/unpacking Paste (from -r /opt/stack/congress/requirements.txt (line
9))
Running setup.py (path:/opt/stack/congress/.tox/pep8/build/Paste/setup.py)
egg_info for package Paste
warning: no previously-included files matching '*' found under directory
'docs/_build/_sources'
Downloading/unpacking PasteDeploy>=1.5.0 (from -r
/opt/stack/congress/requirements.txt (line 10))
Downloading PasteDeploy-1.5.2-py2.py3-none-any.whl
Downloading/unpacking pbr>=0.6,!=0.7,<1.0 (from -r
/opt/stack/congress/requirements.txt (line 11))
Downloading/unpacking posix-ipc (from -r /opt/stack/congress/requirements.txt
(line 12))
Running setup.py
(path:/opt/stack/congress/.tox/pep8/build/posix-ipc/setup.py) egg_info for
package posix-ipc
Downloading/unpacking python-keystoneclient>=0.11.1 (from -r
/opt/stack/congress/requirements.txt (line 13))
Downloading/unpacking python-novaclient>=2.18.0 (from -r
/opt/stack/congress/requirements.txt (line 14))
Downloading/unpacking python-neutronclient>=2.3.6,<3 (from -r
/opt/stack/congress/requirements.txt (line 15))
Downloading/unpacking python-ceilometerclient>=1.0.6 (from -r
/opt/stack/congress/requirements.txt (line 16))
Downloading/unpacking python-cinderclient>=1.1.0 (from -r
/opt/stack/congress/requirements.txt (line 17))
Downloading/unpacking python-swiftclient>=2.2.0 (from -r
/opt/stack/congress/requirements.txt (line 18))
Downloading/unpacking alembic>=0.6.4 (from -r
/opt/stack/congress/requirements.txt (line 19))
Running setup.py (path:/opt/stack/congress/.tox/pep8/build/alembic/setup.py)
egg_info for package alembic
warning: no files found matching '*.jpg' under directory 'docs'
warning: no files found matching '*.sty' under directory 'docs'
warning: no files found matching '*.dat' under directory 'tests'
no previously-included directories found matching 'docs/build/output'
Downloading/unpacking python-glanceclient>=0.14.0 (from -r
/opt/stack/congress/requirements.txt (line 20))
Downloading/unpacking Routes>=1.12.3,!=2.0 (from -r
/opt/stack/congress/requirements.txt (line 22))
Running setup.py (path:/opt/stack/congress/.tox/pep8/build/Routes/setup.py)
egg_info for package Routes
warning: no previously-included files matching '.DS_Store' found anywhere
in distribution
warning: no previously-included files matching '*.hgignore' found anywhere
in distribution
warning: no previously-included files matching '*.hgtags' found anywhere in
distribution
Downloading/unpacking six>=1.7.0 (from -r /opt/stack/congress/requirements.txt
(line 23))
Downloading six-1.8.0-py2.py3-none-any.whl
Downloading/unpacking oslo.config>=1.4.0 (from -r
/opt/stack/congress/requirements.txt (line 24))
Downloading oslo.config-1.5.0-py2.py3-none-any.whl
Downloading/unpacking markupsafe>=0.9.2 (from -r
/opt/stack/congress/requirements2.txt (line 1))
Cleaning up...
Exception:
Traceback (most recent call last):
File
"/opt/stack/congress/.tox/pep8/local/lib/python2.7/site-packages/pip/basecommand.py",
line 122, in main
status = self.run(options, args)
File
"/opt/stack/congress/.tox/pep8/local/lib/python2.7/site-packages/pip/commands/install.py",
line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle,
bundle=self.bundle)
File
"/opt/stack/congress/.tox/pep8/local/lib/python2.7/site-packages/pip/req.py",
line 1197, in prepare_files
do_download,
File
"/opt/stack/congress/.tox/pep8/local/lib/python2.7/site-packages/pip/req.py",
line 1375, in unpack_url
self.session,
File
"/opt/stack/congress/.tox/pep8/local/lib/python2.7/site-packages/pip/download.py",
line 546, in unpack_http_url
resp = session.get(target_url, stream=True)
File
"/opt/stack/congress/.tox/pep8/local/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py",
line 395, in get
return self.request('GET', url, **kwargs)
File
"/opt/stack/congress/.tox/pep8/local/lib/python2.7/site-packages/pip/download.py",
line 237, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File
"/opt/stack/congress/.tox/pep8/local/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py",
line 383, in request
resp = self.send(prep, **send_kwargs)
File
"/opt/stack/congress/.tox/pep8/local/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py",
line 486, in send
r = adapter.send(request, **kwargs)
File
"/opt/stack/congress/.tox/pep8/local/lib/python2.7/site-packages/pip/_vendor/requests/adapters.py",
line 387, in send
raise Timeout(e)
Timeout:
(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection
object at 0x7fbed05009d0>, 'Connection to pypi.python.org timed out. (connect
timeout=30.0)')
Storing debug log for failure in /tmp/tmpVXPUw4
ERROR: could not install deps [-r/opt/stack/congress/requirements.txt,
-r/opt/stack/congress/requirements2.txt,
-r/opt/stack/congress/requirements3.txt,
-r/opt/stack/congress/test-requirements.txt]
_________________________________________________________________________________________
summary
_________________________________________________________________________________________
ERROR: pep8: could not install deps [-r/opt/stack/congress/requirements.txt,
-r/opt/stack/congress/requirements2.txt,
-r/opt/stack/congress/requirements3.txt,
-r/opt/stack/congress/test-requirements.txt]
And ..
stack@tv-156:/opt/stack/congress$ /opt/stack/congress/.tox/pep8/bin/pip install
-U -r/opt/stack/congress/requirements2.txt
Downloading/unpacking markupsafe>=0.9.2 (from -r
/opt/stack/congress/requirements2.txt (line 1))
Downloading MarkupSafe-0.23.tar.gz
Running setup.py
(path:/opt/stack/congress/.tox/pep8/build/markupsafe/setup.py) egg_info for
package markupsafe
Installing collected packages: markupsafe
Running setup.py install for markupsafe
building 'markupsafe._speedups' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2
-Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c
markupsafe/_speedups.c -o build/temp.linux-x86_64-2.7/markupsafe/_speedups.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
-Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv
-O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector
--param=ssp-buffer-size=4 -Wformat -Werror=format-security
build/temp.linux-x86_64-2.7/markupsafe/_speedups.o -o
build/lib.linux-x86_64-2.7/markupsafe/_speedups.so
Successfully installed markupsafe
Cleaning up...
stack@tv-156:/opt/stack/congress$ cat /opt/stack/congress/requirements.txt
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
argparse
Babel>=1.3
eventlet>=0.15.2
keystonemiddleware>=1.0.0
mox>=0.5.3
Paste
PasteDeploy>=1.5.0
pbr>=0.6,!=0.7,<1.0
posix_ipc
python-keystoneclient>=0.11.1
python-novaclient>=2.18.0
python-neutronclient>=2.3.6,<3
python-ceilometerclient>=1.0.6
python-cinderclient>=1.1.0
python-swiftclient>=2.2.0
alembic>=0.6.4
python-glanceclient>=0.14.0
Routes>=1.12.3,!=2.0
six>=1.7.0
oslo.config>=1.4.0 # Apache-2.0
# markupsafe>=0.9.2
# oslo.db>=1.1.0 # Apache-2.0
# oslo.serialization>=1.0.0 # Apache-2.0
# WebOb>=1.2.3
stack@tv-156:/opt/stack/congress$ cat /opt/stack/congress/requirements2.txt
markupsafe>=0.9.2
Thanks,
-Steven
_______________________________________________
OpenStack-dev mailing list
[email protected]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev