-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
katdal does not work with python 3.12 #379
Comments
Thanks, Sean. This was already fixed in katsdptelstate 0.13 🙂 Maybe I'll add a minimum requirement in the case of Python 3.12 somewhere... |
|
May want to replace the latter with 'packaging' package. Distutils is dead
…On Wed, Apr 17, 2024, 18:21 Sean Passmoor ***@***.***> wrote:
In [4]: import katsdptelstate.rdb_reader
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Cell In[4], line 1
----> 1 import katsdptelstate.rdb_reader
File ~/ska-sa/katsdptelstate/katsdptelstate/rdb_reader.py:21
18 import os.path
19 from typing import Optional, Union, BinaryIO, cast
---> 21 from rdbtools import RdbParser, RdbCallback
23 from .errors import RdbParseError
24 from .utils import _PathType
File /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/rdbtools/__init__.py:3
1 from rdbtools.parser import RdbCallback, RdbParser, DebugCallback
2 from rdbtools.callbacks import JSONCallback, DiffCallback, ProtocolCallback, KeyValsOnlyCallback, KeysOnlyCallback
----> 3 from rdbtools.memprofiler import MemoryCallback, PrintAllKeys, StatsAggregator, PrintJustKeys
5 __version__ = '0.1.15'
6 VERSION = tuple(map(int, __version__.split('.')))
File /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/rdbtools/memprofiler.py:6
4 import random
5 import bisect
----> 6 from distutils.version import StrictVersion
7 try:
8 import ujson as json
ModuleNotFoundError: No module named 'distutils'
—
Reply to this email directly, view it on GitHub
<#379 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB4RE6WUUDF7ONUPFZRGHTLY52OQPAVCNFSM6AAAAABGLCUSICVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRRG4YDEMBRGY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
The problem actually lies with For now this can be worked around by installing Longer term I'm looking for a replacement, as documented in SPR1-3073. |
When opening a rdb file with katdal in python 3.12 I get the error
This is caused by katsdptelstate trying to import distutils in a try..except block giving the error
ModuleNotFoundError: No module named 'distutils'
that is not reported.distutils was Deprecate in python 3.10 and removed in python 3.12
https://peps.python.org/pep-0632/
I needed to install
setuptools
to fix this.The text was updated successfully, but these errors were encountered: