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

Exception TypeError on IDA Plugin #87

Closed
luoshuijs opened this issue Jan 23, 2022 · 2 comments
Closed

Exception TypeError on IDA Plugin #87

luoshuijs opened this issue Jan 23, 2022 · 2 comments
Assignees
Labels

Comments

@luoshuijs
Copy link

luoshuijs commented Jan 23, 2022

D:\IDA_Pro_v7.5\plugins\SyncPlugin.py: unsupported operand type(s) for +: 'set' and 'tuple'
Traceback (most recent call last):
  File "D:\IDA_Pro_v7.5\python\3\ida_idaapi.py", line 616, in IDAPython_ExecScript
    exec(code, g)
  File "D:/IDA_Pro_v7.5/plugins/SyncPlugin.py", line 63, in <module>
    PYTHON_PATH = rsconfig.get_python_interpreter()
  File "D:/IDA_Pro_v7.5/plugins\retsync\rsconfig.py", line 224, in get_python_interpreter
    PYTHON_PATHS = PYTHON_PATHS + localpaths
TypeError: unsupported operand type(s) for +: 'set' and 'tuple'

PYTHON_PATHS = PYTHON_PATHS + localpaths

This is because PYTHON_PATHS is a set and localpaths is a tuple, and these two variable types do not support addition.

I commented out this line of code and after adding the following code the plugin was loaded successfully.

for localpath in localpaths:
              PYTHON_PATHS.add(localpath)
bootleg added a commit that referenced this issue Jan 23, 2022
Fixing wrong code, "+" operator not supported between set and tuple

Reported by @luoshuijs in
#87
Thank you.
@bootleg bootleg self-assigned this Jan 23, 2022
@bootleg bootleg added the bug label Jan 23, 2022
@bootleg
Copy link
Owner

bootleg commented Jan 23, 2022

Hello @luoshuijs ;

it should be fixed in the commit above, see ffb9fae

Thanks a lot for reporting it.

Just let me know if it is ok to close the issue.

@luoshuijs
Copy link
Author

Thanks for your reply and fix, I'm closing this issue.

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

No branches or pull requests

2 participants