Skip to content
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

Please reconfirm the python version in requriments.txt #12

Open
Li-chunming opened this issue Mar 13, 2023 · 0 comments
Open

Please reconfirm the python version in requriments.txt #12

Li-chunming opened this issue Mar 13, 2023 · 0 comments

Comments

@Li-chunming
Copy link

Li-chunming commented Mar 13, 2023

According to my test, you have a high probability of marking the wrong python version in the requriments.txt(3.7.9), the correct configuration should be >=3.8.0.
Firstly, the Numpy==1.22.0 doesn't matching the python version.

ERROR: Ignored the following versions that require a different python version: 1.22.0 Requires-Python >=3.8; 1.22.1 Requires-Python >=3.8; 1.22.2 Requires-Python >=3.8; 1.22.3 Requires-Python >=3.8; 1.22.4 Requires-Python >=3.8; 1.23.0 Requires-Python >=3.8; 1.23.0rc1 Requires-Python >=3.8; 1.23.0rc2 Requires-Python >=3.8; 1.23.0rc3 Requires-Python >=3.8; 1.23.1 Requires-Python >=3.8; 1.23.2 Requires-Python >=3.8; 1.23.3 Requires-Python >=3.8; 1.23.4 Requires-Python >=3.8; 1.23.5 Requires-Python >=3.8; 1.24.0 Requires-Python >=3.8; 1.24.0rc1 Requires-Python >=3.8; 1.24.0rc2 Requires-Python >=3.8; 1.24.1 Requires-Python >=3.8; 1.24.2 Requires-Python >=3.8

And then, the minimum requirements of the libcpab need to be met Python >=3.8.0, or you will meet unsupported pickle protocol: 5error cause the pkl is generated in 3.8.

ERROR: Ignored the following versions that require a different python version: 1.10.0 Requires-Python <3.12,>=3.8; 1.10.0rc1 Requires-Python <3.12,>=3.8; 1.10.0rc2 Requires-Python <3.12,>=3.8; 1.10.1 Requires-Python <3.12,>=3.8; 1.8.0 Requires-Python >=3.8,<3.11; 1.8.0rc1 Requires-Python >=3.8,<3.11; 1.8.0rc2 Requires-Python >=3.8,<3.11; 1.8.0rc3 Requires-Python >=3.8,<3.11; 1.8.0rc4 Requires-Python >=3.8,<3.11; 1.8.1 Requires-Python >=3.8,<3.11; 1.9.0 Requires-Python >=3.8,<3.12; 1.9.0rc1 Requires-Python >=3.8,<3.12; 1.9.0rc2 Requires-Python >=3.8,<3.12; 1.9.0rc3 Requires-Python >=3.8,<3.12; 1.9.1 Requires-Python >=3.8,<3.12; 1.9.2 Requires-Python >=3.8; 1.9.3 Requires-Python >=3.8

Traceback (most recent call last):
File "UCR_alignment.py", line 121, in
run_UCR_alignment(args, dataset_name=args.dataset)
File "UCR_alignment.py", line 110, in run_UCR_alignment
model = train(train_loader, validation_loader, DTANargs, Experiment, print_model=True)
File "D:\Github\dtan\models\train_model.py", line 29, in train
zero_boundary=DTANargs.zero_boundary, device='gpu').to(device)
File "D:\Github\dtan\DTAN\DTAN_layer.py", line 53, in init
self.T = Cpab(tess, backend='pytorch', device=device, zero_boundary=zero_boundary, volume_perservation=False)
File "D:\Github\dtan\DTAN\libcpab\cpab.py", line 103, in init
self._dir, override)
File "D:\Github\dtan\DTAN\libcpab\core\tesselation.py", line 176, in init
zero_boundary, volume_perservation, direc, override)
File "D:\Github\dtan\DTAN\libcpab\core\tesselation.py", line 98, in init
self.dict = load_obj(self._basis_file)
File "D:\Github\dtan\DTAN\libcpab\core\utility.py", line 55, in load_obj
return pkl.load(f)
ValueError: unsupported pickle protocol: 5

And here are my successful packages-version lists:

  • python 3.8.0
  • matplotlib 3.3.2
  • numpy 1.23.5
  • pandas 1.5.3
  • Pillow 9.4.0
  • scikit-learn 1.2.2
  • scipy 1.5.2
  • seaborn 0.11.1
  • torch 1.5.0
  • torchvision 0.6.0
  • tqdm 4.56.0
  • tslearn 0.5.3.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant