Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python 2.7 issues #1249

Closed
0-wiz-0 opened this issue Sep 26, 2019 · 1 comment
Closed

python 2.7 issues #1249

0-wiz-0 opened this issue Sep 26, 2019 · 1 comment

Comments

@0-wiz-0
Copy link

0-wiz-0 commented Sep 26, 2019

The homepage still has "compatible with Python 2.7" but some of the files are not:

byte-compiling /scratch/www/py-autobahn/work/.destdir/usr/pkg/lib/python2.7/site-packages/autobahn/asyncio/xbr.py to xbr.pyc
  File "/usr/pkg/lib/python2.7/site-packages/autobahn/asyncio/xbr.py", line 57
    async def start(self):
            ^
SyntaxError: invalid syntax

byte-compiling /scratch/www/py-autobahn/work/.destdir/usr/pkg/lib/python2.7/site-packages/autobahn/twisted/xbr.py to xbr.pyc
  File "/usr/pkg/lib/python2.7/site-packages/autobahn/twisted/xbr.py", line 58
    async def start(self):
            ^
SyntaxError: invalid syntax

byte-compiling /scratch/www/py-autobahn/work/.destdir/usr/pkg/lib/python2.7/site-packages/autobahn/xbr/_blockchain.py to _blockchain.pyc
  File "/usr/pkg/lib/python2.7/site-packages/autobahn/xbr/_blockchain.py", line 97
    async def get_market_status(self, market_id):
            ^
SyntaxError: invalid syntax

byte-compiling /scratch/www/py-autobahn/work/.destdir/usr/pkg/lib/python2.7/site-packages/autobahn/xbr/_buyer.py to _buyer.pyc
  File "/usr/pkg/lib/python2.7/site-packages/autobahn/xbr/_buyer.py", line 149
    async def start(self, session, consumer_id):
            ^
SyntaxError: invalid syntax

byte-compiling /scratch/www/py-autobahn/work/.destdir/usr/pkg/lib/python2.7/site-packages/autobahn/xbr/_interfaces.py to _interfaces.pyc
  File "/usr/pkg/lib/python2.7/site-packages/autobahn/xbr/_interfaces.py", line 141
    async def start(self, session):
        ^
SyntaxError: invalid syntax

byte-compiling /scratch/www/py-autobahn/work/.destdir/usr/pkg/lib/python2.7/site-packages/autobahn/xbr/_seller.py to _seller.pyc
  File "/usr/pkg/lib/python2.7/site-packages/autobahn/xbr/_seller.py", line 144
    async def _rotate(self):
            ^
SyntaxError: invalid syntax

byte-compiling /scratch/www/py-autobahn/work/.destdir/usr/pkg/lib/python2.7/site-packages/twisted/plugins/autobahn_twistd.py to autobahn_twistd.pyc
writing byte-compilation script '/tmp/tmpDNUOdB.py'
/usr/pkg/bin/python2.7 -O /tmp/tmpDNUOdB.py
  File "/usr/pkg/lib/python2.7/site-packages/autobahn/asyncio/xbr.py", line 57
    async def start(self):
            ^
SyntaxError: invalid syntax

  File "/usr/pkg/lib/python2.7/site-packages/autobahn/twisted/xbr.py", line 58
    async def start(self):
            ^
SyntaxError: invalid syntax

  File "/usr/pkg/lib/python2.7/site-packages/autobahn/xbr/_blockchain.py", line 97
    async def get_market_status(self, market_id):
            ^
SyntaxError: invalid syntax

  File "/usr/pkg/lib/python2.7/site-packages/autobahn/xbr/_buyer.py", line 149
    async def start(self, session, consumer_id):
            ^
SyntaxError: invalid syntax

  File "/usr/pkg/lib/python2.7/site-packages/autobahn/xbr/_interfaces.py", line 141
    async def start(self, session):
        ^
SyntaxError: invalid syntax

  File "/usr/pkg/lib/python2.7/site-packages/autobahn/xbr/_seller.py", line 144
    async def _rotate(self):
            ^
SyntaxError: invalid syntax

@oberstet
Copy link
Contributor

oberstet commented Sep 26, 2019

yes, not all of autobahn install flavors support python 2 .. the core parts are: https://travis-ci.org/crossbario/autobahn-python

xbr install flavor is not support on py 2. this is documented here: https://github.com/crossbario/autobahn-python#xbr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants