fast-photographer-12719
11/23/2023, 2:27 PM(base3.10) matt@DGX-2:~/mlcore/libs$ pants dependencies mldb/tests/conftest.py
3rdparty/python:default#pytest
3rdparty/python:default#requests
3rdparty/python:default#tk
And i have added the module mapping into the python_requirements target:
module_mapping={"ffmpeg-python": ["ffmpeg"], "GPUtil": ["GPUtil"], "pillow": ["PIL"], "tk":["tkinter"]}
And tk is included in the requirements.txt. I'm not sure what the next debug step is. I can see tk in the lockfile but can't tell which part os pants is not including tk in the environment when i run tests. Are there anyways to see what pants will include in an environment? (other than dependencies goal?)curved-television-6568
11/23/2023, 2:44 PMfast-photographer-12719
11/23/2023, 2:55 PM(base3.10) matt@DGX-2:~/mlcore/libs$ pants test mldb/::
14:51:47.39 [INFO] Canceled: Building 23 requirements for requirements.pex from the 3rdparty/python/default.lock resolve: boto3, jsonschema==3.2.0, numpy~=1.24.4, nvidia-cublas-cu12, nvidia-cuda-cupti-cu12, nvidia-cuda-nvrtc-cu12... (294 characters truncated)
14:53:00.37 [INFO] Completed: Building 23 requirements for requirements.pex from the 3rdparty/python/default.lock resolve: boto3, jsonschema==3.2.0, numpy~=1.24.4, nvidia-cublas-cu12, nvidia-cuda-cupti-cu12, nvidia-cuda-nvrtc-cu12... (294 characters truncated)
14:53:02.27 [INFO] Completed: Building 24 requirements for requirements.pex from the 3rdparty/python/default.lock resolve: boto3, jsonschema==3.2.0, numpy~=1.24.4, nvidia-cublas-cu12, nvidia-cuda-cupti-cu12, nvidia-cuda-nvrtc-cu12... (321 characters truncated)
14:53:02.99 [WARN] Failed to generate JUnit XML data for libs/mldb/tests/dataset_utils/timestamp_projects/test_timestamp_video.py:tests.
14:53:02.99 [ERROR] Completed: Run Pytest - libs/mldb/tests/dataset_utils/timestamp_projects/test_timestamp_video.py:tests - failed (exit code 4).
ImportError while loading conftest '/tmp/pants-sandbox-HqwzAD/libs/mldb/tests/conftest.py'.
libs/mldb/tests/conftest.py:12: in <module>
import tkinter
E ModuleNotFoundError: No module named 'tkinter'
It repeats the no module named 'tkinter' for each test (as the impor error is in the conftest.py) and marks all the tests as failed.curved-television-6568
11/23/2023, 3:07 PMfast-photographer-12719
11/23/2023, 3:29 PMcurved-television-6568
11/23/2023, 4:13 PMpip install tk would give you this package, right?
https://pypi.org/project/tk
Which has these files, which seems to be not what you want..
❯ tar -tzf ~/Downloads/tk-0.1.0-py3-none-any.whl
tk/__init__.py
tk/structure/Tensor.py
tk/structure/TensorMap.py
tk/structure/__init__.py
tk-0.1.0.dist-info/LICENSE
tk-0.1.0.dist-info/METADATA
tk-0.1.0.dist-info/WHEEL
tk-0.1.0.dist-info/top_level.txt
tk-0.1.0.dist-info/RECORDcurved-television-6568
11/23/2023, 5:27 PMcurved-television-6568
11/23/2023, 5:33 PMcurved-television-6568
11/23/2023, 5:34 PMcurved-television-6568
11/23/2023, 5:35 PMcurved-television-6568
11/23/2023, 5:36 PMapt-get install python-tkcurved-television-6568
11/23/2023, 5:37 PMfast-photographer-12719
11/24/2023, 10:06 AM