tox setup only creating log and tmp directories

Hi folks,

I have a Pycharm 2017.2.1 install that I'm trying to make the tox debugger work. My configuration screen looks like this.

When I click the Debug button for this though, it creates a directory in a .tox folder named the same as the "Run only environment" mentioned above. This is expected.

What is not expected is that the contents of that folder is only a "tmp" and a "log" dir. The first log file ends with the following text

"""

pydev debugger: process 55730 is connecting

Running virtualenv with interpreter /Users/trupp/src/envs/pycharm/bin/python2.7
pydev debugger: process 55735 is connecting

No module named /Users/trupp/src/envs/pycharm/lib/python2.7/site-packages/virtualenv.py

"""

The debug session fails with to run and emits the following

 

/Users/trupp/src/envs/pycharm/bin/python /Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py --multiproc --qt-support=auto --client 127.0.0.1 --port 60399 --file /Applications/PyCharm.app/Contents/helpers/pycharm/_jb_tox_runner.py "-e py27-bip-v13.0.0"
Testing started at 2:01 PM ...
pydev debugger: process 55722 is connecting

Connected to pydev debugger (build 172.3544.46)
py27-bip-v13.0.0 create: /Users/trupp/src/trupp/f5-common-python/.tox/py27-bip-v13.0.0
py27-bip-v13.0.0 installdeps: -rrequirements.test.txt
WARNING:Discarding $PYTHONPATH from environment, to override specify PYTHONPATH in 'passenv' in your configuration.
py27-bip-v13.0.0 develop-inst: /Users/trupp/src/trupp/f5-common-python
py27-bip-v13.0.0 installed: apipkg==1.4,asn1crypto==0.22.0,certifi==2017.7.27.1,cffi==1.10.0,chardet==3.0.4,coverage==4.4.1,cryptography==2.0.3,enum34==1.1.6,execnet==1.4.1,f5-icontrol-rest==1.3.0,-e git+git@github.com:caphrim007/f5-common-python.git@5e43f24bcbb262f5415b731af8781a0e9074915d#egg=f5_sdk,flake8==2.5.5,funcsigs==1.0.2,hacking==0.13.0,idna==2.6,ipaddress==1.0.18,Jinja2==2.9.6,MarkupSafe==1.0,mccabe==0.2.1,mock==2.0.0,netaddr==0.7.19,pbr==3.1.1,pep8==1.5.7,pluggy==0.4.0,py==1.4.34,pycodestyle==2.3.1,pycparser==2.18,pydevd==1.0.0,pyflakes==0.8.1,pyOpenSSL==16.2.0,pytest==3.0.5,pytest-cov==2.5.1,pytest-forked==0.2,pytest-symbols==0.1.0a3,pytest-xdist==1.19.1,python-coveralls==2.7.0,PyYAML==3.12,q==2.6,requests==2.18.4,requests-mock==1.2.0,sh==1.12.14,six==1.10.0,tox==2.7.0,urllib3==1.22,virtualenv==15.1.0
py27-bip-v13.0.0 runtests: PYTHONHASHSEED='4179599528'
py27-bip-v13.0.0 runtests: commands[0] | /Users/trupp/src/trupp/f5-common-python/.tox/py27-bip-v13.0.0/bin/python /Applications/PyCharm.app/Contents/helpers/pycharm/pytestrunner.py -p pytest_teamcity --bigip localhost --port 10443 -s -vv --release 13.0.0 f5/bigip

Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1599, in <module>
ERROR: invocation failed (errno 2), args: ['/Users/trupp/src/trupp/f5-common-python/.tox/py27-bip-v13.0.0/bin/python', '/Applications/PyCharm.app/Contents/helpers/pycharm/pytestrunner.py', '-p', 'pytest_teamcity', '--bigip', 'localhost', '--port', '10443', '-s', '-vv', '--release', '13.0.0', 'f5/bigip'], cwd: /Users/trupp/src/trupp/f5-common-python
globals = debugger.run(setup['file'], None, None, is_module)
File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1026, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "/Applications/PyCharm.app/Contents/helpers/pycharm/_jb_tox_runner.py", line 127, in <module>
session.runcommand()
File "/Users/trupp/src/envs/pycharm/lib/python2.7/site-packages/tox/session.py", line 392, in runcommand
return self.subcommand_test()
File "/Users/trupp/src/envs/pycharm/lib/python2.7/site-packages/tox/session.py", line 565, in subcommand_test
self.runtestenv(venv)
File "/Users/trupp/src/envs/pycharm/lib/python2.7/site-packages/tox/session.py", line 574, in runtestenv
venv.test(redirect=redirect)
File "/Users/trupp/src/envs/pycharm/lib/python2.7/site-packages/tox/venv.py", line 382, in test
ignore_ret=ignore_ret, testcommand=True)
File "/Users/trupp/src/envs/pycharm/lib/python2.7/site-packages/tox/venv.py", line 412, in _pcall
redirect=redirect, ignore_ret=ignore_ret)
File "/Users/trupp/src/envs/pycharm/lib/python2.7/site-packages/tox/session.py", line 140, in popen
stdout=stdout, stderr=STDOUT)
File "/Users/trupp/src/envs/pycharm/lib/python2.7/site-packages/tox/session.py", line 228, in _popen
stdout=stdout, stderr=stderr, env=env)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

 

Sure enough, there is no bin/ directory in that tox directory that was made. There's a command at the top of the first log file that looks like this

cmdargs: ['/Users/trupp/src/envs/pycharm/bin/python', '-m', 'virtualenv', '--python', '/Users/trupp/src/envs/pycharm/bin/python2.7', 'py27-bip-v13.0.0']

Running that manually works without incident.

 

Can anyone enlighten me as to what the problem is? I am totally stumped.

 

Thanks,

tim

0
1 comment

Could you please provide a sample project for reproducing the issue?

0

Please sign in to leave a comment.