Hi. Once I tried to build it but it requires missing dependencies. Please, add npm and jupyterlab.
Thanks.
Git Clone URL: | https://aur.archlinux.org/python-plotly.git (read-only, click to copy) |
---|---|
Package Base: | python-plotly |
Description: | An open-source, interactive graphing library |
Upstream URL: | https://github.com/plotly/plotly.py |
Keywords: | chart plot python |
Licenses: | MIT |
Submitter: | fclad |
Maintainer: | greyltc (bertptrs) |
Last Packager: | bertptrs |
Votes: | 39 |
Popularity: | 0.83 |
First Submitted: | 2015-12-07 14:53 (UTC) |
Last Updated: | 2024-05-01 15:39 (UTC) |
Hi. Once I tried to build it but it requires missing dependencies. Please, add npm and jupyterlab.
Thanks.
It seems additional dependencies are needed for 5.0.0.
==> Starting build()...
running build
running build_py
running jsdeps
`npm` unavailable. If you're running this command using sudo, make sure `npm` is available to sudo
rebuilding js and css failed
missing files: ['/home/moshiur/.cache/paru/clone/python-plotly/src/plotly.py-5.0.0/packages/python/plotly/jupyterlab_plotly/nbextension/index.js', '/home/moshiur/.cache/paru/clone/python-plotly/src/plotly.py-5.0.0/packages/python/plotly/jupyterlab_plotly/labextension/package.json']
Traceback (most recent call last):
File "/home/moshiur/.cache/paru/clone/python-plotly/src/plotly.py-5.0.0/packages/python/plotly/setup.py", line 493, in <module>
setup(
File "/usr/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.9/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.9/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3.9/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.9/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/moshiur/.cache/paru/clone/python-plotly/src/plotly.py-5.0.0/packages/python/plotly/setup.py", line 102, in run
raise e
File "/home/moshiur/.cache/paru/clone/python-plotly/src/plotly.py-5.0.0/packages/python/plotly/setup.py", line 95, in run
self.distribution.run_command("jsdeps")
File "/usr/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/moshiur/.cache/paru/clone/python-plotly/src/plotly.py-5.0.0/packages/python/plotly/setup.py", line 201, in run
raise ValueError(msg)
ValueError: Missing file: /home/moshiur/.cache/paru/clone/python-plotly/src/plotly.py-5.0.0/packages/python/plotly/jupyterlab_plotly/nbextension/index.js
npm is required to build a development version of jupyterlab-plotly
==> ERROR: A failure occurred in build().
Aborting...
error: failed to build 'python-plotly-5.0.0-1':
error: packages failed to buid: python-plotly-5.0.0-1
I've seen the light on renaming the source tarball! Apparently some people like to archive all their source fetches in one folder. That means something like v4.9.0.tar.gz
could conflict with some other package's tarball.
Hi @NicoHood, just noticed your comment here.
- I haven't noticed the need to explicitly rename the archives my PKGBUILDs download too often (only rarely when I'm downloading from some place that doesn't put the version number in the filename). GitHub seems to follow sane naming conventions, so maybe that's why. If github starts giving me tarballs without version numbers in their filenames, I'll start using the rename feature here.
- Yeah. I like to fetch the sources from github whenever I can. No real reason other than it being a domain I trust and an interface I'm familiar with. It even looks like maybe the development of this thing takes place there.
- I think the deps are correct. Happy to try to fix them if they're wrong.
- I didn't actively remove the contributor lines form the PKGBUILD. I chucked the entire thing and made a new one from scratch.
- Thanks for the reminder on the checksum. I'm happy to use sha512 if you'd like. Fixed.
Cheers!
@greyltc thanks for adopting this package. I had a quick look at the changes and found a few improvements that I want to suggest:
Good job, well done!
Why not just drop python2 support?
Same issue with conflicting files. Please make a separate packagae for python2-plotly. Thank you !
There's still a problem with conflicting files, since the package tries to install both python-plotly and python2-plotly. I don't know if that's intended (since there's a separate package python2-plotly in AUR) but removing the code for python2-plotly from the PKGCONFIG fixes the installation for me.
Sorry for the delay! Please check if the package works properly.
Version 4.1.0
relased on Aug 7th. Do you have any problems in upgrading this package? I need some new features of the new version, please. Thank you.
Pinned Comments
bertptrs commented on 2022-09-15 16:29 (UTC) (edited on 2022-09-15 18:53 (UTC) by bertptrs)
Please don't abuse the out of date flag whenever the source checksums are incorrect. The unfortunate reality is that the upstream Github tarball changes every once in a while. I don't know why; the commit tagged doesn't change. It might be a bug in Github.
I'm working on an alternative packaging that removes the Github sources (and expensive webpack compilation) to work around the issue. In the meantime, the source checksums may be wrong sometimes. Sorry about that.