freelanceprogrammers.org Forum Index » Delphi
Installation problem CBuilder 5.0
Joined: 10 Jun 2005
Posts: 1
Installation problem CBuilder 5.0
Hi all!
I have been running Python 1.5 for some time with CBuilder 5.0,
Update 1, under Windows XP (Professional Version 2002, Service Pack
2). I am trying to update to Python 2.1 or later.
I have downloaded the PythonForDelphi and Python 2.1.3, installed
them and can`t get my project or the demos to compile.
My projects that use math.h, the demo18 and demo20 projects get an
error during compilation, "[C++ Error] math.h(324): E2316 `abs` is
not a member of `std`".
The demo19 project gets an error during startup "raised exception
class EDLLImportError with message `Error 127: could not map symbol
Py_UnicodeFlag.`"
I`ve run implib on py21.lib and python21.dll. I`ve installed the b5
packages and doublechecked my paths.
Can anyone help?
Thanks, Irene
Joined: 29 Apr 2005
Posts: 103
Installation problem CBuilder 5.0
Hi Irene!
> I have been running Python 1.5 for some time with CBuilder 5.0, Update
> 1, under Windows XP (Professional Version 2002, Service Pack 2). I am
> trying to update to Python 2.1 or later.
>
> I have downloaded the PythonForDelphi
Which version did you get? Did you download it from http://mmm-experts.com?
>and Python 2.1.3, installed
> them and can`t get my project or the demos to compile.
Ok. But why don`t you go directly to 2.3 or 2.4?
> My projects that use math.h, the demo18 and demo20 projects get an
> error during compilation, "[C++ Error] math.h(324): E2316 `abs` is
> not a member of `std`".
Don`t know C++ well, but maybe this is a problem related to namespaces?
> The demo19 project gets an error during startup "raised exception
> class EDLLImportError with message `Error 127: could not map symbol
> Py_UnicodeFlag.`"
This error was raised by P4D when trying to import the Python APIs.
Apparently trying to import Py_UnicodeFlag with version 2.1.3 is wrong.
So, in the source code, try to replace the following code:
{$IFDEF PYTHON20_OR_HIGHER}
Py_UnicodeFlag: PInt;
{$ENDIF}
With
{$IFDEF PYTHON22_OR_HIGHER}
Py_UnicodeFlag: PInt;
{$ENDIF}
Repeat it for each instance of Py_UnicodeFlag.
If you get another problem, try to insert conditional compilation symbols.
Note that you should not have these problems with Python 2.3 or later...
Hope that helps,
Morgan
Joined: 13 Jun 2005
Posts: 1
Installation problem CBuilder 5.0
Your comment implies that PythonForDelphi will work with Python 2.4.
Is that true? When I try to install PFD it doesn`t see Python 2.4?
Michael
--- In pythonfordelphi@yahoogroups.com, "Morgan Martinet" <yahoo@m...>
wrote:
> Hi Irene!
>
> > I have been running Python 1.5 for some time with CBuilder 5.0,
Update
> > 1, under Windows XP (Professional Version 2002, Service Pack 2).
I am
> > trying to update to Python 2.1 or later.
> >
> > I have downloaded the PythonForDelphi
> Which version did you get? Did you download it from
http://mmm-experts.com?
>
> >and Python 2.1.3, installed
> > them and can`t get my project or the demos to compile.
> Ok. But why don`t you go directly to 2.3 or 2.4?
>
> > My projects that use math.h, the demo18 and demo20 projects get an
> > error during compilation, "[C++ Error] math.h(324): E2316 `abs` is
> > not a member of `std`".
> Don`t know C++ well, but maybe this is a problem related to namespaces?
>
> > The demo19 project gets an error during startup "raised exception
> > class EDLLImportError with message `Error 127: could not map symbol
> > Py_UnicodeFlag.`"
> This error was raised by P4D when trying to import the Python APIs.
> Apparently trying to import Py_UnicodeFlag with version 2.1.3 is wrong.
> So, in the source code, try to replace the following code:
> {$IFDEF PYTHON20_OR_HIGHER}
> Py_UnicodeFlag: PInt;
> {$ENDIF}
>
> With
> {$IFDEF PYTHON22_OR_HIGHER}
> Py_UnicodeFlag: PInt;
> {$ENDIF}
>
> Repeat it for each instance of Py_UnicodeFlag.
> If you get another problem, try to insert conditional compilation
symbols.
>
> Note that you should not have these problems with Python 2.3 or later...
>
> Hope that helps,
>
> Morgan
Joined: 29 Apr 2005
Posts: 103
Installation problem CBuilder 5.0
> Your comment implies that PythonForDelphi will work with Python 2.4.
> Is that true? When I try to install PFD it doesn`t see Python 2.4?
Of course it does! Why would I lie ;-)
As I already said, I can`t update my former web page, and all the P4D
related activity as been moved to my web site http://mmm-experts.com/
You can also, access the version history from the web site and look at
the latest changes...
Note that there will be interesting new changes very soon...
Bye,
Morgan
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







