Package Details: python-lineprofiler 4.0.3-1

Git Clone URL: https://aur.archlinux.org/python-lineprofiler.git (read-only, click to copy)
Package Base: python-lineprofiler
Description: Line-by-line profiler
Upstream URL: https://pypi.python.org/pypi/line_profiler
Licenses: BSD
Submitter: richli
Maintainer: thrasibule
Last Packager: thrasibule
Votes: 9
Popularity: 0.000000
First Submitted: 2014-10-17 14:10 (UTC)
Last Updated: 2023-05-10 17:25 (UTC)

Latest Comments

1 2 3 Next › Last »

carsme commented on 2023-07-25 12:00 (UTC)

Also affected by the compilation error.

ilario commented on 2023-07-25 10:42 (UTC)

Just observed the compilation error reported by @lahwaacz.

Reading here https://github.com/pyutils/line_profiler/issues/204 seems that the latest version of Cython, currently, cannot be used for compiling line_profiler.

For fixing, in my opinion, we should remove "--no-isolation" from the build command in PKGBUILD until when the line_profiler will be compatible with the latest Cython version again.

Nestor_013 commented on 2023-05-08 16:04 (UTC) (edited on 2023-05-08 16:04 (UTC) by Nestor_013)

After update of PKGBUILD to 4.0.3 (thanks to maintainer), now there is:

run_tests.py: error: unrecognized arguments: --cov-config --cov-report html --cov-report term --cov-report xml --cov=line_profiler

I guess it's a missing python-pytest-cov in makedepends

Nestor_013 commented on 2023-05-08 09:32 (UTC) (edited on 2023-05-08 09:33 (UTC) by Nestor_013)

Thanks @lahwaacz.

Damned, I miss that one, that's a nuisance that pkg version does not change at least it's minor value when python changes.

Now, I end up to the same stage as you. I'll wait.

Interestingly enough, pip install line-profiler seems to work with a version 4.0.3.

lahwaacz commented on 2023-05-08 08:47 (UTC) (edited on 2023-05-08 08:47 (UTC) by lahwaacz)

@Nestor_013 You probably forgot to rebuild cython3 for Python 3.11 first.

But lineprofiler seems to be incompatible with Python 3.11, the build fails with this error:

==> Starting build()...
* Getting build dependencies for wheel...

Error compiling Cython file:
------------------------------------------------------------
...

    def __exit__(self, exc_type, exc_val, exc_tb):
        self.disable_by_count()

    def enable(self):
        PyEval_SetTrace(python_trace_callback, self)
                        ^
------------------------------------------------------------

line_profiler/_line_profiler.pyx:275:24: Cannot assign type 'int (object, PyFrameObject *, int, PyObject *) except? -1' to 'Py_tracefunc'
Compiling line_profiler/_line_profiler.pyx because it changed.
[1/1] Cythonizing line_profiler/_line_profiler.pyx
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
    main()
  File "/usr/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 335, in main
    json_out['return_val'] = hook(**hook_input['kwargs'])
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
    return hook(config_settings)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
    return self._get_build_requires(config_settings, requirements=['wheel'])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
    self.run_setup()
  File "/usr/lib/python3.11/site-packages/setuptools/build_meta.py", line 338, in run_setup
    exec(code, locals())
  File "<string>", line 235, in <module>
  File "<string>", line 222, in run_cythonize
  File "/usr/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
    cythonize_one(*args)
  File "/usr/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
    raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: line_profiler/_line_profiler.pyx

ERROR Backend subprocess exited when trying to invoke get_requires_for_build_wheel

Nestor_013 commented on 2023-05-08 08:42 (UTC) (edited on 2023-05-08 08:43 (UTC) by Nestor_013)

Hi, packaging complains about ERROR Missing dependencies: Cython>=3.0.0a11

And I've Cython 3.0.0b2 installed. I guess it's a problem in the sources, does a patch exist ?

lahwaacz commented on 2023-01-19 06:13 (UTC)

Great, thanks for clarifying it!

thrasibule commented on 2023-01-19 01:58 (UTC)

right so pydantic cython runtime dependency is wrong. There is nothing I can fix here. Luckily looks like upstream fixed it, so it's just a matter of waiting for a release: https://github.com/pydantic/pydantic/commit/f341049b9e5538a125751d75b4e44c1609b53df6.

lahwaacz commented on 2023-01-18 21:57 (UTC)

The dependency tree looks like this:

$ pactree -r cython
cython
└─python-pydantic
  └─python-inflect
    └─python-jaraco.text
      └─python-setuptools

thrasibule commented on 2023-01-18 21:42 (UTC)

I guess that's the ipython dependencies. I could make it an optdepends.