ImportError: No module named ctype

1,638 views
Skip to first unread message

gostakraken

unread,
Feb 13, 2008, 12:27:20 AM2/13/08
to pyglet-users
hello,

I just installed pyglet and got the following:

>>> from pyglet import font

Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from pyglet import font
File "C:\Python25\Lib\site-packages\pyglet\__init__.py", line 67, in
<module>
_require_ctypes_version('1.0.0')
File "C:\Python25\Lib\site-packages\pyglet\__init__.py", line 62, in
_require_ctypes_version
import ctypes
ImportError: No module named ctypes

i'm running python 2.5 and assumed ctypes was included. can somebody
steer me in the right direction? thanks,
g.

Drew Smathers

unread,
Feb 13, 2008, 10:39:18 AM2/13/08
to pyglet...@googlegroups.com

Are you on Win64  or did you somehow install Python with the wrong installer by any chance?  From python 2.5 release notes:

- Patch #1545507: Exclude ctypes package in Win64 MSI file.

Just a shot in the dark ...

Cheers,
--
\\\\\/\"/\\\\\\\\\\\
\\\\/ // //\/\\\\\\\
\\\/  \\// /\ \/\\\\
\\/ /\/ / /\/ /\ \\\
\/ / /\/ /\  /\\\ \\
/ /\\\  /\\\ \\\\\/\
\/\\\\\/\\\\\/\\\\\\
              d.p.s

gostakraken

unread,
Feb 13, 2008, 2:11:19 PM2/13/08
to pyglet-users
Thanks Drew, yes i'm using XP x64 and should have mentioned that. I
scrounged around at Sourceforge and installed the x64 bit version of
ctypes and can import now. unfortunately the "hello world" example in
the pyglet manual explodes with variable overrun errors. i can only
conclude that it's a word length issue.

am up a creek? thanks,

gostakraken.
,---.
(@ @)
).-.(
'/|||\`
'|`
"Never underestimate the power of squid..."

On Feb 13, 7:39 am, "Drew Smathers" <drew.smath...@gmail.com> wrote:
>               d.p.s- Hide quoted text -
>
> - Show quoted text -

Drew Smathers

unread,
Feb 13, 2008, 2:30:48 PM2/13/08
to pyglet...@googlegroups.com
On Feb 13, 2008 2:11 PM, gostakraken <kakene...@yahoo.com> wrote:

Thanks Drew, yes i'm using XP x64 and should have mentioned that. I
scrounged around at Sourceforge and installed the x64 bit version of
ctypes and can import now. unfortunately the "hello world" example in
the pyglet manual explodes with variable overrun errors. i can only
conclude that it's a word length issue.

Perhaps.  Post a stacktrace and maybe someone with a healthy level of ctypes foo or Windows experience can help you.

Richard Jones

unread,
Feb 13, 2008, 3:57:14 PM2/13/08
to pyglet...@googlegroups.com
On Thu, 14 Feb 2008, gostakraken wrote:
> Thanks Drew, yes i'm using XP x64 and should have mentioned that. I
> scrounged around at Sourceforge and installed the x64 bit version of
> ctypes and can import now. unfortunately the "hello world" example in
> the pyglet manual explodes with variable overrun errors. i can only
> conclude that it's a word length issue.
>
> am up a creek? thanks,

pyglet is not supported on 64-bit windows at present (until very recently the
developers did not have access to such a machine and now only occasionally
do). Bug reports are welcome - please see the website.


Richard

Alex Holkner

unread,
Feb 13, 2008, 5:02:44 PM2/13/08
to pyglet...@googlegroups.com

While not supported, pyglet should work on 64-bit windows under a
32-bit Python. Under 64-bit Python pyglet will absolutely not work,
don't bother posting bug reports (use Linux/64 if you need oodles of
memory) .

Alex.

Reply all
Reply to author
Forward
0 new messages