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

List:       pykde
Subject:    Re: [PyQt] SyntaxError when byte-compiling PyQT
From:       šãñ <niceguysan () gmail ! com>
Date:       2012-12-28 12:45:16
Message-ID: CAAEA0x92TjYvY4cDUJFH487b8MK8bxeRubcsHPU6CnPhEZ0KFQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


you have to put path in brackets.. , however I hope you know py2app means
version of Python 2x and you are using python 3.


On Fri, Dec 28, 2012 at 4:26 PM, Nicolas Jouanin
<nicolas.jouanin@gmail.com>wrote:

> Hi,
>
> I develop a PyQT (4.9.6) application on MacOS (10.8.2) and I have problem
> when packaging with py2app.
> I'm using python 3 and when py2app runs packaging it compiles PyQt .py
> files and I can see SyntaxErrors . :
>
> byte-compiling
> bdist.macosx-10.6-intel/python3.3-standalone/app/temp/PyQt4/QtCore.py to
> PyQt4/QtCore.pyc
>  File "PyQt4/QtCore.pyc", line 6
>    print path
>             ^
> SyntaxError: invalid syntax
>
> byte-compiling
> bdist.macosx-10.6-intel/python3.3-standalone/app/temp/PyQt4/QtGui.py to
> PyQt4/QtGui.pyc
>  File "PyQt4/QtGui.pyc", line 6
>    print path
>             ^
> SyntaxError: invalid syntax
>
> byte-compiling
> bdist.macosx-10.6-intel/python3.3-standalone/app/temp/PyQt4/QtNetwork.py to
> PyQt4/QtNetwork.pyc
>  File "PyQt4/QtNetwork.pyc", line 6
>    print path
>             ^
> SyntaxError: invalid syntax
>
> byte-compiling
> bdist.macosx-10.6-intel/python3.3-standalone/app/temp/PyQt4/QtWebKit.py to
> PyQt4/QtWebKit.pyc
>  File "PyQt4/QtWebKit.pyc", line 6
>    print path
>             ^
> SyntaxError: invalid syntax
>
>
> _______________________________________________
> PyQt mailing list    PyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>



-- 
**

[image: San's personal blog] <http://feeds.feedburner.com/SanLuthraBlog>

*
*

[Attachment #5 (text/html)]

<div dir="ltr">you have to put path in brackets.. , however I hope you know py2app means \
version of Python 2x and you are using python 3.<br></div><div class="gmail_extra"><br><br><div \
class="gmail_quote">On Fri, Dec 28, 2012 at 4:26 PM, Nicolas Jouanin <span dir="ltr">&lt;<a \
href="mailto:nicolas.jouanin@gmail.com" \
target="_blank">nicolas.jouanin@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Hi,<br> <br>
I develop a PyQT (4.9.6) application on MacOS (10.8.2) and I have problem when packaging with \
py2app.<br> I&#39;m using python 3 and when py2app runs packaging it compiles PyQt .py files \
and I can see SyntaxErrors . :<br> <br>
byte-compiling bdist.macosx-10.6-intel/python3.3-standalone/app/temp/PyQt4/QtCore.py to \
PyQt4/QtCore.pyc<br>  File &quot;PyQt4/QtCore.pyc&quot;, line 6<br>
     print path<br>
                  ^<br>
SyntaxError: invalid syntax<br>
<br>
byte-compiling bdist.macosx-10.6-intel/python3.3-standalone/app/temp/PyQt4/QtGui.py to \
PyQt4/QtGui.pyc<br>  File &quot;PyQt4/QtGui.pyc&quot;, line 6<br>
     print path<br>
                  ^<br>
SyntaxError: invalid syntax<br>
<br>
byte-compiling bdist.macosx-10.6-intel/python3.3-standalone/app/temp/PyQt4/QtNetwork.py to \
PyQt4/QtNetwork.pyc<br>  File &quot;PyQt4/QtNetwork.pyc&quot;, line 6<br>
     print path<br>
                  ^<br>
SyntaxError: invalid syntax<br>
<br>
byte-compiling bdist.macosx-10.6-intel/python3.3-standalone/app/temp/PyQt4/QtWebKit.py to \
PyQt4/QtWebKit.pyc<br>  File &quot;PyQt4/QtWebKit.pyc&quot;, line 6<br>
     print path<br>
                  ^<br>
SyntaxError: invalid syntax<br>
<br>
<br>
_______________________________________________<br>
PyQt mailing list      <a \
href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br> <a \
href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" \
target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br> \
</blockquote></div><br><br clear="all"><br>-- <br><b></b>  <p><a \
href="http://feeds.feedburner.com/SanLuthraBlog" target="_blank"><img \
src="http://feeds.feedburner.com/SanLuthraBlog.gif?w=1&amp;c=1&amp;bb=zCxf" alt="San&#39;s \
personal blog"></a></p>

    
    <form action="http://fb/a/headlineanimator/install" method="get" accept-charset="utf-8" \
target="_blank" onsubmit="return window.confirm(&quot;You are submitting information to an \
external page.\nAre you sure?&quot;);">


      <p style="background-image:url(&#39;/fb/lib/images/icons/chameleon_red/add.gif&#39;)">
        <b><br></b></p></form>
</div>



_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://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