[egenix-users] mxDateTime
M.-A. Lemburg
mal at egenix.com
Thu Oct 14 15:22:18 CEST 2004
Keith Moore wrote:
> Py_VerboseFlag=2: is pointing me to my problem. (Newbie error)I'm using VC++
> debug to develop my code. As a result, its looking for mxDateTime_d.pyd and
> mxDateTime_d.dll. I need to use my debug project for development, but
> obviously, I don't need to debug the mx stuff. How do I get around this?
python setup.py build --debug install
should get you debug builds of the needed egenix-mx-DLLs.
> -----Original Message-----
> From: M.-A. Lemburg [mailto:mal at egenix.com]
> Sent: Thursday, October 14, 2004 5:18 AM
> To: Keith Moore
> Subject: Re: [egenix-users] mxDateTime
>
>
> Keith Moore wrote:
>
>>Yes, I intend to embed egenix-mx-commercial
>>into my application. Once I get it working I intend to get the proper
>
> lisc.
>
>>I'd hate to buy it and be unable to use it as intended.
>
>
> Ok, understood.
>
>
>>I will submit my questions to the lists you suggested.
>
>
> Something you might want to try is to run the interpreter
> in verbose mode (python -vv). In an embedded app, this
> can be done by assigning 2 to the global var Py_VerboseFlag.
>
> Python will then print out where it looks for the .pyd files.
>
>
>>Thanks Again,
>>
>>Keith
>>
>>-----Original Message-----
>>From: M.-A. Lemburg [mailto:mal at egenix.com]
>>Sent: Thursday, October 14, 2004 4:47 AM
>>To: Keith Moore
>>Subject: Re: [egenix-users] mxDateTime
>>
>>
>>Keith Moore wrote:
>>
>>
>>>Sorry to bother you :(
>>
>>
>>Sorry, but I can't help you debug your problem. eGenix is
>>in the consulting business and so we can only give hints to
>>possible solutions on a non-contract basis.
>>
>>We do offer support for our products on a support ticket basis.
>>Please see our web-site for details.
>>
>>For free support you can try the egenix-users mailing list
>>or comp.lang.python.
>>
>>
>>
>>>But I still can't figure it out. I'm running on Windows XP.
>>>I unintalled/reinstalled Python 2.3.4
>>>I installed egenix-mx-base-2.0.5.win32-py2.3.exe, first
>>>I installed egenix-mx-commercial-2.0.6.win32-py2.3.exe, second.
>>
>>
>>Are you saying that you want to embed egenix-mx-commercial
>>into your application ? I'm afraid that this is not allowed
>>without a proper developer license for mxODBC.
>>
>>
>>
>>>I am able to use mxDateTime from the interpreter with no problems. But
>>
>>when
>>
>>
>>>I try importing the same script into C++, I keep getting the mxDateTime
>>>error message. I even used sys.path at the top of my script to include
>>
>>the
>>
>>
>>>path to mxDateTime.pyd. I even put a copy in C:\Python23\DLL.
>>>
>>>What is the difference between the interpreter and embedded python, that
>>>would mainifest this problem? What am I missing???
>>>
>>>Thankyou, for your help, I do appreciate your time...
>>>
>>>-----Original Message-----
>>>From: M.-A. Lemburg [mailto:mal at egenix.com]
>>>Sent: Monday, October 11, 2004 5:04 AM
>>>To: Keith Moore
>>>Subject: Re: [egenix-users] mxDateTime
>>>
>>>
>>>Keith Moore wrote:
>>>
>>>
>>>
>>>>I will try uninstalling Python then reinstall. How do I verify and/or
>>>>change the paths for the embedded interpreter?
>>>
>>>
>>>Try sys.path.
>>>
>>>
>>>
>>>
>>>>-----Original Message-----
>>>>From: M.-A. Lemburg [mailto:mal at egenix.com]
>>>>Sent: Saturday, October 09, 2004 7:40 AM
>>>>To: keithmoore1 at adelphia.net
>>>>Cc: egenix-users at egenix.com
>>>>Subject: Re: [egenix-users] mxDateTime
>>>>
>>>>
>>>>keithmoore1 at adelphia.net wrote:
>>>>
>>>>
>>>>
>>>>
>>>>>Help! I am new to Python...
>>>>>
>>>>>I am attempting to call a Python routine from C++. I tested the routine
>>>>
>>>>with
>>>>
>>>>
>>>>
>>>>
>>>>>the Python interpreter. I get no errors. But when I try to access it
>>>>
>>>>from
>>>>
>>>>
>>>>
>>>>
>>>>>C++, using PyImport_ImportModule(...) (See snippet below), I get "***
>
> you
>
>>>>don't
>>>>
>>>>
>>>>
>>>>
>>>>>have the (right) mxDateTime binaries installed!"
>>>>
>>>>
>>>>This messages indicates that Python cannot find the mxDateTime.pyd
>>>>file that is needed by the mxDateTime package.
>>>>
>>>>Please make sure that you have installed the correct version of
>>>>mxDateTime for the Python version you are using.
>>>>
>>>>It is also possible that your embedded Python version does not
>>>>have the paths correctly setup: the egenix-mx-base installer will
>>>>install the packages to the site-packages directory of your
>>>>standard Python installation; the embedded interpreter will
>>>>like look in different places for the modules.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>I've downloaded the latest
>>>>>version. I ran the .exe provided to install the files. Do I need to
>>>>
>>>>manually
>>>>
>>>>
>>>>
>>>>
>>>>>compile the files? If so, how? I didn't see setup.py in the installed
>>>>>directory.
>>>>>
>>>>>I've been struggling with this problem for the last 3 days. What am I
>>>>
>>>>doing
>>>>
>>>>
>>>>
>>>>
>>>>>wrong?
>>>>>
>>>>>
>>>>>Snippet:::::::::::::::::::::::::::::::::::::::::::
>>>>>someClass::someMethod()
>>>>>{
>>>>> PyObject *pstr, *pmod;
>>>>> printf("embed-object\n");
>>>>> Py_Initialize();
>>>>>
>>>>> // get usermod.message
>>>>> pmod = PyImport_ImportModule("OMS_Query");
>>>>> ...
>>>>>}
>>>>>
>>>>>
>>>>>Thanks,
>>>>>
>>>>>Keith
>>>>>
>>>>>
>>>>>
>>>>>_______________________________________________________________________
>>>>>eGenix.com User Mailing List http://www.egenix.com/
>>>>>http://lists.egenix.com/mailman/listinfo/egenix-users
>>>>
>>>>
>>>>--
>>>>Marc-Andre Lemburg
>>>>eGenix.com
>>>>
>>>>Professional Python Services directly from the Source (#1, Oct 09 2004)
>>>>
>>>>
>>>>>>>Python/Zope Consulting and Support ... http://www.egenix.com/
>>>>>>>mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>>>>>>mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
>>>>
>>>>________________________________________________________________________
>>>>
>>>>::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::
>>>
>>>
>>>--
>>>Marc-Andre Lemburg
>>>eGenix.com
>>>
>>>Professional Python Services directly from the Source (#1, Oct 11 2004)
>>>
>>>>>>Python/Zope Consulting and Support ... http://www.egenix.com/
>>>>>>mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>>>>>mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
>>>
>>>________________________________________________________________________
>>>
>>>::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::
>>
>>
>>--
>>Marc-Andre Lemburg
>>eGenix.com
>>
>>Professional Python Services directly from the Source (#1, Oct 14 2004)
>> >>> Python/Zope Consulting and Support ... http://www.egenix.com/
>> >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>> >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
>>________________________________________________________________________
>>
>>::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::
>
>
> --
> Marc-Andre Lemburg
> eGenix.com
>
> Professional Python Services directly from the Source (#1, Oct 14 2004)
> >>> Python/Zope Consulting and Support ... http://www.egenix.com/
> >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
> >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
> ________________________________________________________________________
>
> ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::
--
Marc-Andre Lemburg
eGenix.com
Professional Python Services directly from the Source (#1, Oct 14 2004)
>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________
::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::
More information about the egenix-users
mailing list