Burzum
Burzum

Reputation: 188

python33.dll not found Error while using Python4Delphi component

I'm working on a project with Python4Delphi component and also i want to use embedded version of python which is better to use as needs no installation. I've set the correct path and filename to python310.dll in the appropriate properties but no chance to run properly and always getting the

Error 87: Could not open Dll "python33.dll"

Python could not be properly initialized. We must quit.

i also added the directory of the dll to environment variables still no luck. whats wrong? (python and delphi 10.4 project both are 32bit versions, windows 10 64bit)

Upvotes: -1

Views: 2483

Answers (3)

George
George

Reputation: 11

just set the propery "UseLastKnownVersion" of PythonEngine Component to false, the "python33.dll not found " will disapper

Upvotes: 1

Ad Franse
Ad Franse

Reputation: 1

There is an error in pythonengine.pas. on line 9075 change

MinorVersion := PythonVersion[3];

to

MinorVersion := StrToInt(copy(PythonVersion, 3, length(PythonVersion) - 2));

the MinorVersion is incorrectly set to 1 for version 3.10.

Upvotes: -1

allan8araujo
allan8araujo

Reputation: 21

I had the same issue. Reinstall python worked for me. But this time i maked sure that was installing the same architecture that i was compiling the code to. I reinstall python 3.10 on 32bits and worked for me, cuz i was compiling on win32

Upvotes: 0

Related Questions