-
Notifications
You must be signed in to change notification settings - Fork 30
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
Local package build: wizmap.js not found #8
Comments
From the comments in |
u need to have node.js/npm |
I do have node.js and npm, and all JS dependencies installed, but when I build the notebook-widget locally, it still does not include the wizmap.js file. This is what I have done: $ npm install
npm WARN deprecated @types/[email protected]: This is a stub types definition. sass provides its own type definitions, so you do not need this installed.
npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
npm WARN deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
added 384 packages, and audited 385 packages in 29s
52 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities So I build the notebook: $ cd notebook-widget
$ python3 -m build --wheel
* Creating virtualenv isolated environment...
* Installing packages in isolated environment... (setuptools >= 40.8.0, wheel)
* Getting build dependencies for wheel...
[...]
Successfully built wizmap-0.1.2-py2.py3-none-any.whl However, the resulting Wheel does not contain the $ unzip -t dist/wizmap-0.1.2-py2.py3-none-any.whl | grep wizmap.js Consequently, when I install the package, $ pip install .
$ ls .venv/lib/python3.11/site-packages/wizmap | grep wizmap.js With the pip package that you have provided, on the other hand, $ ls .venv/lib/python3.11/site-packages/wizmap | grep wizmap.js
wizmap.js Would you mind sharing the commands to use for building the Python package? |
That works, thanks! Now I can also confirm that my changes in PR #11 work as expected. |
I am trying to add an option for customized stopwords (#6), but struggling to install a local version of the Python widget.
Here is how I try (after changing
wizmap.py
):However, when I try to import wizmap in Python, I get this error:
Note: I have replaced the full path to my local
wizmap
repository by...
in the output above for brevity.This works fine with the
wizmap
version 0.1.2 installed withpip install wizmap
.Is there anything else I need to run for building the Python package locally?
The text was updated successfully, but these errors were encountered: