By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,135 Members | 1,184 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,135 IT Pros & Developers. It's quick & easy.

Python syntax question

P: n/a
I hope this question is OK for this list. I've downloaded Rpyc and
placed it in my site packages dir. On some machines it works fine, on
others not so much.

Here is one error I get when I try to import it:
>>import Rpyc
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python25\lib\site-packages\Rpyc\__init__.py", line 7, in
<module>
from Rpyc.Lib import rpyc_excepthook
File "C:\Python25\lib\site-packages\Rpyc\Lib.py", line 65
print("======= Remote traceback =======", file=stderr)
^
SyntaxError: invalid syntax

The little carrot points to the equal sign ('=') in 'file=stderr'

What's the syntax problem?

Thanks
Oct 8 '08 #1
Share this Question
Share on Google+
6 Replies


P: n/a
On Wed, 08 Oct 2008 11:02:49 -0700, Daniel wrote:
Here is one error I get when I try to import it:
>>>import Rpyc
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python25\lib\site-packages\Rpyc\__init__.py", line 7, in
<module>
from Rpyc.Lib import rpyc_excepthook
File "C:\Python25\lib\site-packages\Rpyc\Lib.py", line 65
print("======= Remote traceback =======", file=stderr)
^
SyntaxError: invalid syntax

The little carrot points to the equal sign ('=') in 'file=stderr'

What's the syntax problem?
That's Python¬*3.0 syntax where ``print`` is not a keyword anymore but a
function. Won't work with Python¬*2.5.

Ciao,
Marc 'BlackJack' Rintsch
Oct 8 '08 #2

P: n/a
On Oct 8, 12:07*pm, Marc 'BlackJack' Rintsch <bj_...@gmx.netwrote:
On Wed, 08 Oct 2008 11:02:49 -0700, Daniel wrote:
Here is one error I get when I try to import it:
>>import Rpyc
Traceback (most recent call last):
* File "<stdin>", line 1, in <module>
* File "C:\Python25\lib\site-packages\Rpyc\__init__.py", line 7, in
<module>
* * from Rpyc.Lib import rpyc_excepthook
* File "C:\Python25\lib\site-packages\Rpyc\Lib.py", line 65
* * print("======= Remote traceback =======", file=stderr)
* * * * * * * * * * * * * * * * * ** * * * * * * ^
SyntaxError: invalid syntax
The little carrot points to the equal sign ('=') in 'file=stderr'
What's the syntax problem?

That's Python*3.0 syntax where ``print`` is not a keyword anymore but a
function. *Won't work with Python*2.5.

Ciao,
* * * * Marc 'BlackJack' Rintsch
Thanks! With that I was able to find a solution.
Oct 8 '08 #3

P: n/a
Sir,

I was just wondering that the module that you are utilizing (Rpyc) is a remote process call module for python? Is this what you are developing with at this time?

Thanks,
David Blubaugh



-----Original Message-----
From: Daniel [mailto:da************@gmail.com]
Sent: Wednesday, October 08, 2008 3:11 PM
To: py*********@python.org
Subject: Re: Python syntax question

On Oct 8, 12:07*pm, Marc 'BlackJack' Rintsch <bj_...@gmx.netwrote:
On Wed, 08 Oct 2008 11:02:49 -0700, Daniel wrote:
Here is one error I get when I try to import it:
>>import Rpyc
Traceback (most recent call last):
* File "<stdin>", line 1, in <module>
* File "C:\Python25\lib\site-packages\Rpyc\__init__.py", line 7, in
<module>
* * from Rpyc.Lib import rpyc_excepthook
* File "C:\Python25\lib\site-packages\Rpyc\Lib.py", line 65
* * print("======= Remote traceback =======", file=stderr)
* * * * * * * * * * * * * * * * * * * * * * * * * ^
SyntaxError: invalid syntax
The little carrot points to the equal sign ('=') in 'file=stderr'
What's the syntax problem?

That's Python*3.0 syntax where ``print`` is not a keyword anymore but
a function. *Won't work with Python*2.5.

Ciao,
* * * * Marc 'BlackJack' Rintsch
Thanks! With that I was able to find a solution.
This e-mail transmission contains information that is confidential and may be
privileged. It is intended only for the addressee(s) named above. If you receive
this e-mail in error, please do not read, copy or disseminate it in any manner.
If you are not the intended recipient, any disclosure, copying, distribution or
use of the contents of this information is prohibited. Please reply to the
message immediately by informing the sender that the message was misdirected.
After replying, please erase it from your computer system. Your assistance in
correcting this error is appreciated.

Oct 8 '08 #4

P: n/a
Blubaugh, David A. schrieb:
Sir,

I was just wondering that the module that you are utilizing (Rpyc) is a remote process call module for python? Is this what you are developing with at this time?
Are you internetically challenged?

http://www.google.de/search?q=rpyc&i...ient=firefox-a

*First* hit. And the google excerpt says

"""
RPyC is a transparent, symmetrical python library for
distributed-computing. Pronounced "are-pie-see", it began as an RPC
library (hence the name), ...
"""
Diez
Oct 8 '08 #5

P: n/a
On Oct 8, 1:19*pm, "Blubaugh, David A." <dbluba...@belcan.comwrote:
Sir,

I was just wondering that the module that you are utilizing (Rpyc) is a remote process call module for python? *Is this what you are developing with at this time?

Thanks,

David Blubaugh

-----Original Message-----
From: Daniel [mailto:daniel.watr...@gmail.com]
Sent: Wednesday, October 08, 2008 3:11 PM
To: python-l...@python.org
Subject: Re: Python syntax question

On Oct 8, 12:07*pm, Marc 'BlackJack' Rintsch <bj_...@gmx.netwrote:
On Wed, 08 Oct 2008 11:02:49 -0700, Daniel wrote:
Here is one error I get when I try to import it:
>>>import Rpyc
Traceback (most recent call last):
* File "<stdin>", line 1, in <module>
* File "C:\Python25\lib\site-packages\Rpyc\__init__.py", line 7, in
<module>
* * from Rpyc.Lib import rpyc_excepthook
* File "C:\Python25\lib\site-packages\Rpyc\Lib.py", line 65
* * print("======= Remote traceback =======", file=stderr)
* * * * * * * * * * * * * * * * * * * * * * * * * ^
SyntaxError: invalid syntax
The little carrot points to the equal sign ('=') in 'file=stderr'
What's the syntax problem?
That's Python*3.0 syntax where ``print`` is not a keyword anymore but
a function. *Won't work with Python*2.5.
Ciao,
* * * * Marc 'BlackJack' Rintsch

Thanks! *With that I was able to find a solution.

This e-mail transmission contains information that is confidential and may be
privileged. It is intended only for the addressee(s) named above. If you receive
this e-mail in error, please do not read, copy or disseminate it in any manner.
If you are not the intended recipient, any disclosure, copying, distribution or
use of the contents of this information is prohibited. Please reply to the
message immediately by informing the sender that the message was misdirected.
After replying, please erase it from your computer system. Your assistance in
correcting this error is appreciated.

RPyC is use in pyscripter to provide remote debugging. I was having
trouble getting the RPyC module working, and the reason is that the
RPyC site only provides a download for Python 3 (not sure why, since I
suspect that a lot of people are still in the 2.x releases). Anyway,
I found an old version of RPyC and it worked out great. I'm not
actually developing it.
Oct 13 '08 #6

P: n/a
En Mon, 13 Oct 2008 13:50:03 -0300, Daniel <da************@gmail.com>
escribiů:
RPyC is use in pyscripter to provide remote debugging. I was having
trouble getting the RPyC module working, and the reason is that the
RPyC site only provides a download for Python 3 (not sure why, since I
suspect that a lot of people are still in the 2.x releases). Anyway,
I found an old version of RPyC and it worked out great. I'm not
actually developing it.
Don't be confused - RPyC 3.00 RC1 refers to the 3.0 version of RPyC, not
of Python.
It is a pure Python project; mainly targeted to 2.5, backported to 2.4 and
2.3.

--
Gabriel Genellina

Oct 21 '08 #7

This discussion thread is closed

Replies have been disabled for this discussion.