-
Notifications
You must be signed in to change notification settings - Fork 39
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
Create /tests
folder, remove canvas
polyfill
#109
Conversation
This looks great, excited to merge! @gohai would have time to review as a second pair of eyes? |
@ziyuan-linn and I are reviewing this together and the tests run on my machine but not his... I'm going to merge this but we will continue to investigate. I'll note that I had to run |
I am getting an error doing
From the detailed error message, I am getting the sense that it might be related to me not having Xcode installed? (see also) (I do have the command-line build tools, though)
@lindapaiste Since probably a lot of people will run into this issue: what's your thought of moving
.. but the installation process continues with:
|
@gohai just curious does running this command fix the error? npm rebuild @tensorflow/tfjs-node --build-addon-from-source |
@gohai I'm not sure if this is the same issue, but removing any spaces in the directory names containing the project fixed the issue for me. |
I filed an issue with tfjs here. I got the same error when I ran In the Readme there is a mention that Python 2.7 is needed - hoping it's not that, which would make it very difficult for people to get going.. |
We could consider removing @gohai I definitely appreciate you calling out the difficult dependencies. This is another situation where I've previously installed that package on my computer so it installs easily for me and I forget that there was some complicated setup required at some point in the past. |
@lindapaiste If using the main/browser version is an option, then I think we should go with that. (If there are some additional, more intricate setup steps needed, perhaps we could put it into a |
This is causing issues during install on machines (that don't have Xcode installed?). As @lindapaiste wrote in #109: We could consider (..) running the tests using the main/browser version. We will get warnings in the console about how we should be using the Node version, but I get a lot of those still even when I try to use the Node version.
This is causing issues during install on machines (that don't have Xcode installed?). As @lindapaiste wrote in #109: We could consider (..) running the tests using the main/browser version. We will get warnings in the console about how we should be using the Node version, but I get a lot of those still even when I try to use the Node version.
Fixes #97
Implements @gohai's recommendations in #82 (comment)
Changes:
/tests
./coverage
folder.jest.config.js
).package.json
since it is no longer at the root.<rootDir>
syntax./unit
folder./integration
folder for tests requiring a browser. These are not run at the moment and will need to be set up in a future PR.canvas
package - fixes Error installing dependencies #97setupTests.js
file./integration
folder.package.json
.