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 for windows installation #7341 #8122

Merged
merged 3 commits into from Jan 9, 2024

Conversation

0x5ca1ab1e
Copy link
Contributor

@0x5ca1ab1e 0x5ca1ab1e commented Jan 8, 2024

(Edit: Added one more commit, the mkdir function on my patch was misussed on the async call)

Fix a problem with the installation on windows.
My problem on windows was that ./lib/napi-v9 directory didn't exist and ./scripts/deps-stage.js on line 60 needed the path to symlink or copy the dll.

My fix was to make sure that the directory napi-v9 exists with: fs.mkdir(path.dirname(destLibTensorFlowPath), {recursive: true});

I'm solving the copy issue with this code.

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.

Fix a problem with the installation on windows.
My problem on windows was that `./lib/napi-v9` directory didn't exist and `./scripts/deps-stage.js` on line **60** needed the path to symlink or copy the dll. 

My fix was to make sure that the directory `napi-v9` exists with:
`await fs.mkdir(path.dirname(destLibTensorFlowPath), {recursive: true})`;

I'm solving the copy issue with this code.
@pyu10055
Copy link
Collaborator

pyu10055 commented Jan 8, 2024

/gcbrun

@0x5ca1ab1e 0x5ca1ab1e closed this Jan 9, 2024
@0x5ca1ab1e 0x5ca1ab1e reopened this Jan 9, 2024
Copy link
Member

@mattsoulanille mattsoulanille left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

For other reviewers, {recursive: true} prevents mkdir from throwing errors if the directory exists.

@mattsoulanille mattsoulanille enabled auto-merge (squash) January 9, 2024 19:51
@mattsoulanille
Copy link
Member

/gcbrun

@mattsoulanille mattsoulanille merged commit f224f1d into tensorflow:master Jan 9, 2024
2 checks passed
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.

None yet

3 participants