Skip to content
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

Fixing Python2 compatibility issues. Adding inline docs #3656

Merged
merged 2 commits into from
Dec 29, 2018

Conversation

devin-petersohn
Copy link
Member

What do these changes do?

Fixes compatibility issues introduced in #3591

Related issue number

Resolves #3652

# on a directory may not own it. The chmod is attempted whether the
# directory is new or not to avoid race conditions.
# ray-project/ray/#3591
if e.errno == errno.EACCES:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I try this locally, the error I get is errno.EPERM. Maybe add that in as well?

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/10484/
Test FAILed.

@richardliaw
Copy link
Contributor

richardliaw commented Dec 28, 2018 via email

@devin-petersohn
Copy link
Member Author

@robertnishihara Sure, I will add it.

@richardliaw Testing would require two users and a script similar to that in #3590. Does travis have multiple users we can su as?

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/10490/
Test FAILed.

@robertnishihara
Copy link
Collaborator

In this case, I don't think the test is necessary.

But @devin-petersohn I think it should be possible to do something like sudo mkdir /tmp/ray` and then run tests (tests are run without root privileges I believe).

@robertnishihara robertnishihara merged commit eb1e5fa into ray-project:master Dec 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PermissionError not defined in Python 2.7
4 participants