-
Notifications
You must be signed in to change notification settings - Fork 229
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
docs: mention python _ctypes support #2383
base: devel
Are you sure you want to change the base?
docs: mention python _ctypes support #2383
Conversation
✅ Deploy Preview for dlt-hub-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
```sh | ||
`python -c "import _ctypes"` | ||
``` | ||
If this fails, you need to install the [libffi](https://sourceware.org/libffi/)-package |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more context:
if libffi is mostly included by default,libffi-dev is for compiling software from source. when python versions are managed (and installed) with pyenv (at least thats how i did it), then python gets installed but without the _ctypes module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@djudjuu did you verify that this is also needed for python 3.12?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will verify it, but I dont want to mess with my system by removing the libffi-dev package, so I think I will use mutlipass to spin up fresh ubuntu images and test it there. Its probably a good thing to be able to do that anyways
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so I've verified that it occurs only if, you have build from source (e.g. using pyenv) (i tried with 3.12 and 3.13) when libffi-dev is not on the system. I am not sure this is a likely state, since usually libffi-dev is part of the packages that one has on the system if one compiles C stuff. But somehow that was the case for me, so maybe its not THAT unlikely.
during the 3.1x installation with pyenv I also did get a warning that C support was missing, so in some ways there already is a warning, so maybe this comment in the docs shouldnt be that prominent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if that makes it necessary at all to mention it then...maybe lets discuss it live real quick
closes #2382
UPDATE: maybe not that needed as its a bit of an edge case to and there is no fitting section in the docs (e.g. general troubleshooting). maybe having an issue with
_ctypes
text is already some kind of hint for devs running into the same issue