question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`ida_settings` not compatible with Python 2.7

See original GitHub issue

Description

Error in dependent library, but tracking here for awareness.

...
    import ida_settings
  File "C:\Python27\lib\site-packages\ida_settings\__init__.py", line 1, in <module>
    from .ida_settings import IDASettings, PermissionError
  File "C:\Python27\lib\site-packages\ida_settings\ida_settings.py", line 174
    class IDASettingsInterface(metaclass=abc.ABCMeta):
                                        ^
SyntaxError: invalid syntax

Fix with:

@six.add_metaclass(abc.ABCMeta)
class IDASettingsInterface():

via https://stackoverflow.com/questions/35673474/using-abc-abcmeta-in-a-way-it-is-compatible-both-with-python-2-7-and-python-3-5

Steps to Reproduce

Setup IDA plugin and open IDA that uses Python 2.7.

Actual behavior:

Error when loading ida-settings

Versions

IDA with Python 2.7

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
williballenthincommented, Sep 9, 2020

@mr-tz @mike-hunhoff i’ve added you both as collaborators to ida-settings. please feel welcomed to make any changes there that are needed for capa. you can do a release to cause gh actions to push a package to pypi.

1reaction
williballenthincommented, Sep 9, 2020

in theory this should be fixed in https://github.com/fireeye/capa/commit/8cd90e5c2d49ad11aba52b643bb8b33912e4b073 by bumping ida-settings to v2.1.0

when you have a moment, can someone verify on 2.7?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ida_settings not compatible with Python 2.7 #297 - GitHub
Setup IDA plugin and open IDA that uses Python 2.7. Actual behavior: Error when loading ida-settings. Versions. IDA with Python 2.7.
Read more >
On the old python 2.7.5 version, the pip install package does ...
I have Python 2.7.5 and pip 20.2.4 installed on my computer. When I use the pip install command it gives an SSL connection...
Read more >
can't install pip anymore with python 2.7? - Stack Overflow
Is this script only compatible with Python 2.7? Try to update the script to a non-deprecated version, then run it. Open the Python...
Read more >
Cheat Sheet: Writing Python 2-3 compatible code
Easy, clean, reliable Python 2/3 compatibility ... The futurize and python-modernize tools do not currently offer an option to do this automatically.
Read more >
How is Python 2 supported in RHEL after 2020?
No translations currently exist. Environment. Red Hat Enterprise Linux; Python 2 programming language provided by python or python2 or similar ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found