Re: PyQt v5.12 and QScintilla v2.11 Released

Phil Thompson <[email protected]>
Newsgroups gmane.comp.python.pyqt-pykde
Message-ID <[email protected]>
On 4 Apr 2019, at 2:30 pm, Ilan Tiagai <[email protected]> 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 <[email protected]> wrote:
> On 13 Feb 2019, at 1:56 pm, Ilan Tiagai <[email protected]> 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    [email protected]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.