Skip to content

dm.historical is broken on Python 3.11 on Freebsd 14.2 #410

@PythonLinks

Description

@PythonLinks

First thank you @d-maurer for this software.
It has been of great help over the years.

BUG/PROBLEM REPORT / FEATURE REQUEST

I am just upgrading my servers on FreeBSD 14.2, Python 3.11

I get the attached error message.

    from dm.historical import getHistory
  File "/opt/venv/lib/python3.11/site-packages/dm/historical/__init__.py", line 11, in 
    from .connection import Connection, hwrap
  File "/opt/venv/lib/python3.11/site-packages/dm/historical/connection.py", line 10, in 
    from inspect import getargspec
ImportError: cannot import name 'getargspec' from 'inspect' (/usr/local/lib/python3.11/inspect.py)

This issue
ethereum/web3.py#2704

says that the solution is to make the following change.

from inspect import getfullargspec as getargspec

It worked for me.

What should I do? Should I post the corrected repository on Github?

Christopher Lozinski

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions