Skip to content

ImportError: No module named AlljoynRouter #1

@mclarkk

Description

@mclarkk

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions