-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/06/2010 01:35 AM, mdipierro wrote: > You may need mark hammond win32 extensions > Further I can confirm that pyserial works in conjugation with web2py (Latest trunk included).
- -- Praneeth > On May 5, 2:29 pm, frankz <[email protected]> wrote: >> hi all, >> I want to import pyserial package. however, got an import error. I >> tried a really simple module and it imports just fine. I am not sure >> which problem is it. >> >> thanks for help! >> >> Controller >> ======= >> >> def start(): >> import sys >> path = "C:\\Documents and Settings\\frank.zhu\\My Documents\ >> \Downloads\\web2py\\site-packages\\" >> if path not in sys.path: >> sys.path.append(path) >> # kick off the serial driver >> import serial >> # update bus state in the database >> return dict(session.bus) >> >> Error >> ==== >> >> Traceback (most recent call last): >> File "gluon/restricted.py", line 178, in restricted >> File "C:/Documents and Settings/frank.zhu/My Documents/Downloads/ >> web2py/applications/dms/controllers/default.py", line 82, in <module> >> File "gluon/globals.py", line 96, in <lambda> >> File "C:/Documents and Settings/frank.zhu/My Documents/Downloads/ >> web2py/applications/dms/controllers/default.py", line 30, in start >> File "C:\Documents and Settings\frank.zhu\My Documents\Downloads >> \web2py\site-packages\pyserial-2.5-rc2\serial\__init__.py", line 19, >> in <module> >> File "C:\Documents and Settings\frank.zhu\My Documents\Downloads >> \web2py\site-packages\pyserial-2.5-rc2\serial\serialwin32.py", line >> 12, in <module> >> File "C:\Documents and Settings\frank.zhu\My Documents\Downloads >> \web2py\site-packages\pyserial-2.5-rc2\serial\win32.py", line 2, in >> <module> >> ImportError: No module named wintypes -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJL4gOFAAoJENaaLQPAdAyuDOwH/jnDFryDiWmYwzQyV4i92T3u 0Bc4iOEAna4AFKmv6IZWzqr7rOudgn5Z+qGDqwBqadRCkMOdAljSa9HKfqWAZMt3 oM7O3BwPzx1yCAOkqTzqc12hyXPtiBwfVyLaYA0Q8L6Eo7aXFsvkpixSYKEv4/Y2 DIDuhHTOyFMdRrF6H0oe4cLaDQn4U9zNU26mF1WDkw5P3lkQiTGAmGruVKxxR6LP 9dIWhkNAE/Ac279ZcWjONBmi4wrGhgQsLKvqrG/nOaZZrhEiK0DABmEMWPsVhtL2 lGmN/Dsf7k99V4y0iJd2V8fSSyM93wwq9oumYQJBOLYT5wiQWaJ+MDB+k6juE5U= =zf8E -----END PGP SIGNATURE-----

