From jbard at wyeth.com Thu Jul 17 16:49:44 2008 From: jbard at wyeth.com (Joel Bard) Date: Thu Jul 17 21:50:06 2008 Subject: [egenix-users] insert fails with no error Message-ID: <487F6A18.D12A.00FB.0@wyeth.com> Hi- I'm connecting from linux x86_64 to a sqlserver2005 instance using mxODBC 3.0.1 with unixODBC. I'm able to retrieve data with no problem. When I try a simple insert: c=db.cursor() p1="test" p2="mxodbc test" c.execute("insert into bug" + \ " (UIElement,Description)" + \ "values (?,?)" \ ,(p1,p2) \ ) c.rowcount is 1 but the row is not present in the table. If I execute the same sql command using isql it works. The table uses an autoincrement key column and values for the key are consumed even though the record is not being created. c.messages is empty. The same behavior is seen regardless of whether parameters are used and regardless of wether I use execute or executedirect. Any help would be appreciated. Thanks, Joel From Jim.Vickroy at noaa.gov Thu Jul 17 15:15:40 2008 From: Jim.Vickroy at noaa.gov (Jim Vickroy) Date: Thu Jul 17 22:15:45 2008 Subject: [egenix-users] insert fails with no error In-Reply-To: <487F6A18.D12A.00FB.0@wyeth.com> References: <487F6A18.D12A.00FB.0@wyeth.com> Message-ID: <487FA86C.7010302@noaa.gov> Joel Bard wrote: > Hi- > > I'm connecting from linux x86_64 to a sqlserver2005 instance using mxODBC 3.0.1 with unixODBC. I'm able to retrieve data with no problem. When I try a simple insert: > > > c=db.cursor() > p1="test" > p2="mxodbc test" > c.execute("insert into bug" + \ > " (UIElement,Description)" + \ > "values (?,?)" \ > ,(p1,p2) \ > ) > > c.rowcount is 1 but the row is not present in the table. If I execute the same sql command using isql it works. The table uses an autoincrement key column and values for the key are consumed even though the record is not being created. c.messages is empty. The same behavior is seen regardless of whether parameters are used and regardless of wether I use execute or executedirect. Any help would be appreciated. > > Thanks, > > Joel > > > > > _______________________________________________________________________ > eGenix.com User Mailing List http://www.egenix.com/ > https://www.egenix.com/mailman/listinfo/egenix-users > Hi Joel, Is this perhaps a transactional issue? Have you tried to explicitly commit the insert transaction? -- jv Disclaimer: I not an mx.ODBC user -- just a "lurker". From JBard at wyeth.com Thu Jul 17 17:28:35 2008 From: JBard at wyeth.com (Joel Bard) Date: Thu Jul 17 22:28:50 2008 Subject: [egenix-users] insert fails with no error In-Reply-To: <487FA86C.7010302@noaa.gov> References: <487F6A18.D12A.00FB.0@wyeth.com> <487FA86C.7010302@noaa.gov> Message-ID: <487F7333020000FB00006BB9@gv01a67m.gv.us.pri.wyeth.com> Thanks! That was it. Adding db.commit() at the end made it work. Best Regards, Joel >>> Jim Vickroy 7/17/2008 4:15 PM >>> Joel Bard wrote: > Hi- > > I'm connecting from linux x86_64 to a sqlserver2005 instance using mxODBC 3.0.1 with unixODBC. I'm able to retrieve data with no problem. When I try a simple insert: > > > c=db.cursor() > p1="test" > p2="mxodbc test" > c.execute("insert into bug" + \ > " (UIElement,Description)" + \ > "values (?,?)" \ > ,(p1,p2) \ > ) > > c.rowcount is 1 but the row is not present in the table. If I execute the same sql command using isql it works. The table uses an autoincrement key column and values for the key are consumed even though the record is not being created. c.messages is empty. The same behavior is seen regardless of whether parameters are used and regardless of wether I use execute or executedirect. Any help would be appreciated. > > Thanks, > > Joel > > > > > _______________________________________________________________________ > eGenix.com User Mailing List http://www.egenix.com/ > https://www.egenix.com/mailman/listinfo/egenix-users > Hi Joel, Is this perhaps a transactional issue? Have you tried to explicitly commit the insert transaction? -- jv Disclaimer: I not an mx.ODBC user -- just a "lurker". -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20080717/ea0fb5d9/attachment.htm From mal at egenix.com Thu Jul 17 23:50:34 2008 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jul 17 22:50:39 2008 Subject: [egenix-users] insert fails with no error In-Reply-To: <487F6A18.D12A.00FB.0@wyeth.com> References: <487F6A18.D12A.00FB.0@wyeth.com> Message-ID: <487FB09A.6090500@egenix.com> On 2008-07-17 21:49, Joel Bard wrote: > Hi- > > I'm connecting from linux x86_64 to a sqlserver2005 instance using mxODBC 3.0.1 with unixODBC. I'm able to retrieve data with no problem. When I try a simple insert: > > > c=db.cursor() > p1="test" > p2="mxodbc test" > c.execute("insert into bug" + \ > " (UIElement,Description)" + \ > "values (?,?)" \ > ,(p1,p2) \ > ) > > c.rowcount is 1 but the row is not present in the table. If I execute the same sql command using isql it works. The table uses an autoincrement key column and values for the key are consumed even though the record is not being created. c.messages is empty. The same behavior is seen regardless of whether parameters are used and regardless of wether I use execute or executedirect. Any help would be appreciated. Jim already pointed you to the solution. I just want to add for reference that isql defaults to working in auto- commit mode, so all changes you make via isql will immediately be written to the database. mxODBC, on the other hand, defaults to transactional mode, so changes will only be visible if you explicitly commit them to the database. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Jul 17 2008) >>> 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,MacOSX for free ! :::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 From info at egenix.com Tue Jul 22 00:26:54 2008 From: info at egenix.com (eGenix Team: M.-A. Lemburg) Date: Mon Jul 21 23:27:06 2008 Subject: [egenix-users] ANN: eGenix EuroPython 2008 Presentations & Videos Message-ID: <4884FF1E.1070404@egenix.com> ________________________________________________________________________ eGenix EuroPython 2008 Presentations & Videos ________________________________________________________________________ We have uploaded our EuroPython 2008 presentations to our website. Learn the concepts behind the Python DB-API and how to design large-scale applications. This announcement is also available on our web-site for online reading: http://www.egenix.com/company/news/EuroPython-2008-Presentations.html ________________________________________________________________________ INTRODUCTION The EuroPython Conference is the one of the premier conferences for Python & Zope users and developers. This year it was being held from the 7th to 9th July in Vilnius, Lithuania. eGenix was one of the founding members of the EuroPython conference team and played a major role in organizing the first EuroPython conference in the year 2002. Since then we have attended every EuroPython conference to meet up face-to-face with the people from the Python & Zope communities and have given regular talks at these conferences. ________________________________________________________________________ TALKS AT EUROPYTHON 2008 We gave the following two talks at the conference. The presentations are available for viewing and download from our Presentations and Talks section: http://www.egenix.com/library/presentations/ As special feature, we have added talk videos in addition to providing the slide PDFs. You can view the talks online if you have the Adobe Flash Player 8 or later installed. * Using the Python Database API The Python Database API (DB-API) is a specification of a module interface that allows interfacing from Python to a relational database. The talk gives a high-level introduction to the concepts used in the Python DB-API and relational databases in general. Connection, cursors and transactions are discussed, and their use in Python database applications is explained. * Designing Large-Scale Applications in Python Python is widely and somewhat inaccurately referred to as a scripting language. While Python is an ideal platform for small scripting tasks, it does in fact cover all the concepts needed for large scale object oriented application development. However, complex applications bring different challenges. This talk draws on eGenix' many years experience with large scale application development using Python as central implementation language and provides a cookbook approach to many of the the problems you face when designing and organizing complex application frameworks. Enjoy, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Jul 21 2008) >>> 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,MacOSX for free ! :::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 From weverton at gmail.com Tue Jul 22 13:53:53 2008 From: weverton at gmail.com (Weverton Gomes) Date: Tue Jul 22 17:53:59 2008 Subject: [egenix-users] Problems deploying mx.DateTime Message-ID: <5146cf8f0807220853s7f76be7el1b18e0a8d2533162@mail.gmail.com> Hi, I'm trying to deploy an application I've made, in a zip file. So, I added the folder mx (who is inside Python25\Lib\site-packages) but, when I try to run my app, I get the following error: **** You don't have the (right) mxDateTime binaries installed Traceback (most recent call last): File "", line 1, in File "C:\Program Files\Tron\Folha\Folha.pyz\engine\__init__.py", line 3, in File "C:\Program Files\Tron\Folha\Folha.pyz\engine\general\__init__.py", line 3, in File "C:\Program Files\Tron\Folha\Folha.pyz\engine\general\date_utils.py", line 8, in File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\__init__.py", line 8, in File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\DateTime.py", line 9, in File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\mxDateTime\__init__.py", line 13, in What can I do to solve this problem?? Thanks, -- Weverton Gomes de Morais Tecn?logo em Redes de Comunica??o Desenvolvedor Delphi Entusiasta Ruby/Rails "Todos juntos somos fortes" -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20080722/4ce56588/attachment.htm From mal at egenix.com Tue Jul 22 19:34:13 2008 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jul 22 18:34:18 2008 Subject: [egenix-users] Problems deploying mx.DateTime In-Reply-To: <5146cf8f0807220853s7f76be7el1b18e0a8d2533162@mail.gmail.com> References: <5146cf8f0807220853s7f76be7el1b18e0a8d2533162@mail.gmail.com> Message-ID: <48860C05.3070403@egenix.com> On 2008-07-22 17:53, Weverton Gomes wrote: > Hi, > > I'm trying to deploy an application I've made, in a zip file. So, I added > the folder mx (who is inside Python25\Lib\site-packages) but, when I try to > run my app, I get the following error: > > **** You don't have the (right) mxDateTime binaries installed You get this error if Python cannot find the mxDateTime.pyd file which should be in the folder mx\DateTime\mxDateTime\. > Traceback (most recent call last): > File "", line 1, in > File "C:\Program Files\Tron\Folha\Folha.pyz\engine\__init__.py", line 3, in > > File "C:\Program Files\Tron\Folha\Folha.pyz\engine\general\__init__.py", > line 3, in > File "C:\Program Files\Tron\Folha\Folha.pyz\engine\general\date_utils.py", > line 8, in > File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\__init__.py", line > 8, in > File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\DateTime.py", line > 9, in > File "C:\Program > Files\Tron\Folha\Folha.pyz\mx\DateTime\mxDateTime\__init__.py", line 13, in > > > What can I do to solve this problem?? Well, it would help if you'd tell *how* you are deploying mxDateTime :-) E.g. whether you are using py2exe, a custom installer, etc. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Jul 22 2008) >>> 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,MacOSX for free ! :::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 From mal at egenix.com Tue Jul 22 20:23:13 2008 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jul 22 19:23:17 2008 Subject: [egenix-users] Problems deploying mx.DateTime In-Reply-To: <5146cf8f0807221014l7a4c1ac1y9806d157b245b030@mail.gmail.com> References: <5146cf8f0807220853s7f76be7el1b18e0a8d2533162@mail.gmail.com> <48860C05.3070403@egenix.com> <5146cf8f0807221014l7a4c1ac1y9806d157b245b030@mail.gmail.com> Message-ID: <48861781.8090800@egenix.com> On 2008-07-22 19:14, Weverton Gomes wrote: > I'm just making a zip file. Inside it there are the following folders: > > elementtree > engine => (my app) > kinterbasdb > mx > > About mxDateTime.pyd, I already tried erase all other files (.py, .h, .c) > inside mx.DateTime.mxDateTime and leaving only mxDateTime.pyd. Why would you do that ? > When I did > this, I got the following error: > > Traceback (most recent call last): > File "", line 1, in > File "C:\Program Files\Tron\Folha\Folha.pyz\engine\__init__.py", line 3, in > > File "C:\Program Files\Tron\Folha\Folha.pyz\engine\general\__init__.py", > line 3, in > File "C:\Program Files\Tron\Folha\Folha.pyz\engine\general\date_utils.py", > line 8, in > File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\__init__.py", line > 8, in > File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\DateTime.py", line > 9, in > ImportError: No module named mxDateTime > > I tryied, too, put mxDateTime.pyd on root of zip file, I got the same error. > What is wrong with my deploy structure?? It doesn't contain the files that are really needed for deployment. Instead of copying the source directory into your ZIP file, you should copy the installed version there, ie. what you find in C:\Python2.5\Lib\site-packages\mx\ Since Windows cannot load DLLs from ZIP files, you'll need to place the mxDateTime.pyd file into a directory on sys.path. BTW: You can avoid all these problems by using a tool like py2exe which will take care of bundling everything for you. > Thanks, > > > 2008/7/22 M.-A. Lemburg : > >> On 2008-07-22 17:53, Weverton Gomes wrote: >> >>> Hi, >>> >>> I'm trying to deploy an application I've made, in a zip file. So, I added >>> the folder mx (who is inside Python25\Lib\site-packages) but, when I try >>> to >>> run my app, I get the following error: >>> >>> **** You don't have the (right) mxDateTime binaries installed >>> >> You get this error if Python cannot find the mxDateTime.pyd file which >> should be in the folder mx\DateTime\mxDateTime\. >> >> Traceback (most recent call last): >>> File "", line 1, in >>> File "C:\Program Files\Tron\Folha\Folha.pyz\engine\__init__.py", line 3, >>> in >>> >>> File "C:\Program Files\Tron\Folha\Folha.pyz\engine\general\__init__.py", >>> line 3, in >>> File "C:\Program Files\Tron\Folha\Folha.pyz\engine\general\date_utils.py", >>> line 8, in >>> File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\__init__.py", line >>> 8, in >>> File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\DateTime.py", line >>> 9, in >>> File "C:\Program >>> Files\Tron\Folha\Folha.pyz\mx\DateTime\mxDateTime\__init__.py", line 13, >>> in >>> >>> >>> What can I do to solve this problem?? >>> >> Well, it would help if you'd tell *how* you are deploying mxDateTime :-) >> E.g. whether you are using py2exe, a custom installer, etc. >> >> -- >> Marc-Andre Lemburg >> eGenix.com >> >> Professional Python Services directly from the Source (#1, Jul 22 2008) >>>>> 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,MacOSX for free ! :::: >> >> >> eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 >> D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg >> Registered at Amtsgericht Duesseldorf: HRB 46611 >> > > > -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Jul 22 2008) >>> 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,MacOSX for free ! :::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 From mal at egenix.com Tue Jul 22 20:45:41 2008 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jul 22 19:45:46 2008 Subject: [egenix-users] Problems deploying mx.DateTime In-Reply-To: <5146cf8f0807221040u2270afcdhf397fd587722c290@mail.gmail.com> References: <5146cf8f0807220853s7f76be7el1b18e0a8d2533162@mail.gmail.com> <48860C05.3070403@egenix.com> <5146cf8f0807221014l7a4c1ac1y9806d157b245b030@mail.gmail.com> <48861781.8090800@egenix.com> <5146cf8f0807221040u2270afcdhf397fd587722c290@mail.gmail.com> Message-ID: <48861CC5.1010308@egenix.com> [Please keep egenix-users on CC] On 2008-07-22 19:40, Weverton Gomes wrote: > I'm deploing a zip file and not a exe because I have another app in Delphi > who integrates with this app in Python through Python4Delphi. That's fine, but py2exe does in fact build a program.zip file with the Python code that it places into a directory with the needed DLLs. What it does nicely is to find all your module dependencies ... > When I put the mxDateTime pyd file inside my Delphi app dir, the error > change. Now it is: > > Traceback (most recent call last): > File "", line 1, in > File "C:\Program Files\Tron\Folha\Folha.pyz\engine\__init__.py", line 3, > in > File "C:\Program Files\Tron\Folha\Folha.pyz\engine\general\__init__.py", > line 3, in > File "C:\Program Files\Tron\Folha\Folha.pyz\engine\general\date_utils.py", > line 8, in > File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\__init__.py", line > 8, in > File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\DateTime.py", line > 28, in > File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\DateTime.py", line > 31, in modinit > ImportError: No module named string Well, then add the string module as well :-) > 2008/7/22 M.-A. Lemburg : > >> On 2008-07-22 19:14, Weverton Gomes wrote: >> >>> I'm just making a zip file. Inside it there are the following folders: >>> >>> elementtree >>> engine => (my app) >>> kinterbasdb >>> mx >>> >>> About mxDateTime.pyd, I already tried erase all other files (.py, .h, .c) >>> inside mx.DateTime.mxDateTime and leaving only mxDateTime.pyd. >>> >> Why would you do that ? >> >> When I did >>> this, I got the following error: >>> >>> Traceback (most recent call last): >>> File "", line 1, in >>> File "C:\Program Files\Tron\Folha\Folha.pyz\engine\__init__.py", line 3, >>> in >>> >>> File "C:\Program Files\Tron\Folha\Folha.pyz\engine\general\__init__.py", >>> line 3, in >>> File "C:\Program Files\Tron\Folha\Folha.pyz\engine\general\date_utils.py", >>> line 8, in >>> File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\__init__.py", line >>> 8, in >>> File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\DateTime.py", line >>> 9, in >>> ImportError: No module named mxDateTime >>> >>> I tryied, too, put mxDateTime.pyd on root of zip file, I got the same >>> error. >>> What is wrong with my deploy structure?? >>> >> It doesn't contain the files that are really needed for deployment. >> >> Instead of copying the source directory into your ZIP file, you >> should copy the installed version there, ie. what you find in >> C:\Python2.5\Lib\site-packages\mx\ >> >> Since Windows cannot load DLLs from ZIP files, you'll need to >> place the mxDateTime.pyd file into a directory on sys.path. >> >> BTW: You can avoid all these problems by using a tool like py2exe >> which will take care of bundling everything for you. >> >> >> >> Thanks, >>> >>> 2008/7/22 M.-A. Lemburg : >>> >>> On 2008-07-22 17:53, Weverton Gomes wrote: >>>> Hi, >>>>> I'm trying to deploy an application I've made, in a zip file. So, I >>>>> added >>>>> the folder mx (who is inside Python25\Lib\site-packages) but, when I try >>>>> to >>>>> run my app, I get the following error: >>>>> >>>>> **** You don't have the (right) mxDateTime binaries installed >>>>> >>>>> You get this error if Python cannot find the mxDateTime.pyd file which >>>> should be in the folder mx\DateTime\mxDateTime\. >>>> >>>> Traceback (most recent call last): >>>> >>>>> File "", line 1, in >>>>> File "C:\Program Files\Tron\Folha\Folha.pyz\engine\__init__.py", line 3, >>>>> in >>>>> >>>>> File "C:\Program Files\Tron\Folha\Folha.pyz\engine\general\__init__.py", >>>>> line 3, in >>>>> File "C:\Program >>>>> Files\Tron\Folha\Folha.pyz\engine\general\date_utils.py", >>>>> line 8, in >>>>> File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\__init__.py", >>>>> line >>>>> 8, in >>>>> File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\DateTime.py", >>>>> line >>>>> 9, in >>>>> File "C:\Program >>>>> Files\Tron\Folha\Folha.pyz\mx\DateTime\mxDateTime\__init__.py", line 13, >>>>> in >>>>> >>>>> >>>>> What can I do to solve this problem?? >>>>> >>>>> Well, it would help if you'd tell *how* you are deploying mxDateTime >>>> :-) >>>> E.g. whether you are using py2exe, a custom installer, etc. >>>> >>>> -- >>>> Marc-Andre Lemburg >>>> eGenix.com >>>> >>>> Professional Python Services directly from the Source (#1, Jul 22 2008) >>>> >>>>> 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,MacOSX for free ! :::: >>>> >>>> >>>> eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 >>>> D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg >>>> Registered at Amtsgericht Duesseldorf: HRB 46611 >>>> >>>> >>> >>> >> -- >> Marc-Andre Lemburg >> eGenix.com >> >> Professional Python Services directly from the Source (#1, Jul 22 2008) >>>>> 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,MacOSX for free ! :::: >> >> >> eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 >> D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg >> Registered at Amtsgericht Duesseldorf: HRB 46611 >> > > > -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Jul 22 2008) >>> 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,MacOSX for free ! :::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 From weverton at gmail.com Tue Jul 22 15:56:24 2008 From: weverton at gmail.com (Weverton Gomes) Date: Tue Jul 22 19:56:31 2008 Subject: [egenix-users] Problems deploying mx.DateTime In-Reply-To: <48861CC5.1010308@egenix.com> References: <5146cf8f0807220853s7f76be7el1b18e0a8d2533162@mail.gmail.com> <48860C05.3070403@egenix.com> <5146cf8f0807221014l7a4c1ac1y9806d157b245b030@mail.gmail.com> <48861781.8090800@egenix.com> <5146cf8f0807221040u2270afcdhf397fd587722c290@mail.gmail.com> <48861CC5.1010308@egenix.com> Message-ID: <5146cf8f0807221056w6c56d570m2eb93234d858b738@mail.gmail.com> I'm going to look better the py2exe. Where can I find the string module?? 2008/7/22 M.-A. Lemburg : > [Please keep egenix-users on CC] > > On 2008-07-22 19:40, Weverton Gomes wrote: > >> I'm deploing a zip file and not a exe because I have another app in Delphi >> who integrates with this app in Python through Python4Delphi. >> > > That's fine, but py2exe does in fact build a program.zip file > with the Python code that it places into a directory with the needed > DLLs. > > What it does nicely is to find all your module dependencies ... > > When I put the mxDateTime pyd file inside my Delphi app dir, the error >> change. Now it is: >> >> Traceback (most recent call last): >> File "", line 1, in >> File "C:\Program Files\Tron\Folha\Folha.pyz\engine\__init__.py", line 3, >> in >> File "C:\Program Files\Tron\Folha\Folha.pyz\engine\general\__init__.py", >> line 3, in >> File "C:\Program >> Files\Tron\Folha\Folha.pyz\engine\general\date_utils.py", >> line 8, in >> File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\__init__.py", >> line >> 8, in >> File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\DateTime.py", >> line >> 28, in >> File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\DateTime.py", >> line >> 31, in modinit >> ImportError: No module named string >> > > Well, then add the string module as well :-) > > > 2008/7/22 M.-A. Lemburg : >> >> On 2008-07-22 19:14, Weverton Gomes wrote: >>> >>> I'm just making a zip file. Inside it there are the following folders: >>>> >>>> elementtree >>>> engine => (my app) >>>> kinterbasdb >>>> mx >>>> >>>> About mxDateTime.pyd, I already tried erase all other files (.py, .h, >>>> .c) >>>> inside mx.DateTime.mxDateTime and leaving only mxDateTime.pyd. >>>> >>>> Why would you do that ? >>> >>> When I did >>> >>>> this, I got the following error: >>>> >>>> Traceback (most recent call last): >>>> File "", line 1, in >>>> File "C:\Program Files\Tron\Folha\Folha.pyz\engine\__init__.py", line 3, >>>> in >>>> >>>> File "C:\Program Files\Tron\Folha\Folha.pyz\engine\general\__init__.py", >>>> line 3, in >>>> File "C:\Program >>>> Files\Tron\Folha\Folha.pyz\engine\general\date_utils.py", >>>> line 8, in >>>> File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\__init__.py", >>>> line >>>> 8, in >>>> File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\DateTime.py", >>>> line >>>> 9, in >>>> ImportError: No module named mxDateTime >>>> >>>> I tryied, too, put mxDateTime.pyd on root of zip file, I got the same >>>> error. >>>> What is wrong with my deploy structure?? >>>> >>>> It doesn't contain the files that are really needed for deployment. >>> >>> Instead of copying the source directory into your ZIP file, you >>> should copy the installed version there, ie. what you find in >>> C:\Python2.5\Lib\site-packages\mx\ >>> >>> Since Windows cannot load DLLs from ZIP files, you'll need to >>> place the mxDateTime.pyd file into a directory on sys.path. >>> >>> BTW: You can avoid all these problems by using a tool like py2exe >>> which will take care of bundling everything for you. >>> >>> >>> >>> Thanks, >>> >>>> >>>> 2008/7/22 M.-A. Lemburg : >>>> >>>> On 2008-07-22 17:53, Weverton Gomes wrote: >>>> >>>>> Hi, >>>>> >>>>>> I'm trying to deploy an application I've made, in a zip file. So, I >>>>>> added >>>>>> the folder mx (who is inside Python25\Lib\site-packages) but, when I >>>>>> try >>>>>> to >>>>>> run my app, I get the following error: >>>>>> >>>>>> **** You don't have the (right) mxDateTime binaries installed >>>>>> >>>>>> You get this error if Python cannot find the mxDateTime.pyd file >>>>>> which >>>>>> >>>>> should be in the folder mx\DateTime\mxDateTime\. >>>>> >>>>> Traceback (most recent call last): >>>>> >>>>> File "", line 1, in >>>>>> File "C:\Program Files\Tron\Folha\Folha.pyz\engine\__init__.py", line >>>>>> 3, >>>>>> in >>>>>> >>>>>> File "C:\Program >>>>>> Files\Tron\Folha\Folha.pyz\engine\general\__init__.py", >>>>>> line 3, in >>>>>> File "C:\Program >>>>>> Files\Tron\Folha\Folha.pyz\engine\general\date_utils.py", >>>>>> line 8, in >>>>>> File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\__init__.py", >>>>>> line >>>>>> 8, in >>>>>> File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\DateTime.py", >>>>>> line >>>>>> 9, in >>>>>> File "C:\Program >>>>>> Files\Tron\Folha\Folha.pyz\mx\DateTime\mxDateTime\__init__.py", line >>>>>> 13, >>>>>> in >>>>>> >>>>>> >>>>>> What can I do to solve this problem?? >>>>>> >>>>>> Well, it would help if you'd tell *how* you are deploying mxDateTime >>>>>> >>>>> :-) >>>>> E.g. whether you are using py2exe, a custom installer, etc. >>>>> >>>>> -- >>>>> Marc-Andre Lemburg >>>>> eGenix.com >>>>> >>>>> Professional Python Services directly from the Source (#1, Jul 22 >>>>> 2008) >>>>> >>>>> 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,MacOSX for free ! >>>>> :::: >>>>> >>>>> >>>>> eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 >>>>> D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg >>>>> Registered at Amtsgericht Duesseldorf: HRB 46611 >>>>> >>>>> >>>>> >>>> >>>> -- >>> Marc-Andre Lemburg >>> eGenix.com >>> >>> Professional Python Services directly from the Source (#1, Jul 22 2008) >>> >>>> 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,MacOSX for free ! :::: >>> >>> >>> eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 >>> D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg >>> Registered at Amtsgericht Duesseldorf: HRB 46611 >>> >>> >> >> >> > -- > Marc-Andre Lemburg > eGenix.com > > Professional Python Services directly from the Source (#1, Jul 22 2008) > >>> 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,MacOSX for free ! :::: > > > eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 > D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg > Registered at Amtsgericht Duesseldorf: HRB 46611 > -- Weverton Gomes de Morais Tecn?logo em Redes de Comunica??o Desenvolvedor Delphi Entusiasta Ruby/Rails "Todos juntos somos fortes" -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20080722/d4fae5c7/attachment.htm From weverton at gmail.com Tue Jul 22 17:12:25 2008 From: weverton at gmail.com (Weverton Gomes) Date: Tue Jul 22 21:12:31 2008 Subject: [egenix-users] Problems deploying mx.DateTime In-Reply-To: <5146cf8f0807221056w6c56d570m2eb93234d858b738@mail.gmail.com> References: <5146cf8f0807220853s7f76be7el1b18e0a8d2533162@mail.gmail.com> <48860C05.3070403@egenix.com> <5146cf8f0807221014l7a4c1ac1y9806d157b245b030@mail.gmail.com> <48861781.8090800@egenix.com> <5146cf8f0807221040u2270afcdhf397fd587722c290@mail.gmail.com> <48861CC5.1010308@egenix.com> <5146cf8f0807221056w6c56d570m2eb93234d858b738@mail.gmail.com> Message-ID: <5146cf8f0807221212k57956d42uaa167e8936ed11fe@mail.gmail.com> I've tryied py2exe, but I'm still getting the error: "No module name string". Where can I find this module?? Is missing any .pyd file?? Thanks, 2008/7/22 Weverton Gomes : > I'm going to look better the py2exe. > > Where can I find the string module?? > > > 2008/7/22 M.-A. Lemburg : > >> [Please keep egenix-users on CC] >> >> On 2008-07-22 19:40, Weverton Gomes wrote: >> >>> I'm deploing a zip file and not a exe because I have another app in >>> Delphi >>> who integrates with this app in Python through Python4Delphi. >>> >> >> That's fine, but py2exe does in fact build a program.zip file >> with the Python code that it places into a directory with the needed >> DLLs. >> >> What it does nicely is to find all your module dependencies ... >> >> When I put the mxDateTime pyd file inside my Delphi app dir, the error >>> change. Now it is: >>> >>> Traceback (most recent call last): >>> File "", line 1, in >>> File "C:\Program Files\Tron\Folha\Folha.pyz\engine\__init__.py", line 3, >>> in >>> File "C:\Program Files\Tron\Folha\Folha.pyz\engine\general\__init__.py", >>> line 3, in >>> File "C:\Program >>> Files\Tron\Folha\Folha.pyz\engine\general\date_utils.py", >>> line 8, in >>> File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\__init__.py", >>> line >>> 8, in >>> File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\DateTime.py", >>> line >>> 28, in >>> File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\DateTime.py", >>> line >>> 31, in modinit >>> ImportError: No module named string >>> >> >> Well, then add the string module as well :-) >> >> >> 2008/7/22 M.-A. Lemburg : >>> >>> On 2008-07-22 19:14, Weverton Gomes wrote: >>>> >>>> I'm just making a zip file. Inside it there are the following folders: >>>>> >>>>> elementtree >>>>> engine => (my app) >>>>> kinterbasdb >>>>> mx >>>>> >>>>> About mxDateTime.pyd, I already tried erase all other files (.py, .h, >>>>> .c) >>>>> inside mx.DateTime.mxDateTime and leaving only mxDateTime.pyd. >>>>> >>>>> Why would you do that ? >>>> >>>> When I did >>>> >>>>> this, I got the following error: >>>>> >>>>> Traceback (most recent call last): >>>>> File "", line 1, in >>>>> File "C:\Program Files\Tron\Folha\Folha.pyz\engine\__init__.py", line >>>>> 3, >>>>> in >>>>> >>>>> File "C:\Program >>>>> Files\Tron\Folha\Folha.pyz\engine\general\__init__.py", >>>>> line 3, in >>>>> File "C:\Program >>>>> Files\Tron\Folha\Folha.pyz\engine\general\date_utils.py", >>>>> line 8, in >>>>> File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\__init__.py", >>>>> line >>>>> 8, in >>>>> File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\DateTime.py", >>>>> line >>>>> 9, in >>>>> ImportError: No module named mxDateTime >>>>> >>>>> I tryied, too, put mxDateTime.pyd on root of zip file, I got the same >>>>> error. >>>>> What is wrong with my deploy structure?? >>>>> >>>>> It doesn't contain the files that are really needed for deployment. >>>> >>>> Instead of copying the source directory into your ZIP file, you >>>> should copy the installed version there, ie. what you find in >>>> C:\Python2.5\Lib\site-packages\mx\ >>>> >>>> Since Windows cannot load DLLs from ZIP files, you'll need to >>>> place the mxDateTime.pyd file into a directory on sys.path. >>>> >>>> BTW: You can avoid all these problems by using a tool like py2exe >>>> which will take care of bundling everything for you. >>>> >>>> >>>> >>>> Thanks, >>>> >>>>> >>>>> 2008/7/22 M.-A. Lemburg : >>>>> >>>>> On 2008-07-22 17:53, Weverton Gomes wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>>> I'm trying to deploy an application I've made, in a zip file. So, I >>>>>>> added >>>>>>> the folder mx (who is inside Python25\Lib\site-packages) but, when I >>>>>>> try >>>>>>> to >>>>>>> run my app, I get the following error: >>>>>>> >>>>>>> **** You don't have the (right) mxDateTime binaries installed >>>>>>> >>>>>>> You get this error if Python cannot find the mxDateTime.pyd file >>>>>>> which >>>>>>> >>>>>> should be in the folder mx\DateTime\mxDateTime\. >>>>>> >>>>>> Traceback (most recent call last): >>>>>> >>>>>> File "", line 1, in >>>>>>> File "C:\Program Files\Tron\Folha\Folha.pyz\engine\__init__.py", line >>>>>>> 3, >>>>>>> in >>>>>>> >>>>>>> File "C:\Program >>>>>>> Files\Tron\Folha\Folha.pyz\engine\general\__init__.py", >>>>>>> line 3, in >>>>>>> File "C:\Program >>>>>>> Files\Tron\Folha\Folha.pyz\engine\general\date_utils.py", >>>>>>> line 8, in >>>>>>> File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\__init__.py", >>>>>>> line >>>>>>> 8, in >>>>>>> File "C:\Program Files\Tron\Folha\Folha.pyz\mx\DateTime\DateTime.py", >>>>>>> line >>>>>>> 9, in >>>>>>> File "C:\Program >>>>>>> Files\Tron\Folha\Folha.pyz\mx\DateTime\mxDateTime\__init__.py", line >>>>>>> 13, >>>>>>> in >>>>>>> >>>>>>> >>>>>>> What can I do to solve this problem?? >>>>>>> >>>>>>> Well, it would help if you'd tell *how* you are deploying mxDateTime >>>>>>> >>>>>> :-) >>>>>> E.g. whether you are using py2exe, a custom installer, etc. >>>>>> >>>>>> -- >>>>>> Marc-Andre Lemburg >>>>>> eGenix.com >>>>>> >>>>>> Professional Python Services directly from the Source (#1, Jul 22 >>>>>> 2008) >>>>>> >>>>>> 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,MacOSX for free ! >>>>>> :::: >>>>>> >>>>>> >>>>>> eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 >>>>>> D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg >>>>>> Registered at Amtsgericht Duesseldorf: HRB 46611 >>>>>> >>>>>> >>>>>> >>>>> >>>>> -- >>>> Marc-Andre Lemburg >>>> eGenix.com >>>> >>>> Professional Python Services directly from the Source (#1, Jul 22 2008) >>>> >>>>> 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,MacOSX for free ! :::: >>>> >>>> >>>> eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 >>>> D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg >>>> Registered at Amtsgericht Duesseldorf: HRB 46611 >>>> >>>> >>> >>> >>> >> -- >> Marc-Andre Lemburg >> eGenix.com >> >> Professional Python Services directly from the Source (#1, Jul 22 2008) >> >>> 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,MacOSX for free ! :::: >> >> >> eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 >> D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg >> Registered at Amtsgericht Duesseldorf: HRB 46611 >> > > > > -- > Weverton Gomes de Morais > Tecn?logo em Redes de Comunica??o > Desenvolvedor Delphi > Entusiasta Ruby/Rails > "Todos juntos somos fortes" > -- Weverton Gomes de Morais Tecn?logo em Redes de Comunica??o Desenvolvedor Delphi Entusiasta Ruby/Rails "Todos juntos somos fortes" -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20080722/6f1aaad1/attachment.htm