Closed grizz closed 6 years ago
From pdb-tech:
pvlaar@peeradmin:~$ virtualenv pdbvenv Running virtualenv with interpreter /usr/bin/python2 New python executable in /home/pvlaar/pdbvenv/bin/python2 Also creating executable in /home/pvlaar/pdbvenv/bin/python Installing setuptools, pkg_resources, pip, wheel...done. pvlaar@peeradmin:~$ . pdbvenv/bin/activate (pdbvenv) pvlaar@peeradmin:~$ (pdbvenv) pvlaar@peeradmin:~$ pip install peeringdb Collecting peeringdb Collecting PyYAML>=3.11 (from peeringdb) Collecting munge>=0.1.5 (from peeringdb) Collecting click>=5.1 (from peeringdb) Using cached https://files.pythonhosted.org/packages/34/c1/8806f99713ddb993c5366c362b2f908f18269f8d792aff1abfd700775a77/click-6.7-py2.py3-none-any.whl Collecting twentyc.rpc>=0.3.4 (from peeringdb) Collecting requests<3,>=2.6.0 (from munge>=0.1.5->peeringdb) Using cached https://files.pythonhosted.org/packages/65/47/7e02164a2a3db50ed6d8a6ab1d6d60b69c4c3fdf57a284257925dfc12bda/requests-2.19.1-py2.py3-none-any.whl Collecting future<1,>=0.15.2 (from munge>=0.1.5->peeringdb) Collecting six<2.0,>=1.10 (from twentyc.rpc>=0.3.4->peeringdb) Using cached https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl Collecting certifi>=2017.4.17 (from requests<3,>=2.6.0->munge>=0.1.5->peeringdb) Using cached https://files.pythonhosted.org/packages/df/f7/04fee6ac349e915b82171f8e23cee63644d83663b34c539f7a09aed18f9e/certifi-2018.8.24-py2.py3-none-any.whl Collecting chardet<3.1.0,>=3.0.2 (from requests<3,>=2.6.0->munge>=0.1.5->peeringdb) Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl Collecting urllib3<1.24,>=1.21.1 (from requests<3,>=2.6.0->munge>=0.1.5->peeringdb) Using cached https://files.pythonhosted.org/packages/bd/c9/6fdd990019071a4a32a5e7cb78a1d92c53851ef4f56f62a3486e6a7d8ffb/urllib3-1.23-py2.py3-none-any.whl Collecting idna<2.8,>=2.5 (from requests<3,>=2.6.0->munge>=0.1.5->peeringdb) Using cached https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl Installing collected packages: PyYAML, certifi, chardet, urllib3, idna, requests, future, click, munge, six, twentyc.rpc, peeringdb Successfully installed PyYAML-3.13 certifi-2018.8.24 chardet-3.0.4 click-6.7 future-0.16.0 idna-2.7 munge-0.6.0 peeringdb-0.6.0 requests-2.19.1 six-1.11.0 twentyc.rpc-0.4.0 urllib3-1.23 (pdbvenv) pvlaar@peeradmin:~$ peeringdb conf_write config written to ~/.peeringdb (pdbvenv) pvlaar@peeradmin:~$ peeringdb depcheck Traceback (most recent call last): File "/home/pvlaar/pdbvenv/bin/peeringdb", line 11, in sys.exit(cli()) File "/home/pvlaar/pdbvenv/local/lib/python2.7/site-packages/click/core.py", line 722, in call return self.main(args, kwargs) File "/home/pvlaar/pdbvenv/local/lib/python2.7/site-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/home/pvlaar/pdbvenv/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/pvlaar/pdbvenv/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, ctx.params) File "/home/pvlaar/pdbvenv/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke return callback(args, **kwargs) File "/home/pvlaar/pdbvenv/local/lib/python2.7/site-packages/peeringdb/cli.py", line 117, in depcheck install_deps(get_deps(engine)) File "/home/pvlaar/pdbvenv/local/lib/python2.7/site-packages/peeringdb/cli.py", line 18, in install_deps if pip.main(['install', pkg, '--quiet']): AttributeError: 'module' object has no attribute 'main' (pdbvenv) pvlaar@peeradmin:~$
From pdb-tech:
pvlaar@peeradmin:~$ virtualenv pdbvenv Running virtualenv with interpreter /usr/bin/python2 New python executable in /home/pvlaar/pdbvenv/bin/python2 Also creating executable in /home/pvlaar/pdbvenv/bin/python Installing setuptools, pkg_resources, pip, wheel...done. pvlaar@peeradmin:~$ . pdbvenv/bin/activate (pdbvenv) pvlaar@peeradmin:~$ (pdbvenv) pvlaar@peeradmin:~$ pip install peeringdb Collecting peeringdb Collecting PyYAML>=3.11 (from peeringdb) Collecting munge>=0.1.5 (from peeringdb) Collecting click>=5.1 (from peeringdb) Using cached https://files.pythonhosted.org/packages/34/c1/8806f99713ddb993c5366c362b2f908f18269f8d792aff1abfd700775a77/click-6.7-py2.py3-none-any.whl Collecting twentyc.rpc>=0.3.4 (from peeringdb) Collecting requests<3,>=2.6.0 (from munge>=0.1.5->peeringdb) Using cached https://files.pythonhosted.org/packages/65/47/7e02164a2a3db50ed6d8a6ab1d6d60b69c4c3fdf57a284257925dfc12bda/requests-2.19.1-py2.py3-none-any.whl Collecting future<1,>=0.15.2 (from munge>=0.1.5->peeringdb) Collecting six<2.0,>=1.10 (from twentyc.rpc>=0.3.4->peeringdb) Using cached https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl Collecting certifi>=2017.4.17 (from requests<3,>=2.6.0->munge>=0.1.5->peeringdb) Using cached https://files.pythonhosted.org/packages/df/f7/04fee6ac349e915b82171f8e23cee63644d83663b34c539f7a09aed18f9e/certifi-2018.8.24-py2.py3-none-any.whl Collecting chardet<3.1.0,>=3.0.2 (from requests<3,>=2.6.0->munge>=0.1.5->peeringdb) Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl Collecting urllib3<1.24,>=1.21.1 (from requests<3,>=2.6.0->munge>=0.1.5->peeringdb) Using cached https://files.pythonhosted.org/packages/bd/c9/6fdd990019071a4a32a5e7cb78a1d92c53851ef4f56f62a3486e6a7d8ffb/urllib3-1.23-py2.py3-none-any.whl Collecting idna<2.8,>=2.5 (from requests<3,>=2.6.0->munge>=0.1.5->peeringdb) Using cached https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl Installing collected packages: PyYAML, certifi, chardet, urllib3, idna, requests, future, click, munge, six, twentyc.rpc, peeringdb Successfully installed PyYAML-3.13 certifi-2018.8.24 chardet-3.0.4 click-6.7 future-0.16.0 idna-2.7 munge-0.6.0 peeringdb-0.6.0 requests-2.19.1 six-1.11.0 twentyc.rpc-0.4.0 urllib3-1.23 (pdbvenv) pvlaar@peeradmin:~$ peeringdb conf_write config written to ~/.peeringdb (pdbvenv) pvlaar@peeradmin:~$ peeringdb depcheck Traceback (most recent call last): File "/home/pvlaar/pdbvenv/bin/peeringdb", line 11, in
sys.exit(cli())
File "/home/pvlaar/pdbvenv/local/lib/python2.7/site-packages/click/core.py", line 722, in call
return self.main(args, kwargs)
File "/home/pvlaar/pdbvenv/local/lib/python2.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/home/pvlaar/pdbvenv/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/pvlaar/pdbvenv/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, ctx.params)
File "/home/pvlaar/pdbvenv/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
return callback(args, **kwargs)
File "/home/pvlaar/pdbvenv/local/lib/python2.7/site-packages/peeringdb/cli.py", line 117, in depcheck
install_deps(get_deps(engine))
File "/home/pvlaar/pdbvenv/local/lib/python2.7/site-packages/peeringdb/cli.py", line 18, in install_deps
if pip.main(['install', pkg, '--quiet']):
AttributeError: 'module' object has no attribute 'main'
(pdbvenv) pvlaar@peeradmin:~$