473,836 Members | 1,574 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\li b\site-packages\Rpyc\_ _init__.py", line 7, in
<module>
from Rpyc.Lib import rpyc_excepthook
File "C:\Python25\li b\site-packages\Rpyc\L ib.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 2569
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\li b\site-packages\Rpyc\_ _init__.py", line 7, in
<module>
from Rpyc.Lib import rpyc_excepthook
File "C:\Python25\li b\site-packages\Rpyc\L ib.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.net wrote:
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\li b\site-packages\Rpyc\_ _init__.py", line 7, in
<module>
* * from Rpyc.Lib import rpyc_excepthook
* File "C:\Python25\li b\site-packages\Rpyc\L ib.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.co m]
Sent: Wednesday, October 08, 2008 3:11 PM
To: py*********@pyt hon.org
Subject: Re: Python syntax question

On Oct 8, 12:07*pm, Marc 'BlackJack' Rintsch <bj_...@gmx.net wrote:
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\li b\site-packages\Rpyc\_ _init__.py", line 7, in
<module>
* * from Rpyc.Lib import rpyc_excepthook
* File "C:\Python25\li b\site-packages\Rpyc\L ib.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...@belc an.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.w atr...@gmail.co m]
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.net wrote:
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\li b\site-packages\Rpyc\_ _init__.py", line 7, in
<module>
* * from Rpyc.Lib import rpyc_excepthook
* File "C:\Python25\li b\site-packages\Rpyc\L ib.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
34354
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 capabilities, unfortunately. I'd like to know if it may be possible to add a powerful macro system to Python, while keeping its amazing syntax, and if it could be possible to add Pythonistic syntax to Lisp or Scheme, while keeping all of the...
14
2873
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" in the subject of any post to this newsgroup. Please ignore the old thread. I've also updated my webpage http://ece.arizona.edu/~edatools/Python Anyone with some good ideas for "Python 3" is welcome to contribute. I hope GvR won't sue me for...
25
5777
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 advantages of one over the other in implementing this server.which language will be easier? What are the performance issues?In what language are mail servers generally written?
112
13889
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 because they smell "Javaish." But now my code base is expanding and I'm beginning to appreciate the wisdom behind them. I welcome example code and illustrations.
0
9827
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9677
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10560
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10607
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10262
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7798
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6986
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5838
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3119
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.