[Django] #32763: Path is wrong: OperationalError "Plugin pvio_npipe could not be loaded"

14 views
Skip to first unread message

Django

unread,
May 18, 2021, 10:57:15 PM5/18/21
to django-...@googlegroups.com
#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.

Django

unread,
May 19, 2021, 1:41:16 AM5/19/21
to django-...@googlegroups.com
#32763: Path is wrong: OperationalError "Plugin pvio_npipe could not be loaded"
-------------------------------------+-------------------------------------
Reporter: b9chris | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version: 3.2
(models, ORM) |
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* status: new => closed
* resolution: => invalid


Comment:

First of all MariaDB Connector is not supported by Django. Also, Django
has nothing to do with selecting the correct library by the 3rd party
packages.

--
Ticket URL: <https://code.djangoproject.com/ticket/32763#comment:1>

Reply all
Reply to author
Forward
0 new messages