evildmp / BrachioGraph

BrachioGraph is an ultra-cheap (total cost of materials: €14) plotter that can be built with minimal skills.
https://www.brachiograph.art
MIT License
680 stars 114 forks source link

Trying to plot my first file: Exception: 'str' object has no attribute 'wait' #76

Closed Trampf closed 4 years ago

Trampf commented 4 years ago

Hello,

as mentioned above, when I try to plot my first json file (africa.json) from the tutorial I get the following exception:

`

bg = BrachioGraph(inner_arm=8, outer_arm=8, bounds=[-5, 4, 5, 15], servo_1_centre=1460, servo_2_centre=1470) BrachioGraph.plot_file("africa.json") Traceback (most recent call last): File "", line 1, in File "/home/pi/BrachioGraph/brachiograph.py", line 155, in plot_file wait = wait or self.wait AttributeError: 'str' object has no attribute 'wait'

`

Trampf commented 4 years ago

Got it!

You have to use bg. instead of BrachioGraph and use the whole filepath.

Got it running with:

bg.plot_file("/home/pi/BrachioGraph/images/africa.json")