Package Details: python-yappi 1.3.5-1

Git Clone URL: https://aur.archlinux.org/python-yappi.git (read-only, click to copy)
Package Base: python-yappi
Description: Yet Another Python Profiler, but this time thread&coroutine aware.
Upstream URL: https://github.com/sumerc/yappi
Licenses: MIT
Submitter: fab31
Maintainer: morguldir
Last Packager: morguldir
Votes: 10
Popularity: 0.000467
First Submitted: 2012-11-12 15:43 (UTC)
Last Updated: 2022-06-07 02:33 (UTC)

Latest Comments

kemelzaidan commented on 2022-10-28 19:53 (UTC)

I cannot upgrade from 1.3.3-1 to latest 1.3.5. The check stage is failling:

==> Iniciando check()...
Running following tests: ['test_functionality', 'test_hooks', 'test_tags', 'test_asyncio', 'test_asyncio_context_vars']
test_functionality (unittest.loader._FailedTest) ... ERROR
test_bad_input (test_hooks.ContextIdCallbackTest) ... ERROR
test_callback (test_hooks.ContextIdCallbackTest) ... ERROR
test_callback_error (test_hooks.ContextIdCallbackTest) ... ERROR
test_callback_non_integer (test_hooks.ContextIdCallbackTest) ... ERROR
test_clear_callback (test_hooks.ContextIdCallbackTest) ... ERROR
test_pause_resume (test_hooks.ContextIdCallbackTest) ... ERROR
test_profile_single_context (test_hooks.ContextIdCallbackTest) ... ERROR
test_bad_input (test_hooks.ContextNameCallbackTest) ... ERROR
test_callback (test_hooks.ContextNameCallbackTest) ... ERROR
test_callback_error (test_hooks.ContextNameCallbackTest) ... ERROR
test_callback_non_string (test_hooks.ContextNameCallbackTest) ... ERROR
test_callback_none_return (test_hooks.ContextNameCallbackTest) ... ERROR
test_clear_callback (test_hooks.ContextNameCallbackTest) ... ERROR
test_tagging_cputime (test_tags.MultiThreadTests) ... ERROR
test_tagging_walltime (test_tags.MultiThreadTests) ... ERROR
test_invalid_tag (test_tags.SingleThreadTests) ... ERROR
test_simple_tagging (test_tags.SingleThreadTests) ... ERROR
test_basic (test_asyncio.MultiThreadTests) ... ERROR
test_basic_old_style (test_asyncio.SingleThreadTests) ... ERROR
test_issue58 (test_asyncio.SingleThreadTests) ... ERROR
test_recursive_coroutine (test_asyncio.SingleThreadTests) ... ERROR
test_async_cpu (test_asyncio_context_vars.AsyncUsage) ... ERROR
test_async_wall (test_asyncio_context_vars.AsyncUsage) ... ERROR
test_async_cpu (test_asyncio_context_vars.AsyncUsageThreaded) ... ERROR
test_async_wall (test_asyncio_context_vars.AsyncUsageThreaded) ... ERROR
test_async_cpu (test_asyncio_context_vars.AsyncUsageThreadedWithContextvars) ... ERROR
test_async_wall (test_asyncio_context_vars.AsyncUsageThreadedWithContextvars) ... ERROR
test_async_cpu (test_asyncio_context_vars.AsyncUsageThreadedWithContextvarsSelfContained) ... ERROR
test_async_wall (test_asyncio_context_vars.AsyncUsageThreadedWithContextvarsSelfContained) ... ERROR
test_async_cpu (test_asyncio_context_vars.AsyncUsageWithContextvars) ... ERROR
test_async_wall (test_asyncio_context_vars.AsyncUsageWithContextvars) ... ERROR

======================================================================
ERROR: test_functionality (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_functionality
Traceback (most recent call last):
  File "/usr/lib/python3.10/unittest/loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/test_functionality.py", line 7, in <module>
    import _yappi
ModuleNotFoundError: No module named '_yappi'


======================================================================
ERROR: test_bad_input (test_hooks.ContextIdCallbackTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_callback (test_hooks.ContextIdCallbackTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_callback_error (test_hooks.ContextIdCallbackTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_callback_non_integer (test_hooks.ContextIdCallbackTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_clear_callback (test_hooks.ContextIdCallbackTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_pause_resume (test_hooks.ContextIdCallbackTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_profile_single_context (test_hooks.ContextIdCallbackTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_bad_input (test_hooks.ContextNameCallbackTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_callback (test_hooks.ContextNameCallbackTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_callback_error (test_hooks.ContextNameCallbackTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_callback_non_string (test_hooks.ContextNameCallbackTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_callback_none_return (test_hooks.ContextNameCallbackTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_clear_callback (test_hooks.ContextNameCallbackTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_tagging_cputime (test_tags.MultiThreadTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_tagging_walltime (test_tags.MultiThreadTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_invalid_tag (test_tags.SingleThreadTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_simple_tagging (test_tags.SingleThreadTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_basic (test_asyncio.MultiThreadTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_basic_old_style (test_asyncio.SingleThreadTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_issue58 (test_asyncio.SingleThreadTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_recursive_coroutine (test_asyncio.SingleThreadTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_async_cpu (test_asyncio_context_vars.AsyncUsage)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_async_wall (test_asyncio_context_vars.AsyncUsage)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_async_cpu (test_asyncio_context_vars.AsyncUsageThreaded)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_async_wall (test_asyncio_context_vars.AsyncUsageThreaded)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_async_cpu (test_asyncio_context_vars.AsyncUsageThreadedWithContextvars)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_async_wall (test_asyncio_context_vars.AsyncUsageThreadedWithContextvars)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_async_cpu (test_asyncio_context_vars.AsyncUsageThreadedWithContextvarsSelfContained)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_async_wall (test_asyncio_context_vars.AsyncUsageThreadedWithContextvarsSelfContained)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_async_cpu (test_asyncio_context_vars.AsyncUsageWithContextvars)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

======================================================================
ERROR: test_async_wall (test_asyncio_context_vars.AsyncUsageWithContextvars)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kemel/devel/src/aur/python-yappi/src/yappi-release/tests/utils.py", line 11, in setUp
    yappi.stop()
AttributeError: module 'yappi' has no attribute 'stop'

----------------------------------------------------------------------
Ran 32 tests in 0.002s

FAILED (errors=32)
==> ERRO: Uma falha ocorreu em check().
    Abortando...

1ri commented on 2022-07-15 16:47 (UTC) (edited on 2022-07-15 16:50 (UTC) by 1ri)

The package doesn't install for me without the patch. I get this error:

======================================================================
ERROR: test_run_as_script (test_functionality.BasicUsage)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/yappi/tests/test_functionality.py", line 366, in test_run_as_script
    p = subprocess.Popen(
  File "/usr/lib/python3.10/subprocess.py", line 966, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.10/subprocess.py", line 1842, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'yappi'

----------------------------------------------------------------------

morguldir commented on 2022-06-12 14:46 (UTC)

I already removed it when I bumped the version because it wasn't necessary anymore

moonbig commented on 2022-06-12 13:09 (UTC)

I think skip-test.patch is no longer working. It may be due to change in line number in new version 1.3.5.

sjondebok commented on 2021-12-14 13:06 (UTC)

Maintainer: please take notice:

I had an issue installing this package. Help was provided on the Arch linux forum: https://bbs.archlinux.org/viewtopic.php?pid=2008773#p2008773. This solved the problem for me.

nopreserveroot commented on 2019-11-20 16:56 (UTC)

The PKGBUILD doesn't work (makedepends can not be set inside a package function). Also, the license is now shipped with the PyPi distribution.

xsmile commented on 2017-10-07 20:44 (UTC)

PKGBUILD for 0.98: https://hastebin.com/wisotenasi.bash

rpodgorny commented on 2014-06-28 22:01 (UTC)

please update or disown. thank you.