#32763: Path is wrong: OperationalError "Plugin pvio_npipe could not be loaded"
-------------------------------------+-------------------------------------
Reporter: b9chris | Owner: nobody
Type: Bug | Status: new
Component: Database | Version: 3.2
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
If you attempt to connect to a MySql instance using Named Pipes on
Windows, Django is going to look for the 32-bit version of MariaDb
Connector/C. It looks for it here:
C:/Program Files (x86)/mariadb-
connector-c/lib/mariadb/plugin/pvio_npipe.dll
As seen in this error message:
django.db.utils.OperationalError: (2059, "Plugin pvio_npipe could not be
loaded: The specified module could not be found. Library path is
'C:/Program Files (x86)/mariadb-
connector-c/lib/mariadb/plugin/pvio_npipe.dll'")
This path is incorrect, with folders shuffled. The correct, default path
that Connector/C installs into is:
C:\Program Files (x86)\MariaDB\MariaDB Connector
C\lib\plugin\pvio_npipe.dll
Notice that "MariaDb" appears earlier in the correct path, than it does in
the incorrect one. The real path also uses spaces while the one Python is
looking for uses dashes.
--
Ticket URL: <https://code.djangoproject.com/ticket/32763>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/050.0d1fa42327c34b66eceead3e2a4d9d59%40djangoproject.com.