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

I Cant runing #24

Open
mohammed666 opened this issue Jan 11, 2018 · 1 comment
Open

I Cant runing #24

mohammed666 opened this issue Jan 11, 2018 · 1 comment

Comments

@mohammed666
Copy link

help

robot@ev3dev:/ev3-print3rbot$ sudo python3 writer.py
[sudo] password for robot:
Traceback (most recent call last):
File "writer.py", line 481, in
main()
File "writer.py", line 474, in main
wri.draw_image(image_file = 'images/test.svg',max_speed=35)
File "writer.py", line 438, in draw_image
list_points = self.fit_path (self.read_svg (image_file))
File "writer.py", line 356, in read_svg
path = [s.attributes['d'].value for s in itemlist]
File "writer.py", line 356, in
path = [s.attributes['d'].value for s in itemlist]
File "writer.py", line 353, in
itemlist = filter(lambda x: x.attributes['id'].value != "borders", itemlist)
File "/usr/lib/python3.4/xml/dom/minidom.py", line 555, in getitem
return self._attrs[attname_or_tuple]
KeyError: 'id'
robot@ev3dev:
/ev3-print3rbot$

@mohammed666
Copy link
Author

plse

help me

i try ran the project

File "writer.py", line 481, in
main()
File "writer.py", line 474, in main
wri.draw_image(image_file = 'images/test.svg',max_speed=35)
File "writer.py", line 439, in draw_image
self.follow_path(list_points, max_speed=max_speed)
File "writer.py", line 311, in follow_path
return self.follow_path (list_points, max_speed)
File "writer.py", line 311, in follow_path
return self.follow_path (list_points, max_speed)
File "writer.py", line 326, in follow_path
self.goto_point (x,y,brake,lastx, lasty, max_speed=max_speed)
File "writer.py", line 291, in goto_point
while (self.set_speed_to_coordinates (x,y,max_speed_,initx,inity,brake)):
File "writer.py", line 264, in set_speed_to_coordinates
next_posB, next_posA = Writer.coordinates_to_motorpos (nextx, nexty)
File "writer.py", line 212, in coordinates_to_motorpos
(alpha, beta) = Writer.coordinates_to_angles (x, y)
TypeError: 'NoneType' object is not iterable

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

1 participant