-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
2.2.1 testunit error #1157
Comments
It looks like the `sympy` test dependency is missing.
You need to install subliminal with the `test` optional dependencies:
`python -m pip install -e '.[test,dev]'`
`CONTRIBUTING.md` is incorrect, I will update it. Thanks!
…On 21 July 2024 10:23:25 GMT+01:00, Nuno Teixeira ***@***.***> wrote:
1 error on testunit that I can't figure out if it is missing some dependency.
Any clues?
Thanks
```
platform freebsd15 -- Python 3.11.9, pytest-8.1.1, pluggy-1.5.0 -- /usr/local/bin/python3.11
cachedir: .pytest_cache
rootdir: /wrkdirs/usr/ports/multimedia/py-subliminal/work-py311/subliminal-2.2.1
configfile: pyproject.toml
testpaths: tests
collected 367 items / 1 error
====================================================================================================== ERRORS ======================================================================================================
_______________________________________________________________________________________ ERROR collecting tests/test_score.py _______________________________________________________________________________________
ImportError while importing test module '/wrkdirs/usr/ports/multimedia/py-subliminal/work-py311/subliminal-2.2.1/tests/test_score.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/lib/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_score.py:7: in <module>
from subliminal.score import compute_score, episode_scores, movie_scores, solve_episode_equations, solve_movie_equations
E ImportError: cannot import name 'solve_episode_equations' from 'subliminal.score' (/wrkdirs/usr/ports/multimedia/py-subliminal/work-py311/subliminal-2.2.1/subliminal/score.py)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
================================================================================================= 1 error in 0.16s =================================================================================================
*** Error code 2
```
--
Reply to this email directly or view it on GitHub:
#1157
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
|
That was a missing dep that I missed from pyproject.py. It works now. I could close this PR right away as fixed but in the meanwhile maybe it is worth to take a look at 1 failed test:
|
You can leave this issue open until The test failure looks like a duplicate of #1135 The |
Can you return the result of: from guessit import guessit
path = "/wrkdirs/usr/ports/multimedia/py-subliminal/work-py311/subliminal-2.2.1/tests/data/mkv/test5.mkv"
guessit(path) |
|
Follow discussion in #1135 for the failing test. |
1 error on testunit that I can't figure out if it is missing some dependency.
Any clues?
Thanks
The text was updated successfully, but these errors were encountered: