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

Script Filed with Traceback (most recent call last): #27

Open
pkofcgit opened this issue Sep 9, 2024 · 0 comments
Open

Script Filed with Traceback (most recent call last): #27

pkofcgit opened this issue Sep 9, 2024 · 0 comments

Comments

@pkofcgit
Copy link

pkofcgit commented Sep 9, 2024

I have succedully done all setup
But when running on terminal
~/Downloads/SwiftScripting-03d84954c62f36d48f19e73ed278353dbbff03a1/sbhc.py /Downloads/ /App.h

i have found this
Traceback (most recent call last):
File "/Downloads/SwiftScripting-03d84954c62f36d48f19e73ed278353dbbff03a1/sbhc.py", line 301, in
main(sys.argv[1])
File "/Downloads/SwiftScripting-03d84954c62f36d48f19e73ed278353dbbff03a1/sbhc.py", line 297, in main
header_processor.emit_swift()
File "/Downloads/SwiftScripting-03d84954c62f36d48f19e73ed278353dbbff03a1/sbhc.py", line 269, in emit_swift
translation_unit = TranslationUnit.from_source(self.file_path, args=cmakeArgs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/clang/cindex.py", line 2233, in from_source
index = Index.create()
^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/clang/cindex.py", line 2120, in create
return Index(conf.lib.clang_createIndex(excludeDecls, 0))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/clang/cindex.py", line 1873, in init
assert isinstance(obj, c_object_p) and obj
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
Exception ignored in: <function Index.del at 0x10c267100>
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/clang/cindex.py", line 2123, in del
conf.lib.clang_disposeIndex(self)
ctypes.ArgumentError: argument 1: TypeError: Don't know how to convert parameter 1

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

1 participant