Opened 3 years ago

Closed 3 years ago

#32763 closed Bug (invalid)

Path is wrong: OperationalError "Plugin pvio_npipe could not be loaded"

Reported by: b9chris Owned by: nobody
Component: Database layer (models, ORM) Version: 3.2
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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.

Change History (1)

comment:1 by Mariusz Felisiak, 3 years ago

Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.
Back to Top