Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
#71: Import decimal error in iu.py
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Pyinstaller  
View profile  
 More options Jun 25 2009, 11:38 am
From: "Pyinstaller" <t...@pyinstaller.org>
Date: Thu, 25 Jun 2009 15:38:10 -0000
Local: Thurs, Jun 25 2009 11:38 am
Subject: [Pyinstaller] #71: Import decimal error in iu.py
#71: Import decimal error in iu.py
------------------------------------+-------------------------------------- -
 Reporter:  oldmantag...@gmail.com  |       Owner:  giovannibajo
     Type:  defect                  |      Status:  new        
 Priority:  normal                  |   Milestone:              
Component:  PyInstaller             |     Version:              
 Severity:  normal                  |    Keywords:              
------------------------------------+-------------------------------------- -
 It seems pyinstaller has some issues with importing cx_Oracle. When
 running an exe created from a .py file with one line "import cx_Oracle" I
 get back a lengthy error message that ends with "ImportError: No module
 named decimal" (entire message below). If I add "import decimal" above
 "import cx_Oracle" everything seems to work fine. Note that the one line
 program 'import cx_Oracle' is executed with no issue before packaging to
 an exe.

 The following are the pyinstaller commands I used:
 Makespec.py -F ImportTest.py
 Build.py ImportTest\ImportTest.spec

 I am working on Windows XP, PyInstaller 1.3 (downloaded in early February
 if it matters), Python 2.5, cx_Oracle version 5.0.2-10g for Python 2.5,
 and Oracle 10g v 10.2.0.

 ----ERROR MESSAGE----
 C:\pyinstaller-1.3>ImportTest\ImportTest.exe
 Traceback (most recent call last):
   File "<string>", line 1, in <module>
   File "C:\pyinstaller-1.3\iu.py", line 312, in importHook
     mod = _self_doimport(nm, ctx, fqname)
   File "C:\pyinstaller-1.3\iu.py", line 382, in doimport
     mod = director.getmod(nm)
   File "C:\pyinstaller-1.3\iu.py", line 215, in getmod
     mod = owner.getmod(nm)
   File "C:\pyinstaller-1.3\iu.py", line 77, in getmod
     mod = imp.load_module(nm, fp, attempt, (ext, mode, typ))
   File "C:\pyinstaller-1.3\iu.py", line 334, in importHook
     raise ImportError, "No module named %s" % fqname
 ImportError: No module named decimal

--
Ticket URL: <http://www.pyinstaller.org/ticket/71>
Pyinstaller <http://www.pyinstaller.org>
PyInstaller Project


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
PyInstaller Ticket  
View profile  
 More options Mar 12, 2:56 pm
From: "PyInstaller Ticket" <t...@pyinstaller.org>
Date: Fri, 12 Mar 2010 19:56:34 -0000
Local: Fri, Mar 12 2010 2:56 pm
Subject: Re: [Pyinstaller] #71: Import decimal error in iu.py
#71: Import decimal error in iu.py
------------------------------------+-------------------------------------- -
 Reporter:  oldmantaggie@…          |        Owner:  giovannibajo  
     Type:  defect                  |       Status:  closed        
 Priority:  normal                  |    Milestone:  PyInstaller 1.4
Component:  PyInstaller             |      Version:                
 Severity:  normal                  |   Resolution:  fixed          
 Keywords:                          |  
------------------------------------+-------------------------------------- -
Changes (by giovannibajo):

  * status:  new => closed
  * resolution:  => fixed
  * milestone:  => PyInstaller 1.4

Old description:

New description:

 It seems pyinstaller has some issues with importing cx_Oracle. When
 running an exe created from a .py file with one line "import cx_Oracle" I
 get back a lengthy error message that ends with "ImportError: No module
 named decimal" (entire message below). If I add "import decimal" above
 "import cx_Oracle" everything seems to work fine. Note that the one line
 program 'import cx_Oracle' is executed with no issue before packaging to
 an exe.

 The following are the pyinstaller commands I used:
 {{{
 Makespec.py -F ImportTest.py
 Build.py ImportTest\ImportTest.spec
 }}}

 I am working on Windows XP, PyInstaller 1.3 (downloaded in early February
 if it matters), Python 2.5, cx_Oracle version 5.0.2-10g for Python 2.5,
 and Oracle 10g v 10.2.0.

 {{{
 ----ERROR MESSAGE----
 C:\pyinstaller-1.3>ImportTest\ImportTest.exe
 Traceback (most recent call last):
   File "<string>", line 1, in <module>
   File "C:\pyinstaller-1.3\iu.py", line 312, in importHook
     mod = _self_doimport(nm, ctx, fqname)
   File "C:\pyinstaller-1.3\iu.py", line 382, in doimport
     mod = director.getmod(nm)
   File "C:\pyinstaller-1.3\iu.py", line 215, in getmod
     mod = owner.getmod(nm)
   File "C:\pyinstaller-1.3\iu.py", line 77, in getmod
     mod = imp.load_module(nm, fp, attempt, (ext, mode, typ))
   File "C:\pyinstaller-1.3\iu.py", line 334, in importHook
     raise ImportError, "No module named %s" % fqname
 ImportError: No module named decimal
 }}}

--

Comment:

 Confirmed. cx_Oracle does a hidden import of decimal.

 Fixed in [777] with a new import hook.

--
Ticket URL: <http://www.pyinstaller.org/ticket/71#comment:1>
Pyinstaller <http://www.pyinstaller.org>
PyInstaller Project


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google