ColabFold icon indicating copy to clipboard operation
ColabFold copied to clipboard

Error with RosettaFold2 Setup

Open Triruben opened this issue 8 months ago • 2 comments

When running RosettaFold2 setup I get next error:

UnpicklingError Traceback (most recent call last) in

/content/RoseTTAFold2/network/predict.py in 6 from torch.utils import data 7 from parsers import parse_a3m, read_templates, read_template_pdb, parse_pdb ----> 8 from RoseTTAFoldModel import RoseTTAFoldModule 9 import util 10 from collections import namedtuple

9 frames /usr/local/lib/python3.11/dist-packages/torch/serialization.py in load(f, map_location, pickle_module, weights_only, mmap, **pickle_load_args) 1468 ) 1469 except pickle.UnpicklingError as e: -> 1470 raise pickle.UnpicklingError(_get_wo_message(str(e))) from None 1471 return _load( 1472 opened_zipfile,

UnpicklingError: Weights only load failed. This file can still be loaded, to do so you have two options, do those steps only if you trust the source of the checkpoint. (1) In PyTorch 2.6, we changed the default value of the weights_only argument in torch.load from False to True. Re-running torch.load with weights_only set to False will likely succeed, but it can result in arbitrary code execution. Do it only if you got the file from a trusted source. (2) Alternatively, to load with weights_only=True please check the recommended steps in the following error message. WeightsUnpickler error: Unsupported global: GLOBAL builtins.slice was not an allowed global by default. Please use torch.serialization.add_safe_globals([slice]) or the torch.serialization.safe_globals([slice]) context manager to allowlist this global if you trust this class/function.

Check the documentation of torch.load to learn more about types accepted by default with weights_only https://pytorch.org/docs/stable/generated/torch.load.html.

Triruben avatar Apr 03 '25 21:04 Triruben

The issue should now be fixed, can you try again?

sokrypton avatar Apr 23 '25 13:04 sokrypton

Dear Sergey,

Thank you a lot for solving the issue. I appreciate it a lot!

Greatings,

Rubén


From: Sergey O @.> Sent: Wednesday, April 23, 2025 3:58:58 PM To: sokrypton/ColabFold @.> Cc: Triruben @.>; Author @.> Subject: Re: [sokrypton/ColabFold] Error with RosettaFold2 Setup (Issue #700)

The issue should now be fixed, can you try again?

— Reply to this email directly, view it on GitHubhttps://github.com/sokrypton/ColabFold/issues/700#issuecomment-2824406912, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BRCPMJ6236SCVVWVIMR6P53226MCFAVCNFSM6AAAAAB2NJIGH6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMRUGQYDMOJRGI. You are receiving this because you authored the thread.Message ID: @.***>

[https://avatars.githubusercontent.com/u/4187522?s=20&v=4]sokrypton left a comment (sokrypton/ColabFold#700)https://github.com/sokrypton/ColabFold/issues/700#issuecomment-2824406912

The issue should now be fixed, can you try again?

— Reply to this email directly, view it on GitHubhttps://github.com/sokrypton/ColabFold/issues/700#issuecomment-2824406912, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BRCPMJ6236SCVVWVIMR6P53226MCFAVCNFSM6AAAAAB2NJIGH6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMRUGQYDMOJRGI. You are receiving this because you authored the thread.Message ID: @.***>

Triruben avatar Apr 23 '25 14:04 Triruben