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

onshape-to-robot #120

Closed
dioufbb opened this issue Apr 24, 2024 · 6 comments
Closed

onshape-to-robot #120

dioufbb opened this issue Apr 24, 2024 · 6 comments

Comments

@dioufbb
Copy link

dioufbb commented Apr 24, 2024

hello i'm tryna to create a my robot urdf but i have as output this
Traceback (most recent call last):
File "/usr/local/bin/onshape-to-robot", line 8, in
sys.exit(onshape_to_robot.main())
File "/usr/local/lib/python3.10/dist-packages/onshape_to_robot/onshape_to_robot.py", line 246, in main
buildRobot(tree, np.matrix(np.identity(4)))
File "/usr/local/lib/python3.10/dist-packages/onshape_to_robot/onshape_to_robot.py", line 206, in buildRobot
addPart(occurrence, matrix)
File "/usr/local/lib/python3.10/dist-packages/onshape_to_robot/onshape_to_robot.py", line 91, in addPart
with open(config['outputDirectory']+'/'+stlFile, 'wb') as stream:
PermissionError: [Errno 13] Permission denied: 'AGV_Project/part_1.stl'
Someone can help me

@Gregwar
Copy link
Contributor

Gregwar commented Apr 24, 2024

Hello,

From the error message, it looks like you don't have permissions to write a STL file in the output directory

@dioufbb
Copy link
Author

dioufbb commented Apr 24, 2024

And how can I fixe that

@dioufbb
Copy link
Author

dioufbb commented Apr 24, 2024

and i remark something during the onshape to robot installation; i didnt acheive the clonage step ; it doesn't work; did you think it can affect my work
I get something like that
VirtualBox:~$ git clone git@github.com:Rhoban/onshape-to-robot.git
Cloning into 'onshape-to-robot'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

@Gregwar
Copy link
Contributor

Gregwar commented Apr 24, 2024

You don't have to clone it if you installed it with pip

Edit: For your permission problem, what are the output directory permissions?

@Gregwar
Copy link
Contributor

Gregwar commented Apr 24, 2024

(for example, if you created the output directory and config.json with root user and are running onshape to robot as the user)

@dioufbb
Copy link
Author

dioufbb commented Apr 24, 2024

it work

@dioufbb dioufbb closed this as completed May 16, 2024
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