Skip to content

'No module found' error -> how to configure an environment for remote usage #300

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

Closed
michaelbukachi opened this issue Jun 15, 2018 · 6 comments
Labels

Comments

@michaelbukachi
Copy link

Hello. I'm trying to run tests on a remote server but I'm getting a No module found error. I'm running pytests in a virtual env created using pipenv. Is it possible to have a setup before the tests that installs all the modules on the remote server ?

@RonnyPfannschmidt
Copy link
Member

remote setup currently is not implemented that way, you need to provide the environment

@michaelbukachi
Copy link
Author

Oh. Okay. How do I do that?

@RonnyPfannschmidt
Copy link
Member

@michaelbukachi for example by creating it as a virtualenv on the remote and passing that virtualenv as the python parameter to the --tx

@michaelbukachi
Copy link
Author

you mean something like this: pytest --tx ssh=myremote//python=virtualenv ?

@RonnyPfannschmidt
Copy link
Member

pytest --tx ssh=myremote//python=/some/virtualenv/bin/python

@michaelbukachi
Copy link
Author

Thanks. Got it.

@RonnyPfannschmidt RonnyPfannschmidt changed the title 'No module found' error 'No module found' error -> how to configure an environment for remote usage Jun 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants