- Notifications
You must be signed in to change notification settings - Fork86
Open
Description
Hello,
When I run probackup tests, I get the the following error -ModuleNotFoundError: No module named 'distutils'
(env) dima@ubuntu-work:~/.MY/GitHUB2/PostgresPro/pg_probackup/work2$ python -m unittest tests/home/dima/.MY/GitHUB2/PostgresPro/pg_probackup/work2/tests/merge_test.py:1953: SyntaxWarning: invalid escape sequence '\ ' """E======================================================================ERROR: tests (unittest.loader._FailedTest.tests)----------------------------------------------------------------------ImportError: Failed to import test module: testsTraceback (most recent call last): File "/usr/lib/python3.12/unittest/loader.py", line 137, in loadTestsFromName module = __import__(module_name) ^^^^^^^^^^^^^^^^^^^^^^^ File "/home/dima/.MY/GitHUB2/PostgresPro/pg_probackup/work2/tests/__init__.py", line 4, in <module> from . import init_test, merge_test, option_test, show_test, compatibility_test, \ File "/home/dima/.MY/GitHUB2/PostgresPro/pg_probackup/work2/tests/backup_test.py", line 7, in <module> from distutils.dir_util import copy_treeModuleNotFoundError: No module named 'distutils'----------------------------------------------------------------------Ran 1 test in 0.000sFAILED (errors=1)
This problem can be fixed with adding "setuptools" intests/requirements.txt file.
Metadata
Metadata
Assignees
Labels
No labels