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

Plugin is broken with release of tox-3.8.0 #15

Closed
drdavella opened this issue Mar 28, 2019 · 5 comments
Closed

Plugin is broken with release of tox-3.8.0 #15

drdavella opened this issue Mar 28, 2019 · 5 comments
Assignees

Comments

@drdavella
Copy link
Contributor

The following error occurs when running tox-conda with tox-3.8.0:

Traceback (most recent call last):
  File "/home/travis/miniconda/envs/test/bin/tox", line 10, in <module>
    sys.exit(cmdline())
  File "/home/travis/miniconda/envs/test/lib/python3.6/site-packages/tox/session/__init__.py", line 42, in cmdline
    main(args)
  File "/home/travis/miniconda/envs/test/lib/python3.6/site-packages/tox/session/__init__.py", line 63, in main
    retcode = session.runcommand()
  File "/home/travis/miniconda/envs/test/lib/python3.6/site-packages/tox/session/__init__.py", line 187, in runcommand
    return self.subcommand_test()
  File "/home/travis/miniconda/envs/test/lib/python3.6/site-packages/tox/session/__init__.py", line 215, in subcommand_test
    run_sequential(self.config, self.venv_dict)
  File "/home/travis/miniconda/envs/test/lib/python3.6/site-packages/tox/session/commands/run/sequential.py", line 9, in run_sequential
    if venv.setupenv():
  File "/home/travis/miniconda/envs/test/lib/python3.6/site-packages/tox/venv.py", line 582, in setupenv
    status = self.update(action=action)
  File "/home/travis/miniconda/envs/test/lib/python3.6/site-packages/tox/venv.py", line 240, in update
    self.hook.tox_testenv_create(action=action, venv=self)
  File "/home/travis/miniconda/envs/test/lib/python3.6/site-packages/pluggy/hooks.py", line 289, in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
  File "/home/travis/miniconda/envs/test/lib/python3.6/site-packages/pluggy/manager.py", line 68, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/home/travis/miniconda/envs/test/lib/python3.6/site-packages/pluggy/manager.py", line 62, in <lambda>
    firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
  File "/home/travis/miniconda/envs/test/lib/python3.6/site-packages/pluggy/callers.py", line 208, in _multicall
    return outcome.get_result()
  File "/home/travis/miniconda/envs/test/lib/python3.6/site-packages/pluggy/callers.py", line 80, in get_result
    raise ex[1].with_traceback(ex[2])
  File "/home/travis/miniconda/envs/test/lib/python3.6/site-packages/pluggy/callers.py", line 187, in _multicall
    res = hook_impl.function(*args)
  File "/home/travis/miniconda/envs/test/lib/python3.6/site-packages/tox_conda/plugin.py", line 100, in tox_testenv_create
    venv.session.make_emptydir(venv.path)
AttributeError: 'VirtualEnv' object has no attribute 'session'

This seems like a backwards incompatible API change in tox which was not mentioned anywhere in the change log, so maybe this issue is really a bug there.

@gaborbernat
Copy link
Member

Let's fix this by adhering to the new contract 👍

@gaborbernat
Copy link
Member

@drdavella can you please cut a new release from master?

@gaborbernat gaborbernat assigned drdavella and unassigned gaborbernat Mar 28, 2019
@drdavella
Copy link
Contributor Author

@gaborbernat yes I can do that, although I should also make the tox developers an owner of the repo on pypi. Maybe you can email me to tell me the account name?

@gaborbernat
Copy link
Member

hello gaborbernat is my handle 👌

Cadair added a commit to heliophysicsPy/gallery that referenced this issue Mar 29, 2019
Cadair added a commit to heliophysicsPy/gallery that referenced this issue Mar 29, 2019
@AnneTheAgile
Copy link

AnneTheAgile commented Jun 25, 2019

This ticket should be closed, fixed, per
https://github.com/tox-dev/tox-conda/releases/tag/0.2.0
#16

GitHub
Make tox cooperate with conda envs. Contribute to tox-dev/tox-conda development by creating an account on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants