arskom / spyne

A transport agnostic sync/async RPC library that focuses on exposing services with a well-defined API using popular protocols.
http://spyne.io
Other
1.13k stars 313 forks source link

python 3.7.3: Invalid syntax when importing spyne. #641

Closed pcs3rd closed 4 years ago

pcs3rd commented 4 years ago

Currently trying to use spyne. When trying to import it, python returns the following error:

Python 3.7.3 (default, Dec 20 2019, 18:57:59) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import spyne
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/pi/.local/lib/python3.7/site-packages/spyne/__init__.py", line 63, in <module>
    from spyne.server import ServerBase, NullServer
  File "/home/pi/.local/lib/python3.7/site-packages/spyne/server/__init__.py", line 23, in <module>
    from spyne.server.null import NullServer
  File "/home/pi/.local/lib/python3.7/site-packages/spyne/server/null.py", line 69
    self.service = _FunctionProxy(self, self.app, async=False)
                                                      ^
SyntaxError: invalid syntax
bgermann commented 4 years ago

This is fixed with e9b1f3bb85d6 which is available in 2.13.3-alpha for the first time. Unfortunately, Python 3 support was never published in a stable release.

pcs3rd commented 4 years ago

So, do I just have to install from the repository then or will this get built into a stable release build? And at that point, is the development branches extremely unstable if I use code from a few commits ahead of that one? And what about the spyne-flask module? Is that only python2?

bgermann commented 4 years ago

I would install the latest beta version from PyPI. I do not know anything about spyne-flask.

pcs3rd commented 4 years ago

Thank you!