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

message type error #22

Open
RYANZYC opened this issue Jan 14, 2019 · 4 comments
Open

message type error #22

RYANZYC opened this issue Jan 14, 2019 · 4 comments

Comments

@RYANZYC
Copy link

RYANZYC commented Jan 14, 2019

image
image
I use robotstudio 6.04 to replace robot irb120 ,it show that server connects the other pc ip, but error occurs.
I am grateful for any help you have provided!

@mikedh
Copy link
Member

mikedh commented Jan 14, 2019

Hey, I haven't maintained this in a few years due to no longer having an ABB robot to test on so it hasn't been updated in some time- that particular error looks like a Python2/Python3 error. If you pass message.encode('ascii') instead of message to sock.send, it will probably fix it. There are also probably some forks which are more active (humhu) and updated for Python 3.

Best,
Mike

@RYANZYC
Copy link
Author

RYANZYC commented Jan 14, 2019

Hey, I haven't maintained this in a few years due to no longer having an ABB robot to test on so it hasn't been updated in some time- that particular error looks like a Python2/Python3 error. If you pass message.encode('ascii') instead of message to sock.send, it will probably fix it. There are also probably some forks which are more active (humhu) and updated for Python 3.

Best,
Mike

Thank you very much ,I will try it! I have a question about ip. If in robotstudio, should I use wether ip of pc or Virtual controller in following step?
image
image
image
image

@robodo2020
Copy link

robodo2020 commented Sep 17, 2020

Hi Mike,
Thanks for your support! I also encountered the same problem working on Python 3, and your reply really works!

Also for RYANZYC's IP problem, if you use virtual controller on RobotStudio, you need to set IP address in 127.0.0.1.
That is:
R = abb.Robot(ip='127.0.0.1')

IP 192.168.125.1 is for connecting to the real robot via Service Port on the Controller.

@milistu
Copy link

milistu commented Jun 29, 2023

I adjust the code to work with Python 3 and Python 2. Send the pull request, but if anybody has the same problem feel free to use this repo: https://github.com/Milutin-S/open_abb

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

4 participants