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

ImportError: No module named AlljoynRouter #1

Open
mclarkk opened this issue Jan 9, 2017 · 3 comments
Open

ImportError: No module named AlljoynRouter #1

mclarkk opened this issue Jan 9, 2017 · 3 comments

Comments

@mclarkk
Copy link

mclarkk commented Jan 9, 2017

Hi there! I'm trying to install these Python AllJoyn bindings on a Raspberry Pi. I have AllJoyn installed and the alljoyn-daemon running successfully on it. I installed this module with the following command (I added the option build_ext -n -I/home/pi/alljoyn-16.04a-src/alljoyn_core/inc because the original build couldn't find my AllJoyn Init.h when trying to build the router):

$> sudo python setup.py install build_ext -n -I/home/pi/alljoyn-16.04a-src/alljoyn_core/inc
running install
running build
running build_py
running build_ext
building 'AlljoynRouter' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DQCC_OS_GROUP_POSIX=1 -I/home/pi/alljoyn-16.04a-src/alljoyn_core/inc -I/usr/include/python2.7 -c AllJoynPy/Router.c -o build/temp.linux-armv7l-2.7/AllJoynPy/Router.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-armv7l-2.7/AllJoynPy/Router.o -lalljoyn -lajrouter -o build/lib.linux-armv7l-2.7/AlljoynRouter.so
running install_lib
running install_egg_info
Removing /usr/local/lib/python2.7/dist-packages/AllJoynPy-1.0.egg-info
Writing /usr/local/lib/python2.7/dist-packages/AllJoynPy-1.0.egg-info

So it looks like installation was successful, including the build of the AlljoynRouter. However, when I go to run BasicService.py (with alljoyn-daemon running) I get the following:

Traceback (most recent call last):
  File "BasicService.py", line 3, in <module>
    from AllJoynPy import AllJoyn, AboutListener, MsgArg, AboutData, \
  File "/usr/local/lib/python2.7/dist-packages/AllJoynPy/__init__.py", line 22, in <module>
    import AlljoynRouter
ImportError: No module named AlljoynRouter

I don't see AlljoynRouter.so under build/lib.linux-armv7l-2.7, nor do I see Router.o under build/temp.linux-armv7l-2.7/AllJoyn, so perhaps the extension is not getting installed? Do you have any idea about what might be causing that?

Thank you!

@glennpierce
Copy link
Owner

glennpierce commented Jan 9, 2017 via email

@mclarkk
Copy link
Author

mclarkk commented Jan 11, 2017

Thanks for the reply! Yeah, the whole distributed D-Bus idea behind AllJoyn seems like a good idea, but the codebase is a mess with regards to usability. I'll give it another shot this weekend, but I'm thinking it might actually be less hassle to whip up my own lightweight bus that captures the good ideas of AllJoyn without all the enterprise-y baggage (none of the devices I have support AllJoyn and would need to have adapters written anyway). Thanks again!

@glennpierce
Copy link
Owner

glennpierce commented Jan 12, 2017 via email

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