473,403 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Python syntax question

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
6 2532
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
14
by: David MacQuigg | last post by:
I am starting a new thread so we can avoid some of the non-productive argument following my earlier post "What is good about Prothon". At Mr. Hahn's request, I will avoid using the name "Prothon"...
25
by: abhinav | last post by:
Hello guys, I am a novice in python.I have to implement a full fledged mail server ..But i am not able to choose the language.Should i go for C(socket API) or python for this project? What are the...
112
by: mystilleef | last post by:
Hello, What is the Pythonic way of implementing getters and setters. I've heard people say the use of accessors is not Pythonic. But why? And what is the alternative? I refrain from using them...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.