Skip to content

Conversation

@mailler0xa
Copy link

@mailler0xa mailler0xa commented Oct 11, 2024

Description

When running lithops test, lack of pytest caused it to fail.

Error

Traceback (most recent call last):
File "/home/user/Documents/ShadowClone/env/bin/lithops", line 8, in
sys.exit(lithops_cli())
File "/home/user/Documents/ShadowClone/env/lib/python3.10/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/home/user/Documents/ShadowClone/env/lib/python3.10/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/home/user/Documents/ShadowClone/env/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/user/Documents/ShadowClone/env/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/user/Documents/ShadowClone/env/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/home/user/Documents/ShadowClone/env/lib/python3.10/site-packages/lithops/scripts/cli.py", line 156, in test
import pytest
ModuleNotFoundError: No module named 'pytest'

Ubuntu version tested on:

PRETTY_NAME="Ubuntu 22.04.5 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.5 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

Reproducing

Run the commands here on a fresh OS: https://github.com/fyoorer/ShadowClone/wiki#local-machine

Fix:

Add pytest to requirements.txt or manually run pip install pytest on the directory before running lithops test.

When running `lithops test`, lack of pytest caused it to fail.
@m0pam
Copy link

m0pam commented Nov 23, 2024

Bump.
@fyoorer all it takes to fix this is adding pytest to the requirements.txt file (possibly with a pinned version).

@Sh4d0wHunt3rX
Copy link

Reported here as well #63

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

Successfully merging this pull request may close these issues.

3 participants