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

get_version() access violation on clang 17.0.2 #126

Open
Andrej730 opened this issue Oct 7, 2023 · 2 comments
Open

get_version() access violation on clang 17.0.2 #126

Andrej730 opened this issue Oct 7, 2023 · 2 comments

Comments

@Andrej730
Copy link

On windows 11, using last version ctypeslib2 installed with pip install git+https://github.com/trolldbois/ctypeslib.git.

Command clang2py -I . person2.h -o person2_ctypes.py

Traceback

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Software\Python311\Scripts\clang2py.exe\__main__.py", line 4, in <module>
  File "C:\Software\Python311\Lib\site-packages\ctypeslib\__init__.py", line 118, in <module>
    __clang_library_filename = __configure_clang_cindex()
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Software\Python311\Lib\site-packages\ctypeslib\__init__.py", line 103, in __configure_clang_cindex
    clang_version()
  File "C:\Software\Python311\Lib\site-packages\ctypeslib\__init__.py", line 67, in clang_version
    version_string = get_version()
                     ^^^^^^^^^^^^^
OSError: exception: access violation writing 0x00000000FFFFFFFF

clang version:

clang --version
clang version 17.0.2
Target: x86_64-pc-windows-msvc
Thread model: posix
@Inoticeit
Copy link

G

@trolldbois
Copy link
Owner

Wonder what happened there

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

No branches or pull requests

3 participants