I recently posted the following issue on the github issues page for django-graphos, but I don't think it is maintained that regularly and thus I'm not expecting a resolution anytime soon. I'm working on a heroku/django build that I'm testing in a virtualenv using python 3.5 on OSX 10.9.5. I like the look of django-graphos
, as it's light and nondependent enough that it seems perfect for small-scale database-powered statistics graphing on Heroku. I was thus dismayed when I tried to install from the venv and had it fail on me.
The error is as follows:
(venv) $ > pip install django-graphos
Collecting django-graphos
Using cached django-graphos-0.1.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/qt/s4gp855d38s6rrj34fdlmwk40000gn/T/pip-build-q69jbvga/django-graphos/setup.py", line 132, in <module>
package_data=find_package_data("graphos", only_in_packages=False),
File "/private/var/folders/qt/s4gp855d38s6rrj34fdlmwk40000gn/T/pip-build-q69jbvga/django-graphos/setup.py", line 106, in find_package_data
print >> sys.stderr, (
TypeError: unsupported operand type(s) for >>: 'builtin_function_or_method' and '_io.TextIOWrapper'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/qt/s4gp855d38s6rrj34fdlmwk40000gn/T/pip-build-10_yhb6j/django-graphos/
As @Tadhg McDonald-Jensen points out, this error stems from a python 2 print function call which, annoyingly, has a fairly simple suggested fix proposed as a branch merge on github but it has not been accepted into master.
Update:
The solution as proposed by @Tadhg McDonald-Jensen worked for me, which is to say that I was able to clone the project, make the edit necessary to the problematic print >> x
call and pull the branch to master. My clone of the project with edits necessary for pip install git+<source>
to work are here. However as @Evert points out, pip install django-graphos-3
is also a solution, which may explain why django-graphos
has been dormant for six months. I hope this helps someone else as much as it's helped me.