tommyhuangthu / UniDesign

a universal framework for computational protein design
MIT License
34 stars 5 forks source link

File path issues #2

Open jnoske opened 3 months ago

jnoske commented 3 months ago

Hi,

I seem to have some issues with file paths when trying to run UniDesign.

The program works fine when I use relative path to the binary (./UniDesign) and I am in the UniDesign directory, but not absolute paths (/abc/ab/UniDesign).

The same is for library and wread subfolders which cannot be found in my directory when I execute the binary from outside of the program directory.

I would be happy to get some suggestions.

Best, Jakob

tommyhuangthu commented 3 months ago

Hello Jakob,

Could you provide more details on the command that you're running and show the error messages you have? I used the absolute paths as well, but I did not encounter the problems as you mentioned.

Best wishes, Xiaoqiang


From: Jakob Noske @.> Sent: Saturday, March 30, 2024 9:38 To: tommyhuangthu/UniDesign @.> Cc: Subscribed @.***> Subject: [tommyhuangthu/UniDesign] File path issues (Issue #2)

Hi,

I seem to have some issues with file paths when trying to run UniDesign.

The program works fine when I use relative path to the binary (./UniDesign) and I am in the UniDesign directory, but not absolute paths (/abc/ab/UniDesign).

The same is for library and wread subfolders which cannot be found in my directory when I execute the binary from outside of the program directory.

I would be happy to get some suggestions.

Best, Jakob

— Reply to this email directly, view it on GitHubhttps://github.com/tommyhuangthu/UniDesign/issues/2, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIUXW3AI5BKVDTSJURNALWDY22W47AVCNFSM6AAAAABFPSFSAWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYTMNBVGY3DIOA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

jnoske commented 3 months ago

Hello Xiaoqiang,

Yes the command looks something like this /abc/ab/UniDesign --command=RepairStructure --pdb=xxx.pdb

The output I am getting is: Aborted (core dumped)

Even when I am just trying to run /abc/ab/UniDesign --help.

However when I am inside the directory of UniDesign everything seems to work fine.

Best, Jakob

tommyhuangthu commented 3 months ago

Thank you for the info, Jakob. I think you need to type UniDesign twice, e.g., use /abc/ab/UniDesign/UniDesign. Note that the first UniDesign is the folder, the second UniDesign is the executable.

When you are inside the directory of UniDesign, definitely you only need to type UniDesign once as: ./UniDesign ...

Hope this can resolve your problem.

Best wishes, Xiaoqiang


From: Jakob Noske @.> Sent: Tuesday, April 2, 2024 4:26 To: tommyhuangthu/UniDesign @.> Cc: Xiaoqiang Huang @.>; Comment @.> Subject: Re: [tommyhuangthu/UniDesign] File path issues (Issue #2)

Hello Xiaoqiang,

Yes the command looks something like this /abc/ab/UniDesign --command=RepairStructure --pdb=xxx.pdb

The output I am getting is: Aborted (core dumped)

Even when I am just trying to run /abc/ab/UniDesign --help.

However when I am inside the directory of UniDesign everything seems to work fine.

Best, Jakob

— Reply to this email directly, view it on GitHubhttps://github.com/tommyhuangthu/UniDesign/issues/2#issuecomment-2031379548, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIUXW3D7OED33C5LYASU7V3Y3JTRRAVCNFSM6AAAAABFPSFSAWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZRGM3TSNJUHA. You are receiving this because you commented.Message ID: @.***>

jnoske commented 3 months ago

Sorry my mistake. I am typing /abc/ab/UniDesign/UniDesign to execute the binary that was a typo in my response.

Best, Jakob

tommyhuangthu commented 3 months ago

Then it is interesting that you have such an issue. Both relative and absolute paths work fine on my PC and clusters. So, I guess it should not be a problem from the program itself.

Best wishes, Xiaoqiang

From: Jakob Noske @.> Sent: Wednesday, April 3, 2024 06:05 To: tommyhuangthu/UniDesign @.> Cc: Xiaoqiang Huang @.>; Comment @.> Subject: Re: [tommyhuangthu/UniDesign] File path issues (Issue #2)

Sorry my mistake. I am typing /abc/ab/UniDesign/UniDesign to execute the binary that was a typo in my response.

Best, Jakob

— Reply to this email directly, view it on GitHubhttps://github.com/tommyhuangthu/UniDesign/issues/2#issuecomment-2034136286, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIUXW3AFDBRSU7FOJC4GWGLY3PH3JAVCNFSM6AAAAABFPSFSAWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZUGEZTMMRYGY. You are receiving this because you commented.Message ID: @.**@.>>

jnoske commented 3 months ago

Ok, maybe it is a problem related to my system then. Interestingly, I dont experience it when I am trying to run EvoEF. But I experience it with EvoEF2 and UniDesign.

Thank you for the help anyway!