You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am getting the error below when trying to create baseline stubs for the QuantLib package.
QuantLib's python bindings are generated using SWIG. Is this supported? I tried googling for any known limitations with SWIG but couldn't find any.
I'm very new to typeshed so apologies if I'm doing something silly.
$ python3 ./scripts/create_baseline_stubs.py QuantLibUsing detected package "QuantLib" for project "QuantLib"Suggestion: Try again with --package argument if that's not what you wantedRunning stubgen: stubgen -o stubs/QuantLib -p QuantLibTraceback (most recent call last): File "/usr/local/py-utils/bin/stubgen", line 8, in <module> sys.exit(main()) ^^^^^^ File "mypy/stubgen.py", line 1989, in main File "mypy/stubgen.py", line 1813, in generate_stubs File "/usr/local/py-utils/venvs/mypy/lib/python3.12/site-packages/mypy/stubgenc.py", line 179, in generate_stub_for_c_module gen.generate_module() File "/usr/local/py-utils/venvs/mypy/lib/python3.12/site-packages/mypy/stubgenc.py", line 451, in generate_module self.generate_variable_stub(name, obj, output=variables) File "/usr/local/py-utils/venvs/mypy/lib/python3.12/site-packages/mypy/stubgenc.py", line 901, in generate_variable_stub type_str = self.strip_or_import(self.get_type_annotation(obj)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/py-utils/venvs/mypy/lib/python3.12/site-packages/mypy/stubgenc.py", line 535, in get_type_annotation return self.get_type_fullname(type(obj)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/py-utils/venvs/mypy/lib/python3.12/site-packages/mypy/stubgenc.py", line 768, in get_type_fullname assert module_name is not None, typAssertionError: <class 'swigvarlink'>Traceback (most recent call last): File "/workspaces/typeshed/./scripts/create_baseline_stubs.py", line 253, in <module> main() File "/workspaces/typeshed/./scripts/create_baseline_stubs.py", line 234, in main run_stubgen(package, stub_dir) File "/workspaces/typeshed/./scripts/create_baseline_stubs.py", line 57, in run_stubgen subprocess.run(["stubgen", "-o", output, "-p", package, "--export-less"], check=True) File "/home/codespace/.python/current/lib/python3.12/subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args,subprocess.CalledProcessError: Command '['stubgen', '-o', 'stubs/QuantLib', '-p', 'QuantLib', '--export-less']' returned non-zero exit status 1.
The text was updated successfully, but these errors were encountered:
Hello, I am getting the error below when trying to create baseline stubs for the QuantLib package.
QuantLib's python bindings are generated using SWIG. Is this supported? I tried googling for any known limitations with SWIG but couldn't find any.
I'm very new to typeshed so apologies if I'm doing something silly.
The text was updated successfully, but these errors were encountered: