Python 3.1.3 console problems
Hi,
I am a newbie at programming!. I inported 2.7 and 3.1.3. Python Console on 2.7 works fine but when I switch to 3.1 the Python Console says: (im on osx 10.6.5)
/Library/Frameworks/Python.framework/Versions/3.1/bin/python3.1 -u /Volumes/PyCharm 1.1/PyCharm 1.1.app/helpers/pydev/console/pydevconsole.py 52643 52644
import sys; print('Python %s on %s' % (sys.version, sys.platform))
<class 'AttributeError'>:can't set attributesys.path.append('/Users/rsda/PycharmProjects/untitled')
<class 'AttributeError'>:can't set attribute>>> print "hello"
<class 'AttributeError'>:can't set attribute
Any idea to fix this?
Many thanks!
Please sign in to leave a comment.
I'm seeing the same behavior in PyCharm 1.1 on Ubuntu 10.10 with Python 3.1.2.
After I start the Python console in PyCharm, no matter what I enter, the response is always
/usr/bin/python3 -u /opt/pycharm-1.1/helpers/pydev/console/pydevconsole.py 35726 53988
import sys; print('Python %s on %s' % (sys.version, sys.platform))
<class 'AttributeError'>:can't set attributesys.path.append('/home/weiqi/temp/src/python/head-first/head-first')
<class 'AttributeError'>:can't set attribute>>>
<class 'AttributeError'>:can't set attribute>>> 3
<class 'AttributeError'>:can't set attribute>>> print(42)
<class 'AttributeError'>:can't set attribute
>>>
I have attached a screenshot to show the colors of the output.
I don't know of a workaround for the problem. I just want to confirm that this is also a problem for me. I would love to learn a fix for the problem.
Thanks,
--
Weiqi Gao
Attachment(s):
pycharm-screenshot.png
Hi, I am also on Pycharm 1.1
The colours of the console are exactly like those of the file you attached.
Hopefully somebody will help us!
I have inported Python 3.0.1 and now the console works just fine.
/Library/Frameworks/Python.framework/Versions/3.0/bin/python3.0 -u /Applications/PyCharm 1.1.app/helpers/pydev/console/pydevconsole.py 50204 50205
import sys; print('Python %s on %s' % (sys.version, sys.platform))
Python 3.0.1 (r301:69597, Feb 14 2009, 19:03:52)
[GCC 4.0.1 (Apple Inc. build 5490)] on darwin
sys.path.append('/Users/rsda/PycharmProjects/untitled')
>>> 3*3
9
The problem is only with Python 3.1.3, in my case, with Pycharm 1.1 and osx 10.6.5
Hello cou,
The incompatibility of the Python console with Python 3.1.3 has been fixed
in PyCharm 1.1.1. Please upgrade.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"