Open theJazzman42 opened 1 year ago
mayavi2 -t
----------------------------------------------------------------------
Running TVTK tests.
Traceback (most recent call last):
File "/usr/local/bin/mayavi2", line 5, in <module>
from mayavi.scripts.mayavi2 import main
File "/usr/local/lib/python3.10/dist-packages/mayavi/scripts/mayavi2.py", line 425, in <module>
runtests.main()
File "/usr/local/lib/python3.10/dist-packages/mayavi/tests/runtests.py", line 223, in main
status = m2_tests(verbose)
File "/usr/local/lib/python3.10/dist-packages/mayavi/tests/runtests.py", line 177, in m2_tests
err = run(tests, verbose)
File "/usr/local/lib/python3.10/dist-packages/mayavi/tests/runtests.py", line 122, in run
res = re.search(r'Ran\s*(\d*)\s*test', err)
File "/usr/lib/python3.10/re.py", line 200, in search
return _compile(pattern, flags).search(string)
TypeError: cannot use a string pattern on a bytes-like object
/usr/bin/mayavi2 -t
----------------------------------------------------------------------
Running TVTK tests.
Traceback (most recent call last):
File "/usr/bin/mayavi2", line 427, in <module>
runtests.main()
File "/usr/local/lib/python3.10/dist-packages/mayavi/tests/runtests.py", line 223, in main
status = m2_tests(verbose)
File "/usr/local/lib/python3.10/dist-packages/mayavi/tests/runtests.py", line 177, in m2_tests
err = run(tests, verbose)
File "/usr/local/lib/python3.10/dist-packages/mayavi/tests/runtests.py", line 122, in run
res = re.search(r'Ran\s*(\d*)\s*test', err)
File "/usr/lib/python3.10/re.py", line 200, in search
return _compile(pattern, flags).search(string)
TypeError: cannot use a string pattern on a bytes-like object
Just the same with MX Linux.
mayavi2 -t
----------------------------------------------------------------------
Running TVTK tests.
Traceback (most recent call last):
File "/usr/bin/mayavi2", line 427, in <module>
runtests.main()
File "/usr/lib/python3/dist-packages/mayavi/tests/runtests.py", line 225, in main
status = m2_tests(verbose)
File "/usr/lib/python3/dist-packages/mayavi/tests/runtests.py", line 179, in m2_tests
err = run(tests, verbose)
File "/usr/lib/python3/dist-packages/mayavi/tests/runtests.py", line 124, in run
res = re.search('Ran\s*(\d*)\s*test', err)
File "/usr/lib/python3.9/re.py", line 201, in search
return _compile(pattern, flags).search(string)
TypeError: cannot use a string pattern on a bytes-like object
Could you please uninstall the VTK 7.1 version and try? something looks wrong in your installation. It may be best to try this in a fresh venv.
No changes.
An isolated venv should not have these problems, something is messed up with your system installation. You shouldn't need any of the VTK packages from mint instead pip install vtk should work. Avoid installing python packages into the system python, instead create an isolated environment.
WARNING: Imported VTK version (9.2) does not match the one used to build the TVTK classes (7.1). This may cause problems. Please rebuild TVTK.
Tried to install the binary package of the distribution as well as getting from git.
Linux Mint 21.1 64bit Cinnamon
Mint installed from repositories:
And I always get