SAP / PyRFC

Asynchronous, non-blocking SAP NW RFC SDK bindings for Python
http://sap.github.io/PyRFC
Apache License 2.0
500 stars 132 forks source link

import pyrfc fails n Python 3.7 #316

Closed bsrdjan closed 8 months ago

bsrdjan commented 1 year ago

import pyrfc fails with ModuleNotFoundError: No module named 'importlib.metadata', in Python 3.7

daniel-aguilar-garcia commented 1 year ago

Hello, is there a way to avoid this error currently?

bsrdjan commented 1 year ago

Did you try manual install:

pip install importlib-metadata
s1lvester commented 11 months ago

Manual installation won't work for 3.7

importlib.metadata is only available since python 3.8 so:

from importlib import metadata

will always fail on 3.7.

Since this was introduced in 2.8.3, maybe @bsrdjan should pull that release from pypi and only supply wheels for 2.8.2 (which works with 3.7) and anything > 3.0 requires python 3.8

bsrdjan commented 8 months ago

fixed by v2.8.31