-
Notifications
You must be signed in to change notification settings - Fork 1
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
ModuleNotFoundError when trying to run pytest #10
Comments
Hi @enra64! I am still experimenting this issue. I am confused about the results. I will investigate/get some advice to see what's going on. If I cannot get an answer and you confirm that you can run the tests locally I will assume this is a configuration problem in my environment for the review. However, as someone else might hit this same issue, it would be great to have an answer.
Same error obtained with:
Last one should be equivalent to CI config file:
The solution for me is to add an
However, I cannot understand why I do not obtain the same results in as in your local envioronment or the Github CI (https://github.com/hpi-dhc/jointly/runs/4642228510?check_suite_focus=true)
|
I can't reproduce with venv + poetry, I get the test suite passing normally. conda + poetry is showing some weird behavior on my computer...
(not a fan of Poetry in general, so I won't spend more resources debugging this) @AlexS12 can you try removing your
I suspect you might have a
However, if for any reason there is a
|
@astrojuanlu, you hit the nail with that! Thanks!
Given the content of
I don't know where the pastel dependency comes from. Given your results, the problem seems to be caused by the way conda installs pastel, but it might be a good idea to avoid the collision somehow. If the |
There's two parts of this issue:
In any case, I'd say that this is mainly a problem with Pastel. I'm not sure if it's a transitive dependency of jointly? |
Apparently, pastel is installed when installing poetry with conda:
|
From what I understand, pastel will no longer be a transitive dependency of Poetry very soon: (the reason is that the new Cleo removed its dependency on Clikit python-poetry/cleo#93, which is the one that depended on pastel https://github.com/sdispater/clikit/blob/1da34f16c50a2a7d4a22d21250cb6268c7b3eefd/pyproject.toml#L20) Because of the temporary nature of the problem, I'd rather not give it more importance 😅 |
Totally agree! Thanks for the support, @astrojuanlu! |
Description
Trying to test the package while doing the review for PyOpenSci (pyOpenSci/software-submission#45) results in different errors
What I Did
conda create -n jointly python poetry
poetry install; pre-commit install
CONTRIBUTING.md
instructionspy.test tests.test_jointly
failed:tests
folder and got this errorThe text was updated successfully, but these errors were encountered: