[CONPY-260] MacOS option for C connector Created: 2023-04-10 Updated: 2023-04-10 Resolved: 2023-04-10 |
|
| Status: | Closed |
| Project: | MariaDB Connector/Python |
| Component/s: | Installation |
| Affects Version/s: | 1.1.6 |
| Fix Version/s: | N/A |
| Type: | New Feature | Priority: | Major |
| Reporter: | Paul Griffiths | Assignee: | Georg Richter |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | Compatibility | ||
| Environment: |
PyCharm 2023.1 on MacOS (Ventura) |
||
| Python Version: | 3.11 |
| Description |
|
I've tried to install the MariaDB python package (as is available on PyPi) via PyCharm but it errors as I don't have the C connector installled. Relevent part of the error:
I understand the performance benefits of your design but your connector is now platform dependant. As a python developer I just want to grab a package from PyPi and start using using it. As I don't want to start building and installing C programs from source (or via homebrew) it seems I will have to look for an alternative. Such a shame. |
| Comments |
| Comment by Georg Richter [ 2023-04-10 ] |
|
It's neither a shame nor a bug - See https://mariadb-corporation.github.io/mariadb-connector-python/install.html#prerequisites |
| Comment by Paul Griffiths [ 2023-04-10 ] |
|
Thanks for taking the time to reply. Just to point out, I didn't list this as a bug and I had read the prerequisites you linked to but, as I said, I'm not interested in building c programs from source. As a workaround, I have found the MySQL connector works for my usage. The package is written in python with the option of using a 'c extension', a much better design from a python developers view point, imho. It would be good if you could support macOS in the future without the need to build from scratch. I notice there are prebuilt binaries for other platforms. Better still, to have a cross-platform, native python connector either as an option or with a c extension for those that need it. |