Jinmo / idapkg

Packages for IDA Pro (written in python but supports all)
MIT License
131 stars 16 forks source link

[Bug] TypeError: can't concat str to bytes in uninstaller.py #19

Closed bruce30262 closed 3 years ago

bruce30262 commented 3 years ago

idapkg's uninstaller.py suffers a traditional encoding issues while concatenating the string:

............<omitted>
  File "C:/<omitted>/idapkg-master/uninstaller.py", line 32, in <module>
    update_pythonrc()
  File "C:/<omitted>/idapkg-master/uninstaller.py", line 12, in update_pythonrc
    sep_with_ver = SEP[0] + __version__
TypeError: can't concat str to bytes

Using the code sep_with_ver = SEP[0] + __version__.encode() will fix the issue ( I'm not sure if this is the best solution though ).