Compiled to SomeComServer.exe (no libray.zip and bundle_files=1):

    if add digital signature to it, got this error:

        Traceback (most recent call last):
          File "<install zipextimporter>", line 1, in <module>
        ImportError: No module named zipextimporter
        Traceback (most recent call last):
          File "boot_com_servers.py", line 4, in <module>
        ImportError: No module named win32api

    do not add a digital signature, is normal.


Compiled to SomeComServer.dll (no libray.zip and bundle_files=1):

    if add digital signature(contains a timestamp) to it, can not be registered.
    if add digital signature(Does not contain a timestamp) to it, is normal.


Compiled to SomeComServer.exe or SomeComServer.dll (libray.zip and bundle_files=1):
   
    Can be any.


But I need SomeComServer.dll or SomeComServer.exe (no libray.zip and bundle_files=1), and add digital signature(contains a timestamp) to it. Because it is a ActiveX.


Thank you again.





At 2011-05-24,"Mark Hammond" <mhammond@skippinet.com.au> wrote: >Sorry I wasn't clear - PYTHONVERBOSE is an environment variable - so  >something like: > >c:\somewhere> set PYTHONVERBOSE=1 >c:\somewhere> SomeCOMserver.exe /regserver > >Mark > >On 24/05/2011 5:45 PM, 张郎 wrote: >> How to set "% set PYTHONVERBOSE=1" >> >> like this: SomeCOMserver.exe % set PYTHONVERBOSE=1 /regserver >> >> thank you! >> >> >> At  2011-05-24,"Mark  Hammond"  <mhammond@skippinet.com.au>  wrote: >> >>>Please  include  the  py2exe-users  list  in  all  replies. >>> >>>On  24/05/2011  11:49  AM,  张勇军  wrote: >>>>  Sorry,  I  forgot  the  error  message. >>>> >>>>  Traceback  (most  recent  call  last): >>>>        File  "<install  zipextimporter>",  line  1,  in<module> >>>>  ImportError:  No  module  named  zipextimporter >>>>  Traceback  (most  recent  call  last): >>>>        File  "boot_com_servers.py",  line  4,  in<module> >>>>  ImportError:  No  module  named  win32api >>> >>>This  doesn't  seem  like  a  problem  with  the  Microsoft  digital  signature  at >>>all.    The  first  error  (failing  to  load  the  zipextimporter)  is  probably >>>the  root  cause  of  the  following  error.    Maybe  if  you: >>> >>>%  set  PYTHONVERBOSE=1 >>> >>>and  re-run  the  failing  program  we  can  get  more  insight  into  why  that  is >>>failing... >>> >>>Mark >>> >>>>  At  2011-05-23,"Mark  Hammond"<skippy.hammond@gmail.com>    wrote: >>>>>  On  20/05/2011  5:19  PM,  张勇军  wrote: >>>>>>  Hi  all! >>>>>> >>>>>>  My  English  is  very  general,  I  hope  I  use  translation  software  is >>>>>>  syntactically  correct.  ^_^ >>>>> >>>>>  Your  English  is  better  than  my  Mandarin  :) >>>>> >>>>>>  I  like  py2exe,  it  gave  us  a  lot  of  convenience. >>>>>> >>>>>>  But  I  got  a  problem. >>>>>>  py2exe  compiled  EXE  or  DLL  does  not  support  Microsoft's  digital >>>>>>  signature.  After  the  digital  signature  will  have  import  runtime  error. >>>>> >>>>>  You  probably  need  to  copy-and-paste  an  example  and  the  exact  error >>>>>  messages  you  get. >>>>> >>>>>  Mark >>>> >>> >> >> >> >