-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 20.08.2010 17:56, schrieb Ryan: > Hi, > When use sphinx to autodoc, I found the following error/warning: > > C:\Python26\Sphinx_use\SimulatorDoc\source_code_doc.rst:36: (WARNING/ > 2) autodoc can't import/find module 'embedding_in_wx3', it reported > error: "wxversion.ensureMinimal() must be called before wxPython is > imported", please check your spelling and sys.path. > > The following are the code I downloaded as a test sample. What > was wrong here? Thanks. Ryan
It looks like you have to do exactly what the error tells you: call wxversion.ensureMinimal() somewhere before your module is imported; probably in conf.py. Georg -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEARECAAYFAkxygEAACgkQN9GcIYhpnLDnSgCfe+YIoUKl2ELnWOilm6Z/p2Vn /UoAn2eBaNYqSFKEWsKBI/in2fjijUaW =2Hc1 -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-...@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.