Skip to contentSkip to conversation

package/python-tinyrpc: not available for python 2.x

PATCH New Peter Korsgaard 3 participants 4 messages Sep 29, 2020 – Oct 2, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/python-tinyrpc: not available for python 2.x

Fixes:
http://autobuild.buildroot.net/results/eef0969bac04800cec51fa27f1e1ecd3a4c8211e/

tinyrpc 1.x is not compatible with python 2.x, leading to errors during the pycompile step:

error: File "/usr/lib/python2.7/site-packages/tinyrpc/client.py", line 37
self, protocol: RPCProtocol, transport: ClientTransport
^
SyntaxError: invalid syntax

As also documented in the README:
The current version will support Python3 only. Have a look at the 0.9.x version if you need Python2 support

https://github.com/mbr/tinyrpc/blob/1.0.4/README.rst

---
 package/python-tinyrpc/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/python-tinyrpc/Config.in +1 -0
index 3c643c754a..3194b7825a 100644
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_PYTHON_TINYRPC
 	bool "python-tinyrpc"
+	depends on BR2_PACKAGE_PYTHON3
 	select BR2_PACKAGE_PYTHON_SIX # runtime
 	help
 	  A small, modular, transport and protocol neutral RPC
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 package/python-tinyrpc: not available for python 2.x

Hello,

Quoted 35 lines · Peter Korsgaard

Fixes:
http://autobuild.buildroot.net/results/eef0969bac04800cec51fa27f1e1ecd3a4c8211e/

tinyrpc 1.x is not compatible with python 2.x, leading to errors during the pycompile step:

error: File "/usr/lib/python2.7/site-packages/tinyrpc/client.py", line 37
self, protocol: RPCProtocol, transport: ClientTransport
^
SyntaxError: invalid syntax

As also documented in the README:
The current version will support Python3 only. Have a look at the 0.9.x version if you need Python2 support

https://github.com/mbr/tinyrpc/blob/1.0.4/README.rst

---
 package/python-tinyrpc/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/python-tinyrpc/Config.in +1 -1
index 3c643c754a..3194b7825a 100644
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_PYTHON_TINYRPC
        bool "python-tinyrpc"
+       depends on BR2_PACKAGE_PYTHON3
        select BR2_PACKAGE_PYTHON_SIX # runtime
        help
          A small, modular, transport and protocol neutral RPC
--
Quoted 2 lines

2.20.1

Regards,
Asaf.

#2 lore raw

PATCH 1/1 package/python-tinyrpc: not available for python 2.x

In reply to Peter Korsgaard

Peter, All,

On 2020-09-29 22:45 +0200, Peter Korsgaard spake thusly:

Quoted 11 lines

Fixes:
http://autobuild.buildroot.net/results/eef0969bac04800cec51fa27f1e1ecd3a4c8211e/

tinyrpc 1.x is not compatible with python 2.x, leading to errors during the pycompile step:

error: File "/usr/lib/python2.7/site-packages/tinyrpc/client.py", line 37
self, protocol: RPCProtocol, transport: ClientTransport
^
SyntaxError: invalid syntax

Quoted 7 lines

As also documented in the README:
The current version will support Python3 only. Have a look at the 0.9.x version if you need Python2 support

https://github.com/mbr/tinyrpc/blob/1.0.4/README.rst

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 22 lines
---
 package/python-tinyrpc/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/python-tinyrpc/Config.in +1 -0
index 3c643c754a..3194b7825a 100644
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_PYTHON_TINYRPC
 	bool "python-tinyrpc"
+	depends on BR2_PACKAGE_PYTHON3
 	select BR2_PACKAGE_PYTHON_SIX # runtime
 	help
 	  A small, modular, transport and protocol neutral RPC
Signature · 6 lines
2.20.1

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#3 lore raw

PATCH 1/1 package/python-tinyrpc: not available for python 2.x

In reply to Peter Korsgaard
Quoted 13 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Korsgaard <[email protected]> writes:

Fixes:
http://autobuild.buildroot.net/results/eef0969bac04800cec51fa27f1e1ecd3a4c8211e/

tinyrpc 1.x is not compatible with python 2.x, leading to errors during the pycompile step:

error: File "/usr/lib/python2.7/site-packages/tinyrpc/client.py", line 37
self, protocol: RPCProtocol, transport: ClientTransport
^
SyntaxError: invalid syntax

Quoted 7 lines

As also documented in the README:
The current version will support Python3 only. Have a look at the 0.9.x version if you need Python2 support

https://github.com/mbr/tinyrpc/blob/1.0.4/README.rst

Committed to 2020.02.x, 2020.05.x and 2020.08.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard