Pydev Nodebox: "AttributeError: object" NoneType "does not have the attribute" WIDTH ""

I am trying to create a graph of user relationships in my database using nodebox (ubuntu 12.04, python 2.7, django 1.3), but when I enter the following instructions, I get an error message below it:

""" g.draw(weighted=False, directed=False, highlight=[], traffic=None) Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 2721, in run_code exec code_obj in self.user_global_ns, self.user_ns File "<ipython-input-1-0a219395b690>", line 1, in <module> g.draw(weighted=False, directed=False, highlight=[], traffic=None) File "/home/raymond/Documents/exchange/cet/cet/graph/__init__.py", line 453, in draw self.update() File "/path/to/myproject//graph/__init__.py", line 416, in update self.x = _ctx.WIDTH - max.x*self.d - min_.x*self.d AttributeError: 'NoneType' object has no attribute 'WIDTH' """ 

How can I get nodebox to draw my graph? should I add a try / catch or if statement to the / init .py graph to prevent an object of type from which no one was writing? I know that displaying more code will help solve the problem faster; I am facing a formatting issue, but I will add code to the question as soon as I can.

+1
pydev nodebox
Feb 21 '13 at 7:13
source share
1 answer

Nodebox has a graphical web page that is concise, informative and shows what I need. Since the download file is on one page, it seems perfect, BUT it’s not mentioned that it is Nodebox 1, which is only for Mac ...

Then another rummage finds NodeBox OpenGL, which has a new methodology and is cross-platform, BUT it only displays compatibility with python 2.5-2.6 (so is it worth trying with 2.7?). BUT the installation of the graphical utility Pyglet failed the first time .... therefore more research is required.

Sadly, Nodebox 3 seems completely different and has not yet seen a comparable graph command

Looking back at the result

After reaching the installation, I created a prototype network viewer using the mouse attribute viewer, low frame rate, and a constant data set. This site has demonstrated a taste of interactivity.

http://www.visualthesaurus.com/app/view?word=link (try clicking and dragging the center word)

But the problems I needed to solve were how

  • show live data sequentially, that is, deal with orphans, transitions as branches that you can view may disappear from the data
  • separation of viewing large amounts of data, i.e. viewing from 2 to 20 nodes from several hundred elements.
  • display data without overlapping / shading or leaving the display area
  • display differences if not at current level
  • portability
  • ...

In my case, the optimal solution was an updated, structured html table with colors and zoom level

+2
Mar 02 '13 at 23:09
source share



All Articles