Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not get pythonect running on Ubuntu. AttributeError #80

Open
owigger opened this issue Feb 28, 2019 · 1 comment
Open

Can not get pythonect running on Ubuntu. AttributeError #80

owigger opened this issue Feb 28, 2019 · 1 comment

Comments

@owigger
Copy link

owigger commented Feb 28, 2019

Hello, I am a newbie both to pythonect and python. I am just trying to get pythonect up and running on plain Ubuntu 18.04, never used python before.

Whatever I do, pythonect crashes horribly with lots of gibberish, Traceback, and the inevitable

           AttributeError: can't set attribute

error. For example:

$ which pythonect
~/.local/bin/pythonect

$ pythonect
Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15)
[Pythonect 0.6.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 1+1

Traceback (most recent call last):
File "~/.local/lib/python2.7/site-packages/Pythonect-0.6.0-py2.7.egg/pythonect/internal/eval.py", line 792, in eval
graph = parse(source)
File "~/.local/lib/python2.7/site-packages/Pythonect-0.6.0-py2.7.egg/pythonect/internal/eval.py", line 729, in parse
graph = _graph.Graph()
File "~/.local/lib/python2.7/site-packages/Pythonect-0.6.0-py2.7.egg/pythonect/internal/_graph.py", line 47, in init
self.node = _ordereddict.OrderedDict() # dictionary for node attributes
AttributeError: can't set attribute
>>>

I tried installing pythonect with pip, easy_install, or git clone. The result is always the same. I run the nose test in the git checkout:

pythonect$ python setup.py install --user
...
Finished processing dependencies for Pythonect==0.6.0

pythonect$ python setup.py nosetests
1 test_command_mode (test_interpreter.TestPythonectInterpreter) ... ERROR

ERROR: test_command_mode (test_interpreter.TestPythonectInterpreter)
Traceback (most recent call last):
...
File "~/pythonect/pythonect/internal/_graph.py", line 47, in init
self.node = _ordereddict.OrderedDict() # dictionary for node attributes
AttributeError: can't set attribute

Please, I am just following the tutorials. What am I doing wrong??

@l0b0
Copy link

l0b0 commented Jun 18, 2019

Hoi @owigger! I was able to reproduce as well:

virtualenv --python $(which python2) virtualenv
. virtualenv/bin/activate
pip install pythonect
pythonect
1+1

The metadata says it's Python 2.7 compatible, but the last release was six years ago, so I suspect it's incompatible with recent Python 2.7 versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants