afortunado-aceptado / Rudra

This repo is for our submission for ICSE 2025.
18 stars 6 forks source link

not enough values to unpack(expected 3,got 1) #1

Closed xueluna closed 4 months ago

xueluna commented 4 months ago

When running the code,it met problem : in Rudra\main\run.py,line 103,in jumpovercondition [contest,,_]=dir_info.split(os.sep) ValueError:not enough values to unpacked(expected 3,got 1)

2ira commented 4 months ago

Maybe the operating system is different, os.sep is a constant that represents the character used to separate components in a file path for the current operating system. It is typically '/' on Unix and Linux systems, and '' on Windows systems. When defining sep = '/' to expect a Unix/Linux-style path separator, it creates a hardcoded separator that may not match the behavior of native path-handling functions if run on a different OS.You can check your version,print your split component and modify to fix it.

xueluna commented 4 months ago

Maybe the operating system is different, os.sep is a constant that represents the character used to separate components in a file path for the current operating system. It is typically '/' on Unix and Linux systems, and '' on Windows systems. When defining sep = '/' to expect a Unix/Linux-style path separator, it creates a hardcoded separator that may not match the behavior of native path-handling functions if run on a different OS.You can check your version,print your split component and modify to fix it.

Thanks,the issue has been solved.