Package Details: python-plotly 5.21.0-1

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: 1.00
First Submitted: 2015-12-07 14:53 (UTC)
Last Updated: 2024-04-17 20:17 (UTC)

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.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 Next › Last »

gps1539 commented on 2021-12-14 15:12 (UTC) (edited on 2021-12-14 15:16 (UTC) by gps1539)

After updating to python 3.10.1 I could not import plotly

aur/python-plotly 5.4.0-1 (+29 0.01) (Installed)

import plotly.graph_objects as go Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'plotly'

It seems there are issues with python 3.10.1 as reported by others. I downgraded back to 3.10.0 (which fixed issues with other python code), but I still can not import plotly.

I uninstalled aur/python-plotly and then pip installed and I can now import plotly. However I use plotly is stock_quote (currently broken) which I maintain the code and the aur package, any clues on this issue?

Neros commented on 2021-08-21 09:06 (UTC) (edited on 2021-08-21 21:24 (UTC) by Neros)

@bertptrs same issue with pikaur and makepkg, it's not related to yay.

EDIT: I tried to install it on my second computer and it works, I suspect an issue with npm on my primary computer, I have to find what... So, nothing wrong with the PKGBUILD for python-plotly.

EDIT 2: fixed by deleting /usr/lib/node_modules then pacman -Rcs nodejs npm jupyterlab. After that it was possible to install python-plotly normally.

bertptrs commented on 2021-08-21 07:34 (UTC)

@Neros I don't use yay but I can build it just fine using makepkg and pikaur. You can try using either of those, or building in a clean chroot.

Neros commented on 2021-08-21 03:48 (UTC)

Since the last update, I can't build it:

==> Making package: python-plotly 5.2.1-2 (Sat Aug 21 05:45:37 2021)
==> Retrieving sources...
  -> Found python-plotly-5.2.1.tar.gz
==> Validating source files with sha256sums...
    python-plotly-5.2.1.tar.gz ... Passed
==> Making package: python-plotly 5.2.1-2 (Sat Aug 21 05:45:37 2021)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found python-plotly-5.2.1.tar.gz
==> Validating source files with sha256sums...
    python-plotly-5.2.1.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting python-plotly-5.2.1.tar.gz with bsdtar
==> Sources are ready.
==> Making package: python-plotly 5.2.1-2 (Sat Aug 21 05:45:39 2021)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
running build
running build_py
running jsdeps
7.21.0
7.21.0
Installing build dependencies with npm.  This may take a while...
npm WARN old lockfile 
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile 
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile 
npm WARN deprecated crypto@1.0.1: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.
npm ERR! semver.simplifyRange is not a function

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/neros/.npm/_logs/2021-08-21T03_46_11_034Z-debug.log
rebuilding js and css failed
missing files: ['/home/neros/.cache/yay/python-plotly/src/plotly.py-5.2.1/packages/python/plotly/jupyterlab_plotly/nbextension/index.js', '/home/neros/.cache/yay/python-plotly/src/plotly.py-5.2.1/packages/python/plotly/jupyterlab_plotly/labextension/package.json']
Traceback (most recent call last):
  File "/home/neros/.cache/yay/python-plotly/src/plotly.py-5.2.1/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/neros/.cache/yay/python-plotly/src/plotly.py-5.2.1/packages/python/plotly/setup.py", line 102, in run
    raise e
  File "/home/neros/.cache/yay/python-plotly/src/plotly.py-5.2.1/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/neros/.cache/yay/python-plotly/src/plotly.py-5.2.1/packages/python/plotly/setup.py", line 182, in run
    check_call(
  File "/usr/lib/python3.9/subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['npm', 'install']' returned non-zero exit status 1.
==> ERROR: A failure occurred in build().
    Aborting...

bertptrs commented on 2021-08-17 21:19 (UTC)

@JP-Ellis thanks for the heads-up; I've updated the dependencies to reflect some more recent changes upstream.

JP-Ellis commented on 2021-08-17 07:39 (UTC) (edited on 2021-08-17 07:39 (UTC) by JP-Ellis)

It appears that the dependency python-retrying has been replaced with python-tenacity in the most recent version(s).

The change happened in this PR: https://github.com/plotly/plotly.py/pull/2911

bertptrs commented on 2021-07-02 20:48 (UTC)

Missing dependency on typescript. The build tries to call tsc at some point but it's not listed as a dependency. I think this should be a makedepends too.

moshiur_rahman commented on 2021-07-01 19:04 (UTC)

Copying the dependencies from python-plotly-git works fine for me. Also jupyterlab should be a make dependency as is the case for python-plotly-git.

bartus commented on 2021-07-01 08:24 (UTC) (edited on 2021-07-01 08:24 (UTC) by bartus)

@greyltc: still missing npm makedepends

gps1539 commented on 2021-06-28 22:55 (UTC) (edited on 2021-06-28 22:55 (UTC) by gps1539)

The new version of plotly seems to want to import the tenacity module. Can you add python-tenacity as a dependency, thanks.