python4delphi Python could not be properly initialized. We must quit.
要用32位的DLL,不要用64位的dll
Unable to load Python 2.7 dll with Delphi 2010 #6
Milestone
No milestone
Assignee
No one assigned
1 participant
What steps will reproduce the problem?
1.Using Delphi 2010 install P4D from SVN (Python_2010.dproj)
2.Drop a PythonEngine VCL into a form
3.Modify the attribute to match 2.7 python version (DLLPATH: C:\python27,
DLLNAME: python27.dll, RegVersion: 2.7 and uncheck UseLastKnownVersion )
4. Execute the application
What is the expected output? I expect to see the application running with an
empty form.
What do you see instead?
---------------------------
Error
---------------------------
Error 193: Could not open Dll "python27.dll"
---------------------------
OK
---------------------------
and after ...
---------------------------
Error
---------------------------
Python could not be properly initialized. We must quit.
---------------------------
OK
---------------------------
Application just quit.
What version of the product are you using?
Delphi 2010 update 5
On what operating system?
Windows 7 x64
Original issue reported on code.google.com by elc...@gmail.com on 5 Sep 2010 at 6:08
Attachments:
Are you sure your python27.dll is in the C:\python27 directory? In all user
installations it is placed under c:\windows\system32.
In any case just leave the DLLPath blank, unless you use an unregistered
version of Python.
Cannot reproduce here.
Original comment by pyscripter on 5 Sep 2010 at 7:56
- Changed state: Invalid
I've copied the file from system32 to C:\python27 because it wasn't there ...
even tried with the dll in the test application folder.... empty PATH or not it
doesn't want to load any python dll. Have you tried with Windows 7 x64 ?
Clearly there's something fishy with the method of loading the dll... maybe
this has changed with the new OS.
Original comment by elc...@gmail.com on 5 Sep 2010 at 9:12
Btw, i will make a video to show you later today.
Original comment by elc...@gmail.com on 5 Sep 2010 at 9:13
Oh! Windows x64! You need to install Python 32 bit since Delphi does not
support x64 yet.
Original comment by pyscripter on 5 Sep 2010 at 9:40
oh thanks i completely forgot this! I will try with python 32 bit :) thanks
again!!
Original comment by elc...@gmail.com on 5 Sep 2010 at 9:42
Thank you very much! It works with python 32 bit.
Also, it would be great to advise in your wiki about this issue. I know that we
can't load 64 bit dlls with 32 bit application but i was focusing instead on
your error code. The whole day i've searched on google for :
Error 193: Could not open Dll "python27.dll" or Python could not be properly initialized. We must quit.
It would be great to remind people that they might installed earlier before
trying P4D, that a x64 version of python and is not compatible with delphi and
p4d.
Wish you eternal success with P4D
have a nice day
laurent
Original comment by elc...@gmail.com on 5 Sep 2010 at 10:20
python4delphi Python could not be properly initialized. We must quit.的更多相关文章
- SQL SERVER2008 DBX Error: Driver could not be properly initialized
raised exception class TDBXError with message 'DBX Error: Driver could not be properly initialized. ...
- python中video system not initialized怎么解决
今天在github上找到一个用pygame做的Python游戏,但是clone到本地运行的时候却冒出了“mixer system not initialized”这样的问题.其实这句话说的就是音频混音 ...
- DBX error:Driver could not be properly initialized .... 解决办法
系统: win7 64位+ MySql 将libmysql.dll和Dbxmys.dll 拷到 C:\Windows\SysWOW64 目录. ( 64位系统) 32位则拷到 c:\wind ...
- python 入门教程
转载自:http://www.crifan.com/files/doc/docbook/python_beginner_tutorial/release/html/python_beginner_tu ...
- 【整理】各种Python的IDE(集成开发环境)的总结和对比
原地址:http://www.tuicool.com/articles/rMVJNn 原文 http://www.crifan.com/summary_common_python_ide_pyscr ...
- python编辑器对比和推荐
python编辑器对比和推荐 我先给一个初步的表格吧,大家如果有什么意见,或有补充,欢迎提出.有些我没有用过,先不写了.以下是我使用过的python IDE: 除了PythonWin, Visua ...
- 4.1. 如何在Windows环境下开发Python
4.1. 如何在Windows环境下开发Python 4.1. 如何在Windows环境下开发Python 4.1.1. Python的最原始的开发方式是什么样的 4.1.1.1. 找个文本编辑器,新 ...
- 像职业选手样编码:地道Python
Code Like a Pythonista: Idiomatic Python David Goodger goodger@python.org http://python.net/~goodger ...
- python之所以强大很大一部分原因在于他众多的取之不尽的库
GUI 的 自动任务用这个pyautogui库,web 页面的用 selenium + webdriver 同类型的还有 sikuli ,低配版 按键精灵 本教程译自大神Al Sweigart的PyA ...
随机推荐
- 第七章:Javascript数组
数组是值的有序结合.每个值叫做一个元素,而每个元素在数组中都有一个位置,用数字表示,称为索引. javascript数组是无类型的:数组的元素可以是任意类型,并且同一个数组中的不同元素也可能有不同的类 ...
- LINQ构建交叉表
最近碰到客户的一个需求.使用交叉表来显示客户数据.也就是以同时以行头和列头交叉形式显示数据内容.同时要求即使有些列没有数据,也需要显示该列内容,并设置默认值. 说明: “交叉表”对象是一个网格,用来根 ...
- 读JS高级(兼容&&BOM&&私有变量&&面向对象)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...
- fluery算法
#include<stdio.h> #include<string.h> struct stack { int top; ]; }s; ][]; void dfs(int x) ...
- Log4Net使用详解
1.Log4Net环境的搭建与基本配置 (1)Log4Net框架介绍 Log4net 是 Apache 下一个开放源码的项目,它是Log4j 的一个克隆版.我们可以控制日志信息的输出目的地.L ...
- shell--题目
1.有一个文件,里面有二列,第一列ip地址,第二列是时间,同一个ip可能出现多次,但时间不同. 文件类似下面的样子: 192.168.1.2 13:10 192.127.12 ...
- C#给文件夹添加权限
//==== //添加权限 private void SetAttributes(string folder) { if (folder == "" || !Directory.E ...
- 解决Oracle忘记密码问题
在使用ORACLE的过程中,会出现各种各样的问题,各种各样的错误,其中ORA-12899就是前段时间我在将数据导入到我本地机器上的时候一直出现的问题.不过还好已经解决了这个问题,现在分享一下,解决方案 ...
- Uva11729 Commando War
相邻两个士兵交换顺序,不会对其他的有所影响,贪心考虑两两之间交换策略即可. sort大法好.印象中这类排序题里有一种会卡sort,只能冒泡排序,然而到现在还没有遇到 /**/ #include< ...
- TCP/IP详解 笔记八
UDP协议 UDP是传输层协议,提供无连接不可靠的数据传输,其优点失效率高,确定确定是无序不可靠. 报文格式 UDP头部 TCP和UDP的端口号是独立的 UDP长度是指UDP数据报的总长度 UDP的校 ...