from robodk.robomath import * ModuleNotFoundError: No module named 'robodk.robomath'; 'robodk' is not a package ????"> No module named robodk.robomath, robodk is not a package - Printable Version - 英格兰vs伊朗谁会赢?
RoboDK Forum
No module named robodk.robomath, robodk is not a package- Printable Version

+- RoboDK Forum (//www.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN)
+--- Forum: RoboDK API (//www.sinclairbody.com/forum/Forum-RoboDK-API)
+--- Thread: No module named robodk.robomath, robodk is not a package (/Thread-No-module-named-robodk-robomath-robodk-is-not-a-package)

Pages: 1 2


No module named robodk.robomath, robodk is not a package-robo1973-03-22-2022

File "c:/RoboDK/Posts/Kawasaki.py", line 47, in
from robodk.robomath import *
ModuleNotFoundError: No module named 'robodk.robomath'; 'robodk' is not a package ????


RE: No module named 'robodk.robomath'; 'robodk' is not a package-Jeremy-03-22-2022

Are you using a custom post-processor?

If not, can you update RDK to the latest version? We did some modifications to our API but it should not affect you like this.

Jeremy


RE: No module named 'robodk.robomath'; 'robodk' is not a package-Albert-03-22-2022

This is probably not an official post processor. Where did you get it from?

You can replace line 47 of your Kawasaki.py post processor for this line:
Code:
from robodk import *



RE: No module named 'robodk.robomath'; 'robodk' is not a package-robo1973-03-22-2022


Yes, non-standard postprocessor
OK !!


RE: No module named 'robodk.robomath'; 'robodk' is not a package-Sam-03-22-2022

For more details on why you might encounter this issue, see this post:
//www.sinclairbody.com/forum/Thread-Python-API-for-RoboDK-5-4-0

In this case, I believe either the RoboDK version or the robodk python package is not up-to-date (5.4.0+).


RE: No module named 'robodk.robomath'; 'robodk' is not a package-robo1973-03-22-2022

after such changes it compiles Another question.

How do I call these functions in RoboDK
codel.startswith ("weldstart") codel.startswith ("arcstart"): ???


RE: No module named 'robodk.robomath'; 'robodk' is not a package-Jeremy-03-22-2022

the "def runcode" refers to the "Program Call" of RDK UI.
You can add them either manually or using the curve follow project "Program events".

https://drive.google.com/drive/folders/1CuDJ_cTwYwJp0edgH_b7LJCCTdy-p7GW
Excel sheet
Module 1 -> Subprogram
Module 10 -> Program Events.

Just use the keyword weldstart or arcstart as the name of the program called and the post will pick it up.

There's also a video about post-processor usage and modifications.

Jeremy


RE: No module named 'robodk.robomath'; 'robodk' is not a package-robo1973-03-22-2022

thank you !!!


RE: No module named 'robodk.robomath'; 'robodk' is not a package-robo1973-03-24-2022

Hello !!
did i call functions correctly?
In post procecor I do not see adding the command: LWS? (getting to the starting point, arc ignition)
How can I add this feature?
干杯!


RE: No module named 'robodk.robomath'; 'robodk' is not a package-Jeremy-03-24-2022

If you own a Professional version under maintenance, you can contact us through "Help"->"Request support". We will help you modify the post-processor according to your needs.
I'm not sure the welding features were integrated into the Kawasaki post.

Jeremy