Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tox fails to detect platform in install_command #1464

Closed
mosi-kha opened this issue Nov 23, 2019 · 1 comment · Fixed by #1707
Closed

tox fails to detect platform in install_command #1464

mosi-kha opened this issue Nov 23, 2019 · 1 comment · Fixed by #1707
Labels
bug:normal affects many people or has quite an impact help:wanted Issues that have been acknowledged, a solution determined and a PR might likely be accepted.

Comments

@mosi-kha
Copy link

mosi-kha commented Nov 23, 2019

hi

[testenv:test]
platform = win: win32
install_command = win: python -m pip install {packages} {toxinidir}\third_packages\Shapely-1.6.4.post2-cp37-cp37m-win_amd64.whl

when use `win: ` in `install_command` tox raise `IndexError`
full trackback:
`Traceback (most recent call last):
  File "C:\Program Files\JetBrains\PyCharm 2019.2.4\helpers\pycharm\_jb_tox_runner.py", line 103, in <module>
    config = tox_config.parseconfig(args=sys.argv[1:])
  File "D:\Projects\python\cheetagp\biziou-backend\env\lib\site-packages\tox\config\__init__.py", line 273, in parseconfig
    ParseIni(config, config_file, content)
  File "D:\Projects\python\cheetagp\biziou-backend\env\lib\site-packages\tox\config\__init__.py", line 1178, in __init__
    for key, (exc, trace) in failures.items()
tox.exception.ConfigError: ConfigError: test failed with list index out of range at Traceback (most recent call last):
  File "D:\Projects\python\cheetagp\biziou-backend\env\lib\site-packages\tox\config\__init__.py", line 1150, in run
    results[name] = cur_self.make_envconfig(name, section, subs, config)
  File "D:\Projects\python\cheetagp\biziou-backend\env\lib\site-packages\tox\config\__init__.py", line 1302, in make_envconfig
    res = meth(env_attr.name, env_attr.default, replace=replace)
  File "D:\Projects\python\cheetagp\biziou-backend\env\lib\site-packages\tox\config\__init__.py", line 1559, in getargv
    return self.getargvlist(name, default, replace=replace)[0]
IndexError: list index out of range`

@mosi-kha mosi-kha added the bug:normal affects many people or has quite an impact label Nov 23, 2019
@gaborbernat gaborbernat added the help:wanted Issues that have been acknowledged, a solution determined and a PR might likely be accepted. label Nov 26, 2019
@gaborbernat
Copy link
Member

Feel free to open a PR against master and fix it. My available efforts at the moment are aimed at fixing this as part of #1394, but that probably will take a while (ETA September).

jayvdb added a commit to jayvdb/tox that referenced this issue Oct 21, 2020
jayvdb added a commit to jayvdb/tox that referenced this issue Oct 21, 2020
jayvdb added a commit to jayvdb/tox that referenced this issue Oct 23, 2020
jayvdb added a commit to jayvdb/tox that referenced this issue Oct 23, 2020
@tox-dev tox-dev locked and limited conversation to collaborators Jan 14, 2021
ssbarnea pushed a commit to ssbarnea/tox that referenced this issue Apr 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug:normal affects many people or has quite an impact help:wanted Issues that have been acknowledged, a solution determined and a PR might likely be accepted.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants