Package Details: python-scalene-git r2002.1fea191-3

Git Clone URL: (read-only, click to copy)
Package Base: python-scalene-git
Description: Scalene is a high-performance, high-precision CPU and memory profiler for Python
Upstream URL:
Keywords: optimization profiling python
Licenses: Apache-2.0
Provides: python-scalene
Submitter: wbthomason
Maintainer: None
Last Packager: wbthomason
Votes: 3
Popularity: 0.034828
First Submitted: 2020-05-19 17:45 (UTC)
Last Updated: 2022-09-26 22:31 (UTC)

Latest Comments

wbthomason commented on 2023-01-07 22:48 (UTC)

I've spent a while trying to get this build to work again, and continue to run into issues. I'm going to orphan the package in case anyone else has gotten this working; I may re-adopt it in the future if I have more time to maintain this. Otherwise, I recommend using the pip or conda installation options.

wbthomason commented on 2022-12-06 07:15 (UTC) (edited on 2022-12-06 07:18 (UTC) by wbthomason)

@rpodgorny: I think you're right. I need to figure out how to add that dependency, as there's no AUR package and scalene seems to depend on this specific fork:

Frankly, it may be better to orphan the package and prefer the more common (and supported) pip/conda installation.

rpodgorny commented on 2022-12-01 09:12 (UTC) (edited on 2022-12-01 09:12 (UTC) by rpodgorny)

...maybe missing dep?

Traceback (most recent call last):
  File "/usr/bin/scalene", line 33, in <module>
    sys.exit(load_entry_point('scalene==1.5.15', 'console_scripts', 'scalene')())
  File "/usr/bin/scalene", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.10/importlib/metadata/", line 171, in load
    module = import_module('module'))
  File "/usr/lib/python3.10/importlib/", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.10/site-packages/scalene/", line 4, in <module>
    from scalene import scalene_profiler
  File "/usr/lib/python3.10/site-packages/scalene/", line 61, in <module>
    from scalene.scalene_json import ScaleneJSON
  File "/usr/lib/python3.10/site-packages/scalene/", line 9, in <module>
    from crdp import rdp
ModuleNotFoundError: No module named 'crdp'

cyberic commented on 2021-10-22 08:33 (UTC)

Do you get the expected result with a pip install?

no, it still fails the same way

wbthomason commented on 2021-10-22 08:10 (UTC)

@cyberic: Do you get the expected result with a pip install? If so, there's still something wrong with the PKGBUILD (it seems the scalene build process may have changed significantly from my initial packaging).

cyberic commented on 2021-10-22 07:54 (UTC)

Thnak you @wbthomason, I could compile scalene successfully now.

but event on a simple python script, it does nothing, I don't get the prompt back...

maybe I'll report this upstream

wbthomason commented on 2021-10-21 22:19 (UTC)

@cyberic: I just now updated the PKGBUILD, which installs & allows scalene to run for me. Please let me know if you're still having problems.

cyberic commented on 2021-10-21 21:57 (UTC)

Hello I just tried to install this package, and I get this error:

==> Starting prepare()...
==> Starting pkgver()...
==> Updated version: python-scalene-git r2002.1fea191-1
==> Starting build()...
mkdir -p vendor && cd vendor && git clone
mkdir -p vendor && cd vendor && git clone
Cloning into 'Heap-Layers'...
Cloning into 'printf'...
remote: Enumerating objects: 526, done.
remote: Counting objects: 100% (159/159), done.
remote: Enumerating objects: 2493, done.
remote: Compressing objects: 100% (10/10), done.
remote: Counting objects: 100% (640/640), done.
remote: Compressing objects: 100% (394/394), done.
remote: Total 526 (delta 152), reused 149 (delta 149), pack-reused 367
Receiving objects: 100% (526/526), 481.04 KiB | 1.91 MiB/s, done.
Resolving deltas: 100% (313/313), done.
cd vendor/printf && ln -s printf.c printf.cpp
remote: Total 2493 (delta 386), reused 400 (delta 243), pack-reused 1853
Receiving objects: 100% (2493/2493), 917.09 KiB | 3.46 MiB/s, done.
sed -i -e 's/^#define printf printf_/\/\/&/' vendor/printf/printf.h
Resolving deltas: 100% (1604/1604), done.
g++ -std=c++17 -g -O3 -DNDEBUG -D_REENTRANT=1 -pipe -fno-builtin-malloc -fvisibility=hidden -fPIC -shared -Bsymbolic -Isrc -Isrc/include -Ivendor/Heap-Layers -Ivendor/Heap-Layers/wrappers -Ivendor/Heap-Layers/utility -Ivendor/printf -I/usr/include/python3.9 -I/usr/include/python3.9 -I/usr/include/nptl  src/source/libscalene.cpp vendor/Heap-Layers/wrappers/gnuwrapper.cpp vendor/printf/printf.cpp -o scalene/ -ldl -lpthread
==> Entering fakeroot environment...
==> Starting package()...
install: cannot stat '': No such file or directory

wbthomason commented on 2020-10-23 21:11 (UTC)

@caos21: Thanks! I've updated the dependencies.

caos21 commented on 2020-10-23 20:37 (UTC)

python-rich is a dependency