trolldbois / python-haystack

Process heap analysis framework - Windows/Linux - record type inference and forensics
http://trolldbois.blogspot.com/search?q=python-haystack
GNU General Public License v3.0
94 stars 33 forks source link

clang2py installation on Windows: clang>=3.7 #28

Closed rchateauneu closed 8 years ago

rchateauneu commented 8 years ago

I try to install clang2py as indicated here: https://pypi.python.org/pypi/ctypeslib2/2.1.4

There is a dependency problem for clang >=3.7 and a workaround for Unix. But what must be done for Windows ? Here is the result of the pip install:

C:\Users\rchateau>pip install ctypeslib2 Collecting ctypeslib2 Downloading ctypeslib2-2.1.4.tar.gz (46kB) 100% |################################| 51kB 1.7MB/s Collecting clang>=3.7 (from ctypeslib2) Could not find a version that satisfies the requirement clang>=3.7 (from ctypeslib2) (from versions: 3.3-svn191928, 3.2, 3.3, 3.4. dev192547, 3.4, 3.5, 3.7.dev234764, 3.7.dev234765) No matching distribution found for clang>=3.7 (from ctypeslib2)

trolldbois commented 8 years ago

python-clang is not distributed by upstream using pip. the pypi package is (sadly) mine and had not been updated in a while :(

http://clang.llvm.org/get_started.html http://llvm.org/releases/download.html

you will need to follow's LLVM Clang instruction for windows, and install the python bindings from there. I honestly have no idea if the python bindings are distributed in the clang windows install. You might have to install the python bindings from LLVM clang source.

I will publish an updated python-clang from upstream on pypi when I have 5 minutes

trolldbois commented 8 years ago

what about now ? I uploaded a 3.7 and 3.8 python bindings package

trolldbois commented 8 years ago

I take it this is solved

rchateauneu commented 8 years ago

Yes, sorry for the late answer. Writing by hand ctypes file is a good solution because one can focus on constraints etc...

On Sun, Mar 13, 2016 at 3:19 AM, Loic Jaquemet notifications@github.com wrote:

Closed #28 https://github.com/trolldbois/python-haystack/issues/28.

— Reply to this email directly or view it on GitHub https://github.com/trolldbois/python-haystack/issues/28#event-587630121.

GERMANOCARELLA commented 7 years ago

Sorry, maybe I wrong something. I installed ctypeslib2 from pypy and I ran clang2py on windows. I ran clang2py test.h but clang2py goes into infinite loop and doesn't close. Where I can find a clang2py version for windows? There is a link?

trolldbois commented 7 years ago

Sorry, I won't be able to support for a few months. Can you try to pinpoint the bug ? Get more logs ? ( Debug option )

On Oct 26, 2016 03:57, "GERMANOCARELLA" notifications@github.com wrote:

Sorry, maybe I wrong something. I installed ctypeslib2 from pypy and I ran clang2py on windows. I ran clang2py test.h but clang2py goes into infinite loop and doesn't close. Where I can find a clang2py version for windows? There is a link?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/trolldbois/python-haystack/issues/28#issuecomment-256157960, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJoeyeiTd0STOWBD8GDH6ntzGPlUiGSks5q3l8ogaJpZM4HsOlJ .