from .lib import zephyr_c ImportError: Python version mismatch: module was compiled for Python 3.10, but the interpreter version is incompatible: 3.9.16 (main, Mar 8 2023, 14:00:05) [GCC 11.2.0]. #10
Do you know how can I make this work for Python 3.9?
(zephyr) mona@ard-gpu-01:~/zephyr/python/zephyr$ python test.py --model_name pn2 --dataset_root ./data/ycb/matches_data_test/ --dataset_name ycbv --dataset HSVD_diff_uv_norm --no_valid_proj --no_valid_depth --loss_cutoff log --exp_name final --resume_path ./ckpts/final_ycbv.ckpt
Traceback (most recent call last):
File "/home/mona/zephyr/python/zephyr/test.py", line 10, in <module>
from zephyr.datasets import getDataloader
File "/home/mona/zephyr/python/zephyr/datasets/__init__.py", line 9, in <module>
from zephyr.datasets.score_dataset import ScoreDataset
File "/home/mona/zephyr/python/zephyr/datasets/score_dataset.py", line 14, in <module>
from zephyr.normals import compute_normals
File "/home/mona/zephyr/python/zephyr/normals.py", line 2, in <module>
from .lib import zephyr_c
ImportError: Python version mismatch: module was compiled for Python 3.10, but the interpreter version is incompatible: 3.9.16 (main, Mar 8 2023, 14:00:05)
[GCC 11.2.0].
(zephyr) mona@ard-gpu-01:~/zephyr/python/zephyr$ python
Python 3.9.16 (main, Mar 8 2023, 14:00:05)
[GCC 11.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
I have:
(zephyr) mona@ard-gpu-01:~/zephyr/python/zephyr$ python -m torch.utils.collect_env
Collecting environment information...
PyTorch version: 1.13.0+cu117
Is debug build: False
CUDA used to build PyTorch: 11.7
ROCM used to build PyTorch: N/A
OS: Ubuntu 22.04.2 LTS (x86_64)
GCC version: (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
Clang version: 14.0.0-1ubuntu1
CMake version: version 3.22.1
Libc version: glibc-2.35
Python version: 3.9.16 (main, Mar 8 2023, 14:00:05) [GCC 11.2.0] (64-bit runtime)
Python platform: Linux-5.19.0-42-generic-x86_64-with-glibc2.35
Is CUDA available: True
CUDA runtime version: 11.7.99
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration: GPU 0: NVIDIA GeForce RTX 3080 Laptop GPU
Nvidia driver version: 530.30.02
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True
Versions of relevant libraries:
[pip3] numpy==1.24.3
[pip3] pytorch-lightning==0.7.6
[pip3] torch==1.13.0+cu117
[pip3] torchmetrics==0.11.4
[pip3] torchtext==0.14.0
[pip3] torchvision==0.14.0+cu117
[conda] numpy 1.24.3 pypi_0 pypi
[conda] pytorch-lightning 0.7.6 pypi_0 pypi
[conda] torch 1.13.0+cu117 pypi_0 pypi
[conda] torchmetrics 0.11.4 pypi_0 pypi
[conda] torchtext 0.14.0 pypi_0 pypi
[conda] torchvision 0.14.0+cu117 pypi_0 pypi
Do you know how can I make this work for Python 3.9?
I have:
also: