Commit Graph
19 Commits
Author SHA1 Message Date
pancake c129ada018 Fix some pylint issues 2026-01-14 20:34:50 +01:00
pancake 8fa6458bdc Fix crash and release 1.8.8 2024-01-11 19:01:36 +01:00
pancake f121e46c4d Simplify free call 2024-01-11 18:56:33 +01:00
pancake 98d8fe870f Fix pytest 2024-01-11 18:42:11 +01:00
pancake 617ff399f3 Fix #159 by @ret2c7 - broken python-r2pipe-native on Linux 2024-01-11 18:33:08 +01:00
pancake 12543d3eb7 oops fix native destructor for python 2023-12-12 12:25:33 +01:00
pancake 5c3a0180c7 Dont initialize native on import time 2023-12-12 12:21:50 +01:00
pancake 2b2a29c364 Fix ccall py3 support and ci testing for r2pipe.py 2021-08-18 13:15:02 +02:00
pancake 8a1ebf29dc python things 2021-08-18 11:21:24 +02:00
pancake 766840c512 r2pipe.py: Hide dlopen() error when using the native backend by accident 2020-11-28 01:21:41 +01:00
pancake 351b6a527a r2pipe.py: Do not dlopen in static import 2020-10-14 13:39:18 +02:00
Anton Kochkov 65987c58ee Reformat code with black 2020-05-25 15:08:45 +08:00
Anton Kochkov 886860dc51 Python 3 compatibility, drop Python 2 2020-05-25 15:07:56 +08:00
pancake 9b19aa732f Release r2pipe.py 0.9.9 fix native import issue 2018-02-27 12:59:31 +01:00
Andrea Fioraldi cd8ee696a6 python: added error handling where r_core library is not in path
In windows, when r_core is not accesible (ex. not in path) the installation fails because setup.py try to imports r2pipe and it generate the following execption:

  Using cached r2pipe-0.9.8.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\users\$USER\appdata\local\temp\pip-build-f8_abq\r2pipe\setup.py", line 2, in <module>
        import r2pipe
      File "r2pipe\__init__.py", line 45, in <module>
        from .native import RCore
      File "r2pipe\native.py", line 9, in <module>
        lib = WinDLL(find_library('r_core'))
      File "C:\Python27\Lib\ctypes\__init__.py", line 365, in __init__
        self._handle = _dlopen(self._name, mode)
    TypeError: expected string or Unicode object, NoneType found

This is caused by find_library('r_core') that return None.
2018-02-01 16:20:03 +01:00
Krzysztof Korościk 8d8ad19ef0 indents are now using tabs 2017-12-28 14:34:29 +01:00
Alex Kornitzer fb28992978 python: apply PEP8 rules 2017-11-29 11:13:36 +01:00
Xiangyu Zhu 6ed2b91e8c encode str when arg is c_char_p and decode for ret 2017-05-13 04:16:40 +02:00
pancake 37f60eca3a Initial implementation of r2pipe.py with native ctypes open method 2015-12-27 01:22:05 +01:00