Hi, Everyone,

I have both python 2 and python 3 versions of some modules. They are 
imported as

if sys.version_info.major == 2:
    import mymodule_py2 as mymodule
else:
    import mymodule_py3 as mymodule

so the python 3 modules are not used for python 2.x installation. However, 
when I run this command through pyinstaller, I get

Traceback (most recent call last):
  File "/PATH/TO/pyinstaller/PyInstaller/depend/owner.py", line 110, in 
getmod
    co = compile(stuff.replace("\r\n", "\n"), py[0], 'exec')
  File "mymodule_py3.py", line 356
    def fEqual(*args, **kwargs) -> "bool" :

Is there anyway to ignore these files? I tried to add 

excludes=['mymodule_py3'],

to a = Analysis(['mycommand'] in the spec file but the problem persists.

Many thanks in advance,
Bo

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" 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/pyinstaller?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to