[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] PyQt v5.12 and QScintilla v2.11 Released
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2019-04-04 22:32:02
Message-ID: DA9BB1F8-A3DD-445E-8DF3-AC29D30F9DB9 () riverbankcomputing ! com
[Download RAW message or body]

On 4 Apr 2019, at 2:30 pm, Ilan Tiagai <iltiagai@gmail.com> wrote:
> 
> Hi Again Phil,
> 
> I'm doing by best to follow your instruction on using pyqtdeploy.
> I've encountered the following when executing:
> pyqtdeploy-build health_card.pdy
> 
> I've attached my pdy file.
> Can you help?
> 
> Thank you,
> Ilan

It's fairly obvious that the code is Python v2 syntax (which unsurprisingly Python v3 \
cannot freeze). Therefore you need to exclude those .py files.

Phil

> =========================================================================
> Freezing C:\Users\Ilan\phamos\health_card\sysroot-win-64\lib\python3.7\lib2to3\pgen2\pgen.py...
>  Freezing C:\Users\Ilan\phamos\health_card\sysroot-win-64\lib\python3.7\lib2to3\pgen2\token.py...
>  Freezing C:\Users\Ilan\phamos\health_card\sysroot-win-64\lib\python3.7\lib2to3\pgen2\tokenize.py...
>  Freezing C:\Users\Ilan\phamos\health_card\sysroot-win-64\lib\python3.7\lib2to3\pygram.py...
>  Freezing C:\Users\Ilan\phamos\health_card\sysroot-win-64\lib\python3.7\lib2to3\pytree.py...
>  Freezing C:\Users\Ilan\phamos\health_card\sysroot-win-64\lib\python3.7\lib2to3\refactor.py...
>  Freezing C:\Users\Ilan\phamos\health_card\sysroot-win-64\lib\python3.7\lib2to3\tests\__init__.py...
>  Freezing C:\Users\Ilan\phamos\health_card\sysroot-win-64\lib\python3.7\lib2to3\tests\__main__.py...
>  Freezing C:\Users\Ilan\phamos\health_card\sysroot-win-64\lib\python3.7\lib2to3\tests\data\bom.py...
>                 
> pyqtdeploy-build: Unable to freeze files: Traceback (most recent call last):
> File "C:/Users/Ilan/AppData/Local/Temp/qt_temp-UORNAo/freeze.py", line 104, in \
> <module> freeze_as_data(py_filename, out_filename, embedded_name)
> File "C:/Users/Ilan/AppData/Local/Temp/qt_temp-UORNAo/freeze.py", line 36, in \
> freeze_as_data code = _get_marshalled_code(py_filename, embedded_name)
> File "C:/Users/Ilan/AppData/Local/Temp/qt_temp-UORNAo/freeze.py", line 77, in \
> _get_marshalled_code co = compile(source, embedded_name, 'exec')
> File ":/health_card/sysroot-win-64/lib/python3.7/lib2to3/tests/data/bom.py", line 2
> print "BOM BOOM!"
> ^
> SyntaxError: Missing parentheses in call to 'print'. Did you mean print("BOM \
> BOOM!")? 
> C:\Users\Ilan\phamos\health_card>
> 
> On Wed, Feb 13, 2019 at 8:57 AM Phil Thompson <phil@riverbankcomputing.com> wrote:
> On 13 Feb 2019, at 1:56 pm, Ilan Tiagai <iltiagai@gmail.com> wrote:
> > 
> > I don't know but I can use VisualStudio with supports both. Which IDE/debugger do \
> > you use?
> 
> I don't - old school.
> 
> Phil
> <health_card.pdy>

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic