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

Fix py4j jar path for Windows #522

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

adoebber
Copy link

@adoebber adoebber commented Jun 7, 2023

It seems that a path is missing when searching for py4j.jar.
Fixes #521

@adoebber adoebber changed the title fixes #521 --- fix py4j jar path for Windows Fix py4j jar path for Windows Jun 7, 2023
@HyukjinKwon
Copy link
Member

I am excluding some matrix and make the tests unflaky. I will revisit once it's done

@HyukjinKwon
Copy link
Member

Sorry for the delay. Now the tests are fixed per #519. Would you mind rebasing this one please?

@adoebber adoebber force-pushed the issue-521-fix-jar-path-for-windows branch from 87cfed2 to ad36cbc Compare March 11, 2024 07:09
@adoebber
Copy link
Author

The branch is rebased now.

os.path.realpath(__file__)), "../../../../share/py4j/" + jar_file))
elif sys.platform == "win32":
# pip install py4j # On Windows without admin privileges
Copy link
Member

Choose a reason for hiding this comment

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

What happen if we install this with admin privileges?

Copy link
Author

Choose a reason for hiding this comment

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

Then it is installed in C:\Program Files\Python\share\py4j and line 202 will apply.

@adoebber
Copy link
Author

@HyukjinKwon Would you like to close the PR now?

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.

Could not find py4j jar when installed with pip install on Windows
2 participants