Skip to content
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

3.12 Compatability Issue #173

Open
Gieberzo opened this issue Oct 7, 2024 · 1 comment
Open

3.12 Compatability Issue #173

Gieberzo opened this issue Oct 7, 2024 · 1 comment

Comments

@Gieberzo
Copy link

Gieberzo commented Oct 7, 2024

This code relies on the "imp" module which is deprecated in 3.12 as seen here. https://discuss.python.org/t/how-do-i-migrate-from-imp/27885

See below for traceback when trying to run the module on 3.12

Traceback (most recent call last):
File "C:\Users\MGIEPERT\OneDrive - azureford\Documents\programming\catc\catc_demo.py", line 1, in
from dnacentersdk import api
File "C:\Users\MGIEPERT\AppData\Local\Programs\Python\Python312\Lib\site-packages\dnacentersdk_init_.py", line 30, in
from .api import DNACenterAPI
File "C:\Users\MGIEPERT\AppData\Local\Programs\Python\Python312\Lib\site-packages\dnacentersdk\api_init_.py", line 39, in
from dnacentersdk.restsession import RestSession
File "C:\Users\MGIEPERT\AppData\Local\Programs\Python\Python312\Lib\site-packages\dnacentersdk\restsession.py", line 27, in
from future import standard_library
File "C:\Users\MGIEPERT\AppData\Local\Programs\Python\Python312\Lib\site-packages\future\standard_library_init_.py", line 65, in
import imp
ModuleNotFoundError: No module named 'imp'

@JosePabloOcampo1212
Copy link
Collaborator

The replacement was carried out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants