HeliXonProtein / OmegaFold

OmegaFold Release Code
Apache License 2.0
533 stars 75 forks source link

AttributeError: module 'os' has no attribute 'pathconf' #7

Closed saurabhgayali closed 1 year ago

saurabhgayali commented 1 year ago

AFter installation When I am running, following error is happening:

INFO:root:Loading weights from C:\Users\User/.cache/omegafold_ckpt/model.pt
INFO:root:Constructing OmegaFold
INFO:root:Reading ../SECRETFOLDER/sequences.fasta
Traceback (most recent call last):
  File "L:\Omegafold\OmegaFold\main.py", line 105, in <module>
    main()
  File "C:\Users\User\AppData\Roaming\Python\Python310\site-packages\torch\autograd\grad_mode.py", line 27, in decorate_context
    return func(*args, **kwargs)
  File "L:\Omegafold\OmegaFold\main.py", line 58, in main
    for i, (input_data, save_path) in enumerate(
  File "L:\Omegafold\OmegaFold\pipeline.py", line 132, in fasta2inputs
    name_max = os.pathconf(output_dir, 'PC_NAME_MAX') - 4
AttributeError: module 'os' has no attribute 'pathconf'

image

OS Windows 10 Python: 3.10.7 PIP: 22.2.2

RuiWang1998 commented 1 year ago

Hi!

Thanks for checking out our model! This issue exists because currently we are not supporting Windows officially, but it is going to be supported in a couple of days.

For the time being, you can clone the repository, gh pr checkout 3, which takes you to #5 that supports Windows and should get you where you want.

saurabhgayali commented 1 year ago

Found it somewhere on Stackoverflow. Hardcoded name_max to 100 name_max =100 and now it is working

Something Python should work on.

RuiWang1998 commented 1 year ago

Great! That's a workaround for now, the update is on the way!

RuiWang1998 commented 1 year ago

Hi

We think we have fixed this with the latest update, so we'll close this issue for now.