Issue #105 open

ImportError: No module named scrap on Windows 7 x64

Mahmoud Hossam
created an issue

I have installed Python 3.2 (32-bit) and pygame 1.9.2 on windows 7 using the installers on the website, but I get an ImportError when trying to access pygame's help inside the interpreter



Python 3.2.2 (default, Sep 4 2011, 09:51:08) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information.

import pygame pygame.init() (6, 0) help(pygame)

Warning (from warnings module): File "C:\Python32\lib\", line 103 return (hasattr(object, "get") RuntimeWarning: use scrap: No module named scrap (ImportError: No module named scrap) Traceback (most recent call last): File "<pyshell#2>", line 1, in <module> help(pygame) File "C:\Python32\lib\", line 457, in call return, kwds) File "C:\Python32\lib\", line 1754, in call File "C:\Python32\lib\", line 1804, in help else: doc(request, 'Help on %s:', output=self._output) File "C:\Python32\lib\", line 1540, in doc pager(render_doc(thing, title, forceload)) File "C:\Python32\lib\", line 1533, in render_doc return title % desc + '\n\n' + renderer.document(object, name) File "C:\Python32\lib\", line 338, in document if inspect.ismodule(object): return self.docmodule(args) File "C:\Python32\lib\", line 1064, in docmodule for key, value in inspect.getmembers(object, inspect.isroutine): File "C:\Python32\lib\", line 263, in getmembers if not predicate or predicate(value): File "C:\Python32\lib\", line 248, in isroutine or ismethoddescriptor(object)) File "C:\Python32\lib\", line 103, in ismethoddescriptor return (hasattr(object, "get") File "C:\Python32\lib\site-packages\", line 70, in getattr__ raise NotImplementedError(MissingPygameModule) NotImplementedError: scrap module not available (ImportError: No module named scrap) }}}

Comments (7)

  1. Anonymous

    +1, I also have this error and was wondering if it was a bug in the distribution or my installation

  2. Lenard Lindstrom

    Fix bytes decoding problem in example (refs #105)

    On Windows, the '\ufffd' unicode replacement character is not recognized. So, for the 'replace' decoding errors option, a UnicodeEncodingError exception is raised for non-ascii bytes. The 'ignore' errors option, though less informative, raises no exceptions.


  3. Lenard Lindstrom

    My concern regarding binary data in the clipboard was unfounded. It was a problem with pygame.examples.scrap_clipboard, not pygame.scrap. So please give scrap another try on Windows. If there are no more concerns I will close this issue.

  4. Log in to comment