-
Notifications
You must be signed in to change notification settings - Fork 14
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
path_rel2abs breaks python venv #64
Comments
We use Maybe we can replace this function completely with a combination of |
I think this approach can work. Though, what's the reason for converting it to an absolute path? Because I think the simplest is to just not touch the --target-runner-launcher argument and just call it as it (such as with system2). |
The main reason is informational to help debugging problems and for reproducibility. Before we converted the paths to absolute, it was not uncommon that users will get their relative paths messed up. Also it is not uncommon to have "tune-v1/target-runner" and "tuner-v2/target-runner", but if you provide "./target-runner", then you cannot know what you ran just looking at the |
Could you test the last commit? I added a fix that I hope will solve this. |
I think the logic works, but it didn't work in practice. It hangs, probably due to a bug in For now, is there a way |
Does the bug trigger with |
The bug doesn't trigger with If you split the function into two, would you consider just leaving --target-runner-launcher as is? system2 would do the right thing. And if the users mess up their relative paths for this, it can only happen before irace is called so converting it to an absolute path won't really help. |
OK, try with the latest version. The problem is when the call by Also, users will be surprised if Also, I do not really trust Also, it saves some CPU time to search the executable in PATH once and save its absolute path rather than let |
I see. Thanks for the explanation. That makes sense. Sorry, the latest version still doesn't work. I got confused and I meant that |
Could you try with the latest revision? |
Yep, the latest version works. |
My target runner is a python script, after I activate a virtual environment, I call irace with
This is incorrect because it cause the python script to be unable to find the installed modules in the virtual environment. I expect irace to call targetRunner with
For context,
I suspect this is because
path_real2labs
follows symlinks. I don't think it should because there is information in a symlink. In this case, it tells python to look for the installed python modules in the virtual environment.The text was updated successfully, but these errors were encountered: