Open om26er opened 3 years ago
interesting. thanks for digging into the individual issues! on a side note, I'm wondering why 3.10 point release triggers such a bunch of issues. but then, anyways;)
from collections import Mapping, Sequence
ok, this is probably the one most surprising to me of the 3. what's the problem with that?
cytoolz/functoolz.cpython-310-x86_64-linux-gnu.so: undefined symbol: _PyGen_Send
again, Python ABI :( cytoolz is like cffi and such stuff highly dependent on all ABI .. of CPython. which reminds me: what will PyPy do with all these issues?
ok, this is probably the one most surprising to me of the 3. what's the problem with that?
om26er@RemotePC:~$ python3.10
Python 3.10.0rc2 (default, Sep 10 2021, 14:59:37) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from collections import Mapping
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
>>>
om26er@RemotePC:~$ python3
Python 3.9.7 (default, Sep 10 2021, 14:59:43)
[GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from collections import Mapping
<stdin>:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
>>>
I have created https://github.com/crossbario/crossbar/pull/1897 to fix the collections issue and another Python 3.11 issue. Importing ABC from collections was deprecated from Python 3.4 and was removed in Python 3.10 to use collections.abc module instead.
thanks for contributing! since you're first time contributor to this project, the PR didn't start the CI automatically - done that now!
rgd vmprof and python 3.10 ^: @fijal any opinions? I mean, rather than making vmprof optional (again) in crossbar, actually making it work would be much preferred;)
vmprof is a bit unmaintained I'm afraid :/ I can probably look next week, maybe we can do a new release
^ thanks for the note! "bit unmaintained": it's unfortunate:( open source funding - same here. well.
This new tool was recently open-sourced https://github.com/bloomberg/memray, I think that is something to investigate as well.
Here is a brief summary by Yury https://twitter.com/1st1/status/1516859294896906241
This new tool was recently open-sourced https://github.com/bloomberg/memray, I think that is something to investigate as well.
Interesting! Does it work with PyPy?
this works on cpython 3.11:
pip install "vmprof @ git+https://github.com/matthiasdiener/vmprof-python.git@py311#egg=vmprof"
see:
Python 3.10 has been out for a few days. Crossbar currently does not support it. There are multiple issues
from collections import Mapping
needs to be replaced withfrom collections.abc import Mapping
(see https://github.com/crossbario/crossbar/blob/712d9da9173829be7df3ecba5dbb7981dd648fcd/crossbar/edge/personality.py#L10 (will do a PR fix that))After fixing the above imports, the next issue comes with cython