web2py 1.66.1 (win) zipimport.ZipImportError

32 views
Skip to first unread message

rppowell

unread,
Aug 18, 2009, 11:21:00 PM8/18/09
to web2py-users
Hey guys;

I downloaded web2py from http://www.web2py.com/examples/static/web2py_win.zip
and unzipped it to a temporary directory.

I tried running web2py and got this error on the console:

F:\PortableDev\web2py>web2py.exe
Traceback (most recent call last):
File "web2py.py", line 3, in <module>
zipimport.ZipImportError: can't find module 'gluon'

F:\PortableDev\web2py>

Is the web2py_win.zip archive missing something/corrupted?

-rppowell

Yarko Tymciurak

unread,
Aug 19, 2009, 12:27:22 AM8/19/09
to web...@googlegroups.com
Indeed - I get the same, although there is library/gluon - it's not found...

Jonathan Lundell

unread,
Aug 19, 2009, 1:55:04 AM8/19/09
to web...@googlegroups.com
On Aug 18, 2009, at 9:27 PM, Yarko Tymciurak wrote:

Indeed - I get the same, although there is library/gluon - it's not found...

OS X version, too. The source copy works OK, though.

mdipierro

unread,
Aug 21, 2009, 3:34:00 AM8/21/09
to web2py-users
works for me. are you sure it is not a download problem?

On Aug 19, 12:55 am, Jonathan Lundell <jlund...@pobox.com> wrote:
> On Aug 18, 2009, at 9:27 PM, Yarko Tymciurak wrote:
>
> > Indeed - I get the same, although there is library/gluon - it's not  
> > found...
>
> OS X version, too. The source copy works OK, though.
>
>
>
> > On Tue, Aug 18, 2009 at 10:21 PM, rppowell <rppow...@hotmail.com>  
> > wrote:
>
> > Hey guys;
>
> > I downloaded web2py fromhttp://www.web2py.com/examples/static/web2py_win.zip

omar.w...@gmail.com

unread,
Aug 21, 2009, 7:13:17 AM8/21/09
to web2py-users
I have the same problem here :(.

On 21 aug, 09:34, mdipierro <mdipie...@cs.depaul.edu> wrote:
> works for me. are you sure it is not a download problem?
>
> On Aug 19, 12:55 am, Jonathan Lundell <jlund...@pobox.com> wrote:
>
> > On Aug 18, 2009, at 9:27 PM, Yarko Tymciurak wrote:
>
> > > Indeed - I get the same, although there is library/gluon- it's not  
> > > found...
>
> > OS X version, too. The source copy works OK, though.
>
> > > On Tue, Aug 18, 2009 at 10:21 PM, rppowell <rppow...@hotmail.com>  
> > > wrote:
>
> > > Hey guys;
>
> > > I downloaded web2py fromhttp://www.web2py.com/examples/static/web2py_win.zip
> > > and unzipped it to a temporary directory.
>
> > > I tried running web2py and got this error on the console:
>
> > > F:\PortableDev\web2py>web2py.exe
> > > Traceback (most recent call last):
> > >  File "web2py.py", line 3, in <module>
> > > zipimport.ZipImportError:can'tfindmodule'gluon'

Ahmed Soliman

unread,
Aug 21, 2009, 9:11:31 AM8/21/09
to web2py-users
same problem here on mac. source version works.

On Aug 21, 2:13 pm, "omar.webs...@gmail.com" <omar.webs...@gmail.com>
wrote:

omar.w...@gmail.com

unread,
Aug 21, 2009, 9:28:36 AM8/21/09
to web2py-users
:(, I don't want to be an asshole but these things don't make a good
reputation for web2py :(.

Hopefully someone else or Massimo can fix this :).

Jonathan Lundell

unread,
Aug 21, 2009, 10:46:11 AM8/21/09
to web...@googlegroups.com
On Aug 21, 2009, at 12:34 AM, mdipierro wrote:

>
> works for me. are you sure it is not a download problem?

Fairly sure, yes. Download problems have been showing up as truncated
files and a failed unzip. These look good (though it'd be nice to have
a hash of the download files to know for sure; something to think
about for the future).

And we're seeing exactly the same message, consistently, for both OS X
and Windows.

Here's the error from my console log.

8/21/09 7:42:39 AM
[0x0-0x205205].org.pythonmac.unspecified.web2py[10884] Traceback (most
recent call last):
8/21/09 7:42:39 AM
[0x0-0x205205].org.pythonmac.unspecified.web2py[10884] File "/Users/
jlundell/Downloads/web2py/web2py.app/Contents/Resources/__boot__.py",
line 137, in <module>
8/21/09 7:42:39 AM
[0x0-0x205205].org.pythonmac.unspecified.web2py[10884]
_run('web2py.py')
8/21/09 7:42:39 AM
[0x0-0x205205].org.pythonmac.unspecified.web2py[10884] File "/Users/
jlundell/Downloads/web2py/web2py.app/Contents/Resources/__boot__.py",
line 134, in _run
8/21/09 7:42:39 AM
[0x0-0x205205].org.pythonmac.unspecified.web2py[10884]
execfile(path, globals(), globals())
8/21/09 7:42:39 AM
[0x0-0x205205].org.pythonmac.unspecified.web2py[10884] File "/Users/
jlundell/Downloads/web2py/web2py.app/Contents/Resources/web2py.py",
line 3, in <module>
8/21/09 7:42:39 AM
[0x0-0x205205].org.pythonmac.unspecified.web2py[10884] import
gluon.import_all
8/21/09 7:42:39 AM
[0x0-0x205205].org.pythonmac.unspecified.web2py[10884] zipimport
8/21/09 7:42:39 AM
[0x0
-0x205205].org.pythonmac.unspecified.web2py[10884] .ZipImportError:

can't find module 'gluon'

8/21/09 7:42:40 AM web2py[10884] web2py Error
8/21/09 7:42:40 AM web2py[10884] web2py Error
An unexpected error has occurred during execution of the main script

ZipImportError: can't find module 'gluon'

8/21/09 7:42:47 AM com.apple.launchd[166]
([0x0-0x205205].org.pythonmac.unspecified.web2py[10884]) Exited with
exit code: 255

Yarko Tymciurak

unread,
Aug 21, 2009, 12:38:38 PM8/21/09
to web...@googlegroups.com
On Fri, Aug 21, 2009 at 2:34 AM, mdipierro <mdip...@cs.depaul.edu> wrote:

works for me. are you sure it is not a download problem?

Pretty sure - have a previous *.exe; sizes are comparable; tried to compare contained files, to see if localtion was an issue (as I recall, all the files lined up)...
 

mdipierro

unread,
Aug 21, 2009, 1:11:46 PM8/21/09
to web2py-users
I reverted the binary versions to 1.65.11 for now.

I identified the problem. I installed Enthought Python and that must
have changed something in my python distribution. In particular it
creates gluon/*.pyc file with a different magic number than expected
by the binary python distribution that comes with web2py_osx/win. That
fails the import.

I am not sure how to fix this and I doubt I will be able to fix this
until Monday or Tuesday.
Anyway I will look into this asap. Sorry about this problem.

Note to self... never release new version before going hiking.

Massimo


On Aug 21, 11:38 am, Yarko Tymciurak <yark...@gmail.com> wrote:

mdipierro

unread,
Aug 21, 2009, 1:31:04 PM8/21/09
to web2py-users
I found the problem!

It was not Enthought. It was stackless. It replaced itself as default
python installation.

I am rebuilding the binaries as we speak. If I manage to upload 1.66.2
tonight from the Internet Cafe where I am at, please give it a try. I
may also have fixed (temporarily) the file unlocking problem that some
users have reported on Vista/win32.

I shut down the server temporarily to speed up download. Sorry. I will
be up again shortly.

Massimo

Pynthon

unread,
Aug 21, 2009, 1:45:22 PM8/21/09
to web...@googlegroups.com
Lol a few minutes before I posted a post on my blog about it and now it is kinda fixed! Great Massimo! And sure, no problem....

2009/8/21 Yarko Tymciurak <yar...@gmail.com>

Pynthon

unread,
Aug 21, 2009, 1:54:15 PM8/21/09
to web...@googlegroups.com
btw enjoy your holiday.....

2009/8/21 Pynthon <omar.w...@gmail.com>



--
Please visit my blog pynthon.naar.info

Iceberg

unread,
Aug 21, 2009, 11:28:31 PM8/21/09
to web2py-users
On Aug22, 1:11am, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> Note to self... never release new version before going hiking.
>
> Massimo

Or you can release it in a name "1.x.x hiking version", hiking here
means beta. :-P

PS: This post is of course a "joking version". :-)

Regards,
Iceberg

Jason Brower

unread,
Aug 22, 2009, 12:37:19 AM8/22/09
to web...@googlegroups.com
It's ok, your still awesome. :þ
Besides, hiking is something I think a lot of use should be doing on a
weekend like this. (But I am programming.)
Regards,
Jason
Reply all
Reply to author
Forward
0 new messages