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

Installation uses deprecated python APIs and fails on Archlinux #67

Open
Alexeyan opened this issue Nov 15, 2024 · 2 comments
Open

Installation uses deprecated python APIs and fails on Archlinux #67

Alexeyan opened this issue Nov 15, 2024 · 2 comments

Comments

@Alexeyan
Copy link

Alexeyan commented Nov 15, 2024

Hi.

When trying to install it in Ida it fails with

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "<string>", line 16, in <module>
  File "/home/foo/.local/lib/python3.12/site-packages/pkg_resources/__init__.py", line 2191, in <module>
    register_finder(pkgutil.ImpImporter, find_on_path)
                    ^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?

Python 3.12 deprecated this installation method afaik.

@marc-etienne
Copy link
Contributor

marc-etienne commented Nov 15, 2024

You are right, the script uses two deprecated functions from pkg_resources:

For the first one I found this guide to use importlib instead: https://importlib-resources.readthedocs.io/en/latest/migration.html#pkg-resources-resource-filename.

I'll try to update the script.

@marc-etienne
Copy link
Contributor

BTW, I'd wait before updating to Python 3.12 in IDA, there are other issues in IDAPython which make IDA crash (see #65). Maybe this is fixed in 9.0, but I can't confirm.

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