Closed Stopi closed 1 year ago
OK, it is a bit unusual to have a non-accessible directory in path, but you are correct that the code could handle this.
Hi Thomas,
after having discussed more of this, I figured my issue was kind of a corner case.
The said path is accessible to me but was forbidden to the package manager. It appears this was a somewhat wrong configuration on my side which is going to be fixed pretty soon.
Anyway, you're correct: it's unusual to have a non-accessible directory in $PATH. So I guess you can consider this not being a priority.
However, I filled this bug because the error message I got was misleading. Now it's up to you to decide if it worth a fix, I've already manage to work around this issue.
Many thanks for your efforts in maintaining this lib, have a fantastic day.
Hi, I struggled a bit on Gentoo's bugzilla because I couldn't install pyfuse3 on one of my machine.
After some investigation, it appears the culprit was one personal directory in the $PATH that couldn't be reached by the package manager (portage).
I'm not a python developper, so I can't really offer a PR. However, I'd like to point out my findings and why I think this is a bug.
Consider this snippet in
setup.py
As you can see, the try/except is testing for a file to exists, but if one directory in the path isn't accessible, then the exception isn't handled and this result as a general failure.
In my environment, I didn't have a 'cython3' binary, but I had a 'cython' one. The issue here is since the script aborted while testing for 'cython3', it did not even try to look for 'cython' and just failed and exited the setup script with a:
Which is a confusing message since this binary doesn't even exist on the system, obviously it's feels wrong to display a permission error on it.
I think adding another
except
line would make this process more robust.