problems with installer 20_3i 
Author Message
 problems with installer 20_3i

After running:

python standalone.py bw.py

It seems to go ok, but when trying to run the .exe, I get:

C:\Python\install\dist_bw>bw
Traceback (most recent call last):
  File "<string>", line 3, in ?
  File "c:\python\lib\imputil.py", line 91, in _import_hook
    raise ImportError, 'No module named ' + fqname
ImportError: No module named time

What did I do wrong?

Thanks,
Scott



Wed, 21 May 2003 13:03:54 GMT  
 problems with installer 20_3i

Quote:

>After running:

>python standalone.py bw.py

>It seems to go ok, but when trying to run the .exe, I get:

>C:\Python\install\dist_bw>bw
>Traceback (most recent call last):
>  File "<string>", line 3, in ?
>  File "c:\python\lib\imputil.py", line 91, in _import_hook
>    raise ImportError, 'No module named ' + fqname
>ImportError: No module named time

I use simple and get exactly the same error.

Per



Wed, 21 May 2003 03:00:00 GMT  
 problems with installer 20_3i

Quote:
> After running:

> python standalone.py bw.py

> It seems to go ok, but when trying to run the .exe, I get:

> C:\Python\install\dist_bw>bw
> Traceback (most recent call last):
>   File "<string>", line 3, in ?
>   File "c:\python\lib\imputil.py", line 91, in _import_hook
>     raise ImportError, 'No module named ' + fqname
> ImportError: No module named time

> What did I do wrong?

i'm also using the whrandom module (which needs time to seed)
and got the same error. i tried all manner of getting time
included. importing it, importing and using it. even adding
time into the dependencies.

i just blamed it on my weak understanding of the tools :]
but perhaps i am not alone?

i got this error on windows, the time module is builtin
on my python 2.0



Wed, 21 May 2003 03:00:00 GMT  
 problems with installer 20_3i
[posted and mailed]

Quote:

>After running:

>python standalone.py bw.py

>It seems to go ok, but when trying to run the .exe, I get:

>C:\Python\install\dist_bw>bw
>Traceback (most recent call last):
>  File "<string>", line 3, in ?
>  File "c:\python\lib\imputil.py", line 91, in _import_hook
>    raise ImportError, 'No module named ' + fqname
>ImportError: No module named time

>What did I do wrong?

Nothing. Barry Scott just pointed out to me that the Python 2.0 imputil
does not by default install any method of importing builtins (even though
it installs, by default, a file system importer).

Untested: at the top level of archive_rt (after the imports), put:

sys.path.append(imputil.BuiltinImporter())

archive_rt will be imported by the C code long before your script runs, so
builtins should be available.

- Gordon



Thu, 22 May 2003 03:00:00 GMT  
 problems with installer 20_3i

Quote:
> Nothing. Barry Scott just pointed out to me that the Python 2.0 imputil
> does not by default install any method of importing builtins (even though
> it installs, by default, a file system importer).

> Untested: at the top level of archive_rt (after the imports), put:

> sys.path.append(imputil.BuiltinImporter())

i've been trying to get this going with my own stuff.
i used the "Freeze.py" script to build my EXE. i made this change
to archive_rt.py. i'm no longer getting the problem with the 'time'
module, but having trouble using one of my extension modules.

"ImportError: no module named pygame.base"

i looked in the "Builder.log", and at the bottom, this module
is definitely getting put into the EXE...

Final Table of Contents for aliens.exe:
[('win32api', 'c:\\python\\win32\\win32api.pyd', 'b'),
 ('pygame.key', 'c:\\python\\pygame\\key.pyd', 'b'),
 ('pygame.cdrom', 'c:\\python\\pygame\\cdrom.pyd', 'b'),
 ('pygame.surface', 'c:\\python\\pygame\\surface.pyd', 'b'),
 ('pygame.display', 'c:\\python\\pygame\\display.pyd', 'b'),
 ('PyWinTypes20.dll', 'C:\\WIN\\SYSTEM\\PyWinTypes20.dll', 'b'),
 ('pygame.rect', 'c:\\python\\pygame\\rect.pyd', 'b'),
 ('pygame.mixer', 'c:\\python\\pygame\\mixer.pyd', 'b'),
 ('pygame.image', 'c:\\python\\pygame\\image.pyd', 'b'),
 ('pygame.joystick', 'c:\\python\\pygame\\joystick.pyd', 'b'),
 ('pygame.font', 'c:\\python\\pygame\\font.pyd', 'b'),
 ('pygame.constants', 'c:\\python\\pygame\\constants.pyd', 'b'),
 ('pygame.event', 'c:\\python\\pygame\\event.pyd', 'b'),
 ('pygame.time', 'c:\\python\\pygame\\time.pyd', 'b'),
 ('pygame.base', 'c:\\python\\pygame\\base.pyd', 'b'),
 <<<snip>>>

this whole installer is still a 'black-art' to me, so it's tough
for me to figure out any problems.

in need of clues :]



Mon, 26 May 2003 15:35:16 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Problems including other installers with the install of my labview application

2. Problem with the eiffel50_31 installer

3. DLL problem in upgrade from 172 to 173 (one click windows installer)

4. Problem with IRB when using Windows Installer Ruby 166-0

5. Problems creating an app with the McMillan installer

6. Installer problem with NT/ KERNEN32.dll error

7. Four problems with Gordon McMillan's Installer

8. Installer Problem

9. problem with installer

10. Problems with Gordon's installer

11. BIG problems with Gordon's installer

12. McMillan's Installer problem with win32com

 

 
Powered by phpBB® Forum Software