Looks like the error is thrown here: https://code.google.com/p/asciidoc/source/browse/asciidocapi.py?name=8.6.8#200
which implies C:\Python27\asciidoc-8.6.8\asciidoc.py has been found. You could try executing asciidocapi.py which will run some doctests (https://code.google.com/p/asciidoc/source/browse/asciidocapi.py?name=8.6.8#15). cd \Python27\asciidoc-8.6.8 python asciidocapi.py The tests should silently pass. Cheers, Stuart On 20/04/13 06:53, Igor Futritski wrote: > I am trying to build an .exe file from a python script that uses asciidoc. > > I have the following in my source code: > > from asciidocapi import AsciiDocAPI > asciidoc = asciidocapi.AsciiDocAPI() > ..... > ..... > > When I run an exe file, I get: > > Traceback (most recent call last): > File "<string>", line 13, in <module> > File > "C:\pyinstaller-2.0\CeSaR\build\pyi.win32\CeSaR\out00-PYZ.pyz\asciidocapi", > line 179, in __init__ > File > "C:\pyinstaller-2.0\CeSaR\build\pyi.win32\CeSaR\out00-PYZ.pyz\asciidocapi", > line 200, in __import_asciidoc > asciidocapi.AsciiDocError: failed to import > C:\Python27\asciidoc-8.6.8\asciidoc.py > > I've tried different python to exe builders - same result. > > Any ideas what is the problem? > > -- > You received this message because you are subscribed to the Google > Groups "asciidoc" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/asciidoc?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/asciidoc?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
