Closed yarikoptic closed 5 years ago
Hmm, odd. I haven't had any luck triggering it on my end, including a fresh clone and new virtual environment (no system site packages). Have you tried without system site packages?
Thanks for trying! I will dig
just another proof that I am not insane!
git clone http://github.com/ReproNim/reproman && cd reproman && virtualenv --system-site-packages --python python3 venvs/dev3 && source venvs/dev3/bin/activate && python -m pytest -s -v
Hmm, looks like you don't have a pip install
call above (though you do have it in the earlier snippet, so I don't think that is related to the failure).
I figured I might as well try this, but of course --system-site-packages makes it very dependent on the system. I don't even have pytest installed globally:
% git clone http://github.com/ReproNim/reproman && cd reproman && virtualenv --system-site-packages --python python3 venvs/dev3 && source venvs/dev3/bin/activate && python -m pytest -s -v
Cloning into 'reproman'...
warning: redirecting to https://github.com/ReproNim/reproman/
remote: Enumerating objects: 69, done.
remote: Counting objects: 100% (69/69), done.
remote: Compressing objects: 100% (42/42), done.
remote: Total 11839 (delta 32), reused 42 (delta 27), pack-reused 11770
Receiving objects: 100% (11839/11839), 2.70 MiB | 7.57 MiB/s, done.
Resolving deltas: 100% (9170/9170), done.
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /tmp/rman-lOPqkaU/reproman/venvs/dev3/bin/python3
Also creating executable in /tmp/rman-lOPqkaU/reproman/venvs/dev3/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
/tmp/rman-lOPqkaU/reproman/venvs/dev3/bin/python: No module named pytest
ok -- the actual reason was masked away by
def __getattr__(self, item):
if item.startswith("skipif_"):
try:
return super(Mark, self).__getattr__(item[len("skipif_"):])
except AttributeError:
# Fall back to the original item name so that the attribute
# error message doesn't confusingly drop "skipif_".
pass
return super(Mark, self).__getattr__(item)
where my system wide docker-py was probably too old or new (3.4.1-4) and the check above was throwing up with
______________________ ERROR collecting reproman/resource/tests/test_docker_container.py _______________________
reproman/tests/skip.py:202: in __getattr__
return super(Mark, self).__getattr__(item[len("skipif_"):])
reproman/tests/skip.py:167: in __getattr__
return self.attr_value(condfn)
reproman/tests/skip.py:196: in attr_value
reason, cond = condition_func()
reproman/tests/skip.py:103: in no_docker_engine
return "docker engine not running", not is_engine_running()
reproman/tests/skip.py:97: in is_engine_running
return DockerContainer.is_engine_running()
reproman/resource/docker_container.py:74: in is_engine_running
session = docker.Client(base_url=base_url)
E AttributeError: module 'docker' has no attribute 'Client'
which was happily caught in above code and "pass"ed on. IMHO
docker
module be fortifiedunfortunately I do not fully understand that except handling, despite the comment, so I better stay away from trying to fix it up.
OK, thanks for the details. I'll look into it.
Things were working and then they stopped... tried in another clone with the same 'success'. anyone has a clue?
Here is a full protocol, hopefully without leaking any credentials ;)
and even fullter
``` (git)hopa:~/proj/repronim/reproman-master[master]git $> virtualenv --system-site-packages --python python3 venvs/dev3 Already using interpreter /usr/bin/python3 Using base prefix '/usr' New python executable in /home/yoh/proj/repronim/reproman-master/venvs/dev3/bin/python3 Also creating executable in /home/yoh/proj/repronim/reproman-master/venvs/dev3/bin/python Installing setuptools, pkg_resources, pip, wheel...done. 1 12721.....................................:Thu 30 May 2019 12:07:07 PM EDT:. (git)hopa:~/proj/repronim/reproman-master[master]git $> source venvs/dev3/bin/activate (dev3) 1 12723.....................................:Thu 30 May 2019 12:07:44 PM EDT:. (git)hopa:~/proj/repronim/reproman-master[master]git $> pip install -e . Obtaining file:///home/yoh/proj/repronim/reproman-master Requirement already satisfied: appdirs in /usr/lib/python3/dist-packages (from reproman==0.1.0) (1.4.3) Requirement already satisfied: attrs>=16.3.0 in /usr/lib/python3/dist-packages (from reproman==0.1.0) (18.2.0) Requirement already satisfied: humanize in /usr/lib/python3/dist-packages (from reproman==0.1.0) (0.5.1) Requirement already satisfied: pyyaml in /usr/lib/python3/dist-packages (from reproman==0.1.0) (3.13) Requirement already satisfied: tqdm in /usr/lib/python3/dist-packages (from reproman==0.1.0) (4.28.1) Collecting fabric>=2.3.1 (from reproman==0.1.0) Using cached https://files.pythonhosted.org/packages/d9/e4/e6fa248c94ee5d45def54b609fcf70f39d0b7f7050f2d4405c5f156b5516/fabric-2.4.0-py2.py3-none-any.whl Requirement already satisfied: cryptography>=1.5 in /usr/lib/python3/dist-packages (from reproman==0.1.0) (2.6.1) Requirement already satisfied: pytz in /usr/lib/python3/dist-packages (from reproman==0.1.0) (2018.9) Requirement already satisfied: scp in /usr/lib/python3/dist-packages (from reproman==0.1.0) (0.13.0) Requirement already satisfied: pycrypto in /usr/lib/python3/dist-packages (from reproman==0.1.0) (2.6.1) Collecting pyOpenSSL==16.2.0 (from reproman==0.1.0) Using cached https://files.pythonhosted.org/packages/ac/93/b4cd538d31adacd07f83013860db6b88d78755af1f3fefe68ec22d397e7b/pyOpenSSL-16.2.0-py2.py3-none-any.whl Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from reproman==0.1.0) (2.21.0) Requirement already satisfied: rpaths in /usr/lib/python3/dist-packages (from reproman==0.1.0) (0.13) Requirement already satisfied: jinja2 in /usr/lib/python3/dist-packages (from reproman==0.1.0) (2.10) Requirement already satisfied: reprozip in /usr/lib/python3/dist-packages (from reproman==0.1.0) (1.0.14) Collecting invoke<2.0,>=1.1 (from fabric>=2.3.1->reproman==0.1.0) Using cached https://files.pythonhosted.org/packages/be/9f/8508712c9cad73ac0c8eeb2c3e51c9ef65136653dda2b512bde64109f023/invoke-1.2.0-py3-none-any.whl Requirement already satisfied: paramiko>=2.4 in /usr/lib/python3/dist-packages (from fabric>=2.3.1->reproman==0.1.0) (2.4.2) Requirement already satisfied: six>=1.5.2 in /usr/lib/python3/dist-packages (from pyOpenSSL==16.2.0->reproman==0.1.0) (1.12.0) Installing collected packages: invoke, fabric, pyOpenSSL, reproman Found existing installation: pyOpenSSL 19.0.0 Not uninstalling pyopenssl at /usr/lib/python3/dist-packages, outside environment /home/yoh/proj/repronim/reproman-master/venvs/dev3 Can't uninstall 'pyOpenSSL'. No files were found to uninstall. Running setup.py develop for reproman Successfully installed fabric-2.4.0 invoke-1.2.0 pyOpenSSL-16.2.0 reproman (dev3) 1 12724.....................................:Thu 30 May 2019 12:07:52 PM EDT:. (git)hopa:~/proj/repronim/reproman-master[master]git $> python -m pytest -s -v reproman ===================================================== test session starts ===================================================== platform linux -- Python 3.7.3rc1, pytest-3.10.1, py-1.7.0, pluggy-0.8.0 -- /home/yoh/proj/repronim/reproman-master/venvs/dev3/bin/python cachedir: .pytest_cache hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/home/yoh/proj/repronim/reproman-master/.hypothesis/examples') rootdir: /home/yoh/proj/repronim/reproman-master, inifile: plugins: localserver-0.5.0, hypothesis-3.71.11 collecting 59 items / 1 errors 2019-05-30 12:07:57,609 [ERROR ] stderr| Error: communication error | CEDAR:6001:Failed to connect to <127.0.0.1:9618> 2019-05-30 12:07:57,609 [ERROR ] Failed to run ['condor_status'] under None. Exit code=1. out= err=Error: communication error | CEDAR:6001:Failed to connect to <127.0.0.1:9618> | collected 374 items / 2 errors =========================================================== ERRORS ============================================================ ________________________________ ERROR collecting reproman/distributions/tests/test_docker.py _________________________________ reproman/distributions/tests/test_docker.py:23: in