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
File "/home/xxxx/mambaforge/lib/python3.10/site-packages/segyio/trace.py", line 290, in setitem
self.filehandle.puttr(self.wrapindex(i), xs)
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
The following is further explained in https://docs.python.org/3/c-api/arg.html#strings-and-buffers
" Note For all # variants of formats (s#, y#, etc.), the macro PY_SSIZE_T_CLEAN must be defined before including Python.h. On Python 3.9 and older, the type of the length argument is Py_ssize_t if the PY_SSIZE_T_CLEAN macro is defined, or int otherwise.
"
The text was updated successfully, but these errors were encountered:
I ran into the same problem when I tried to copy a.sgy to b.sgy use the line "dst.trace=src.trace"
the python version is 3.12.0
the segyio version 1.9.3
The error message comes from
File "/home/xxxx/mambaforge/lib/python3.10/site-packages/segyio/trace.py", line 290, in setitem
self.filehandle.puttr(self.wrapindex(i), xs)
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
The following is further explained in https://docs.python.org/3/c-api/arg.html#strings-and-buffers
"
Note For all # variants of formats (s#, y#, etc.), the macro PY_SSIZE_T_CLEAN must be defined before including Python.h. On Python 3.9 and older, the type of the length argument is Py_ssize_t if the PY_SSIZE_T_CLEAN macro is defined, or int otherwise.
"
The text was updated successfully, but these errors were encountered: