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

ZCM-DEBUG: failed to find transport for 'ipc' #503

Open
DanielArnett opened this issue Dec 10, 2024 · 6 comments
Open

ZCM-DEBUG: failed to find transport for 'ipc' #503

DanielArnett opened this issue Dec 10, 2024 · 6 comments

Comments

@DanielArnett
Copy link

In Ubuntu 22.02 I'm running through the steps in the tutorial, and on multiple machines (and even in a fresh docker container) I'm getting the same error.

From examples/cpp/pubsub:

$ source ./examples/env
$ export ZCM_DEFAULT_URL="ipc"
$ ZCM_DEBUG=1 ./build/examples/examples/cpp/pubsub
ZCM-DEBUG: failed to find transport for 'ipc'
sub: ../zcm/zcm.c:42: zcm_create: Assertion `ret == ZCM_EOK' failed.
Aborted (core dumped)

This error comes even after experimenting with different transports like those described in transports.md. So whether it's ipc, inproc, or udp I'll get the associated error:

ZCM-DEBUG: failed to find transport for 'udp://127.0.0.1:9000:9001?ttl=0'
pubsub: ../zcm/zcm.c:42: zcm_create: Assertion `ret == ZCM_EOK' failed.
Aborted (core dumped)

All of the example files like ./build/examples/examples/cpp/sub give the same result, even though ./waf build_examples seems to run fine 'build_examples' finished successfully (5.571s).

@jbendes
Copy link
Member

jbendes commented Dec 10, 2024

When you say, in a fresh docker container, you're building the supplied Dockerfile and getting that error?

@jbendes
Copy link
Member

jbendes commented Dec 10, 2024

I would need the full set of commands and print outs for the whole build process to help out here

@DanielArnett
Copy link
Author

I'm following this guide. I've attached my logs building outside the container (except for the dependency installation script)

By docker I meant my own container I use for development. I can in fact run the provided Dockerfile, but when I try to open a bash shell in a container derived from it, I run into other issues that I'm not sure we want to debug here. Ultimately I'll need to be able to build the cpp examples in my own environment for development.

root@72d1af1b277f:/zcm# ./waf build_examples
Waf: Entering directory `/zcm/build/examples'
----------------------------------------Checking for program 'zcm-gen'Checking for program 'zcm-gen'           : /usr/local/bin/zcm-gen/usr/local/bin/zcm-gen 
find program=['zcm-gen'] paths=['/zcm/deps/cxxtest/bin', '/zcm/deps/cxxtest/bin', '/root/.nvm/versions/node/v10.23.3/bin', '/usr/local/sbin', '/usr/local/bin', '/usr/sbin', '/usr/bin', '/sbin', '/bin', '/root/.local/bin', '/zcm/deps/julia/bin', '/root/.local/bin', '/zcm/build/zcm'] var='ZCMGEN' -> ['/usr/local/bin/zcm-gen']----------------------------------------Checking for 'zcm'Checking for 'zcm'                       : ['/usr/bin/pkg-config', '--cflags', '--libs', 'zcm']out: -I/usr/local/include -L/usr/local/lib -lzcm
yesyes 
----------------------------------------Checking for 'zcm'Checking for 'zcm'                       : ['/usr/bin/pkg-config', 'zcm', '--variable=classpath']out: /usr/local/share/java/zcm.jar
yesyes 
----------------------------------------Checking for zcm.jarChecking for zcm.jar                     : /usr/local/share/java/zcm.jar/usr/local/share/java/zcm.jar 
----------------------------------------Checking for 'zcm-tools'Checking for 'zcm-tools'                 : ['/usr/bin/pkg-config', 'zcm-tools', '--variable=classpath']out: /usr/local/share/java/zcm-tools.jar
yesyes 
----------------------------------------Checking for zcm-tools.jarChecking for zcm-tools.jar               : /usr/local/share/java/zcm-tools.jar/usr/local/share/java/zcm-tools.jar 
['/usr/lib/jvm/java-11-openjdk-amd64/bin/java', '-cp', '.waf-javatest:/usr/local/share/java/zcm.jar', 'Test', 'zcm.zcm.ZCM']
----------------------------------------Checking for java class zcm.zcm.ZCMChecking for java class zcm.zcm.ZCM      : okok 
['/usr/lib/jvm/java-11-openjdk-amd64/bin/java', '-cp', '.waf-javatest:/usr/local/share/java/zcm-tools.jar:/usr/local/share/java/zcm.jar', 'Test', 'zcm.spy.Spy']
----------------------------------------Checking for java class zcm.spy.SpyChecking for java class zcm.spy.Spy      : okok 
Waf: Leaving directory `/zcm/build/examples'
Task dependency cycle in "run_after" constraints: 
	{task 137435155660872: jar_create  -> examplezcmtypespfx.jar}
	{task 137435155648408: javac  -> }
root@72d1af1b277f:/zcm# 

@jbendes
Copy link
Member

jbendes commented Dec 10, 2024

That's just the log of building the examples. I need to see the build of zcm

@jbendes
Copy link
Member

jbendes commented Dec 11, 2024

If I were to guess, you're not installing zcm to your machine?

@jbendes
Copy link
Member

jbendes commented Dec 11, 2024

Also if you want a bit more realtime support, I'd recommend heading over to discord

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