[SOLVED] Error when executing cle-start with ExDBackend


#1

Hey there,

i just installed the NRP from source following the instructions in https://bitbucket.org/hbpneurorobotics/neurorobotics-platform/overview. The build did not fail anywhere, however when i execute cle-start i get the following output:

[1] 3484
… logging to /home/cyb3/.ros/log/3465ea82-4beb-11e8-84af-7085c26fd8a2/roslaunch-cyb3Ubuntu-3484.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://127.0.0.1:42293/
ros_comm version 1.12.13

SUMMARY

PARAMETERS

  • /rosdistro: kinetic
  • /rosversion: 1.12.13

NODES

auto-starting new master
process[master]: started with pid [3496]
ROS_MASTER_URI=http://127.0.0.1:11311/

setting /run_id to 3465ea82-4beb-11e8-84af-7085c26fd8a2
process[rosout-1]: started with pid [3509]
started core service [/rosout]
[2] 3550
[ INFO] [1525033421.288595349]: Waiting For connections on 0.0.0.0:8081
[3] 4038
the rosdep view is empty: call ‘sudo rosdep init’ and ‘rosdep update’
Traceback (most recent call last):
File “/home/cyb3/Documents/NRP/ExDBackend/hbp_nrp_cleserver/hbp_nrp_cleserver/server/ROSCLESimulationFactory.py”, line 43, in
from hbp_nrp_cleserver.server.PlaybackServer import PlaybackSimulationAssembly
File “/home/cyb3/Documents/NRP/ExDBackend/hbp_nrp_cleserver/hbp_nrp_cleserver/server/PlaybackServer.py”, line 31, in
from hbp_nrp_cleserver.server.CLEGazeboSimulationAssembly import GazeboSimulationAssembly
File “/home/cyb3/Documents/NRP/ExDBackend/hbp_nrp_cleserver/hbp_nrp_cleserver/server/CLEGazeboSimulationAssembly.py”, line 53, in
from hbp_nrp_cle.robotsim.GazeboHelper import GazeboHelper
File “/home/cyb3/Documents/NRP/CLE/hbp_nrp_cle/hbp_nrp_cle/robotsim/GazeboHelper.py”, line 37, in
from gazebo_msgs.srv import SpawnEntity, GetWorldProperties, DeleteModel, SetModelState,
ImportError: cannot import name SpawnEntity
[3]+ Exit 1 PYTHONPATH=$PYTHONPATH:$HOME/.opt/platform_venv/lib/python2.7/site-packages && python $HBP/ExDBackend/hbp_nrp_cleserver/hbp_nrp_cleserver/server/ROSCLESimulationFactory.py
[3] 4045
[uWSGI] getting INI configuration from /home/cyb3/.local/etc/nginx/uwsgi-nrp.ini
*** Starting uWSGI 2.0.12-debian (64bit) on [Sun Apr 29 22:23:43 2018] ***
compiled with version: 5.4.0 20160609 on 31 August 2017 21:02:04
os: Linux-4.13.0-39-generic #44~16.04.1-Ubuntu SMP Thu Apr 5 16:43:10 UTC 2018
nodename: cyb3Ubuntu
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 6
current working directory: /home/cyb3/deepLearning/i2dl
detected binary path: /usr/bin/uwsgi-core
chdir() to /home/cyb3/Documents/NRP/ExDBackend/hbp_nrp_backend/
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 63250
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to UNIX address /home/cyb3/.local/etc/nginx/nrp-services.sock fd 3
Python version: 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609]
Set PythonHome to /home/cyb3/.opt/platform_venv
Python main interpreter initialized at 0x1bd8170
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 144896 bytes (141 KB) for 8 cores
*** Operational MODE: threaded ***
Traceback (most recent call last):
File “/home/cyb3/Documents/NRP/ExDBackend/hbp_nrp_backend/hbp_nrp_backend/runserver.py”, line 32, in
from hbp_nrp_backend.rest_server import app
File “./hbp_nrp_backend/rest_server/init.py”, line 10, in
from flask_restful_swagger import swagger
File “/home/cyb3/Documents/NRP/ExDBackend/hbp-flask-restful-swagger-master/flask_restful_swagger/swagger.py”, line 7, in
from flask.ext.restful import Resource, fields
ImportError: No module named ext.restful
unable to load app 0 (mountpoint=’’) (callable not found or import error)
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (and the only) (pid: 4047, cores: 8)
[4] 4056
registered capabilities (classes):

  • rosbridge_library.capabilities.call_service.CallService
  • rosbridge_library.capabilities.advertise.Advertise
  • rosbridge_library.capabilities.publish.Publish
  • rosbridge_library.capabilities.subscribe.Subscribe
  • <class ‘rosbridge_library.capabilities.defragmentation.Defragment’>
  • rosbridge_library.capabilities.advertise_service.AdvertiseService
  • rosbridge_library.capabilities.service_response.ServiceResponse
  • rosbridge_library.capabilities.unadvertise_service.UnadvertiseService
    [INFO] [1525033424.660983]: Rosbridge WebSocket server started on port 9090
    2018-04-29 22:23:44 GMT+0200 Polling Backend Servers for Experiments, Health & Running Simulations every 5000 ms.
    2018-04-29 22:23:44 GMT+0200 Listening on port: 8443
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/benchmark_p3dx/BenchmarkPioneer.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/braitenberg_husky_holodeck/ExDXMLExample_holodeck.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/braitenberg_husky_distributed/ExDDistributedBrainHusky.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/braitenberg_husky_spinnaker/HuskySpinnaker.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/braitenberg_husky/ExDXMLExample.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/braitenberg_husky_sbc/ExDBraitenbergHuskySBC.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/braitenberg_lauron_sbc/ExDBraitenbergLauronSBC.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/braitenberg_husky_distributed_music/ExDDistributedBrainHuskyMUSIC.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/braitenberg_mouse_holodeck_lab/ExDBraitenbergMouseHoloLab.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/braitenberg_mouse_lab/ExDBraitenbergMouseLab.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/braitenberg_mouse/ExDBraitenbergMouse.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/braitenberg_lauron/ExDBraitenbergLauron.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/cdp1_mouse_holodeck/ExDMouseCDP1_holodeck.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/cdp1_mouse/ExDMouseCDP1.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/demo_manipulation/ExDDemoManipulation.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/cdp1_mouse_tactile/ExDMouseCDP1_tactile.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/demo_husky_sbc/ExDDemoHuskySBC.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/demo_dvs_icub/ExDDvsIcub.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/demo_mouse_lab/ExDMouseLabExample.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/dvs_robot_head/ExDDvsRobotHead.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/interactive_manipulation/ExDInteractiveManipulation.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/manipulation_force_holodeck/ExDManipulationForce_holodeck.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/docked_mouse/ExDDockedMouse.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/manipulation_RL/ExDManipulationRL.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/manipulation_holodeck/ExDManipulation_holodeck.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/multiple_robots_tutorial/MultipleRobots.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/manipulation/ExDManipulation.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/manipulation_force/ExDManipulationForce.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/myoarm_small/Myo_small.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/nao/ExDNao.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/neuronal_red_detection_holodeck/NeuronalRedDetection_Husky_holodeck.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/myoarm_nst/Myo_NST.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/retina_icub/ExDRetinaICubTrackingRG.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/retina_mockup/ExDRetinaICubMockup.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/roboy/roboy.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/neuronal_red_detection/NeuronalRedDetection_Husky.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/screen_switching_holodeck/ScreenSwitchingHuskyExperiment_holodeck.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/spinnaker_example/ExDSpiNNakerExample.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/template_husky_timeout/ExDTemplateHuskyTimeout.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/template_husky/ExDTemplateHusky.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/screen_switching/ScreenSwitchingHuskyExperiment.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/template_lauron_docked/ExDTemplateDockedLauron.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/template_icub_holodeck/ExDTemplateICubHolodeck.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/template_icub/ExDTemplateICub.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/template_lauron/ExDTemplateLauron.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/template_new/TemplateNew.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/template_manipulation/ExDTemplateManipulation.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/template_mmm/ExDTemplateMMM.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/template_mouse/ExDTemplateMouseV2.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/tutorial_baseball_exercise/ExDTutorialBaseballExercise.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/tigrillo_CPG/ExDTigrilloCPG.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/tutorial_baseball_solution/ExDTutorialBaseballSolution.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/tutorial_tensorflow_husky/TensorFlowTutorial.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/template_pioneer/ExDTemplatePioneer.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/user-avatar_test-environment/user-avatar_test-env.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/visual_tracking_icub/ExDVisualTrackingICub.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/zip_robot/ExDXMLExampleRobotZip.exc
    2018-04-29 22:23:44 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/visual_tracking_icub_holodeck/ExDVisualTrackingICub_holodeck.exc
    — no python application found, check your startup logs for errors —
    — no python application found, check your startup logs for errors —
    2018-04-29 22:23:44 GMT+0200 Failed to execute request http://localhost:8080/health/errors. ERROR: Error: Status code: 500
    Internal Server Error
    2018-04-29 22:23:44 GMT+0200 Failed to execute request http://localhost:8080/simulation. ERROR: Error: Status code: 500
    Internal Server Error
    — no python application found, check your startup logs for errors —
    — no python application found, check your startup logs for errors —

I can run cle-frontend, clone some of the template experiments, but i am not able to launch them. The “launch” button is constantly greyed out, telling me there is no server available (BackEnds: 0).

I figured the following errors out of the above output, and i do not know how to remove them:
from gazebo_msgs.srv import SpawnEntity: cannot import name SpawnEntity
from flask.ext.restful import Resource: No module named ext.restful
and finally the Internal Server Error: Satus code: 500 (export PYTHONPATH= did not solve the Error 500).

I am happy for every hint on how to solve these problems so i can run some of the template experiments.
Any help is appreciated :smile:

Greetings
Michael


#2

Hi Michael,

Could you paste the results of echo $PYTHONPATH ? Did you also run configure_nrp before launching the cle?

Regards,
Manos


#3

Hi Manos,

thanks for your reply.
I did run configure_nrp before launching cle, i get the following output:

Removing existing config files for nginx, ExDFrontend, ExDBackend, CLE, nrpBackendProxy and the gzserver/gzbridge scripts.
Would you like to NOT backup your local versions? (this also purges your existing backups) (y/N)

Warning: your running mode has been switched to full local (2).
you might want to run running_mode to change it.

Running echo $PYTHONPATH gives me the following results:

/opt/ros/kinetic/lib/python2.7/dist-packages:/home/cyb3/Documents/NRP/retina/build/lib:/home/cyb3/.local/lib/python2.7/site-packages:/home/cyb3/.local/lib/x86_64-linux-gnu/python2.7/site-packages:/home/cyb3/Documents/NRP/GazeboRosPackages/devel/lib/python2.7/dist-packages:/home/cyb3/Documents/NRP/CLE/hbp_nrp_cle:/home/cyb3/Documents/NRP/ExperimentControl/hbp_nrp_excontrol:/home/cyb3/Documents/NRP/ExperimentControl/hbp_nrp_scxml:/home/cyb3/Documents/NRP/ExDBackend/hbp_nrp_backend:/home/cyb3/Documents/NRP/ExDBackend/hbp_nrp_cleserver:/home/cyb3/Documents/NRP/ExDBackend/hbp_nrp_commons:/home/cyb3/Documents/NRP/ExDBackend/hbp_nrp_watchdog:/home/cyb3/Documents/NRP/ExDBackend/hbp-flask-restful-swagger-master:/home/cyb3/Documents/NRP/VirtualCoach/hbp_nrp_virtual_coach:/home/cyb3/Documents/NRP/BrainSimulation/hbp_nrp_music_xml:/home/cyb3/Documents/NRP/BrainSimulation/hbp_nrp_music_interface:/home/cyb3/Documents/NRP/BrainSimulation/hbp_nrp_distributed_nest

Cheers for your help!
Michael


#4

Hi Michael,

I am a bit unsure about whether the export PYTHONPATH= worked. Did you add it to your .bashrc or did you just do it once on a terminal? Also after running the configure_nrp what is the output of cle-start?

Regards,
Manos


#5

Hey,

i added the line to my .bashrc, just as described in the installation guide, though i am not sure if it worked:

[…]
export HBP=$HOME/Documents/NRP
export NRP_INSTALL_MODE=user
export PYTHONPATH=
. $HBP/user-scripts/nrp_variables
. $HBP/user-scripts/nrp_aliases
[…]

Output of cle-start after running configure_nrp:

[1] 6409
… logging to /home/cyb3/.ros/log/78059642-4c50-11e8-87a2-7085c26fd8a2/roslaunch-cyb3Ubuntu-6409.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://127.0.0.1:37079/
ros_comm version 1.12.13

SUMMARY

PARAMETERS

  • /rosdistro: kinetic
  • /rosversion: 1.12.13

NODES

auto-starting new master
process[master]: started with pid [6420]
ROS_MASTER_URI=http://127.0.0.1:11311/

setting /run_id to 78059642-4c50-11e8-87a2-7085c26fd8a2
process[rosout-1]: started with pid [6433]
started core service [/rosout]
[2] 6450
[ INFO] [1525076913.911143820]: Waiting For connections on 0.0.0.0:8081
[3] 6479
the rosdep view is empty: call ‘sudo rosdep init’ and ‘rosdep update’
Traceback (most recent call last):
File “/home/cyb3/Documents/NRP/ExDBackend/hbp_nrp_cleserver/hbp_nrp_cleserver/server/ROSCLESimulationFactory.py”, line 43, in
from hbp_nrp_cleserver.server.PlaybackServer import PlaybackSimulationAssembly
File “/home/cyb3/Documents/NRP/ExDBackend/hbp_nrp_cleserver/hbp_nrp_cleserver/server/PlaybackServer.py”, line 31, in
from hbp_nrp_cleserver.server.CLEGazeboSimulationAssembly import GazeboSimulationAssembly
File “/home/cyb3/Documents/NRP/ExDBackend/hbp_nrp_cleserver/hbp_nrp_cleserver/server/CLEGazeboSimulationAssembly.py”, line 53, in
from hbp_nrp_cle.robotsim.GazeboHelper import GazeboHelper
File “/home/cyb3/Documents/NRP/CLE/hbp_nrp_cle/hbp_nrp_cle/robotsim/GazeboHelper.py”, line 37, in
from gazebo_msgs.srv import SpawnEntity, GetWorldProperties, DeleteModel, SetModelState,
ImportError: cannot import name SpawnEntity
[3]+ Exit 1 PYTHONPATH=$PYTHONPATH:$HOME/.opt/platform_venv/lib/python2.7/site-packages && python $HBP/ExDBackend/hbp_nrp_cleserver/hbp_nrp_cleserver/server/ROSCLESimulationFactory.py
[3] 6486
[uWSGI] getting INI configuration from /home/cyb3/.local/etc/nginx/uwsgi-nrp.ini
*** Starting uWSGI 2.0.12-debian (64bit) on [Mon Apr 30 10:28:35 2018] ***
compiled with version: 5.4.0 20160609 on 31 August 2017 21:02:04
os: Linux-4.13.0-39-generic #44~16.04.1-Ubuntu SMP Thu Apr 5 16:43:10 UTC 2018
nodename: cyb3Ubuntu
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 6
current working directory: /home/cyb3/Documents/NRP/user-scripts
detected binary path: /usr/bin/uwsgi-core
chdir() to /home/cyb3/Documents/NRP/ExDBackend/hbp_nrp_backend/
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 63317
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to UNIX address /home/cyb3/.local/etc/nginx/nrp-services.sock fd 3
Python version: 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609]
Set PythonHome to /home/cyb3/.opt/platform_venv
Python main interpreter initialized at 0x16cd3a0
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 144896 bytes (141 KB) for 8 cores
*** Operational MODE: threaded ***
Traceback (most recent call last):
File “/home/cyb3/Documents/NRP/ExDBackend/hbp_nrp_backend/hbp_nrp_backend/runserver.py”, line 32, in
from hbp_nrp_backend.rest_server import app
File “./hbp_nrp_backend/rest_server/init.py”, line 10, in
from flask_restful_swagger import swagger
File “/home/cyb3/Documents/NRP/ExDBackend/hbp-flask-restful-swagger-master/flask_restful_swagger/swagger.py”, line 7, in
from flask.ext.restful import Resource, fields
ImportError: No module named ext.restful
unable to load app 0 (mountpoint=’’) (callable not found or import error)
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (and the only) (pid: 6488, cores: 8)
[4] 6497
registered capabilities (classes):

  • rosbridge_library.capabilities.call_service.CallService
  • rosbridge_library.capabilities.advertise.Advertise
  • rosbridge_library.capabilities.publish.Publish
  • rosbridge_library.capabilities.subscribe.Subscribe
  • <class ‘rosbridge_library.capabilities.defragmentation.Defragment’>
  • rosbridge_library.capabilities.advertise_service.AdvertiseService
  • rosbridge_library.capabilities.service_response.ServiceResponse
  • rosbridge_library.capabilities.unadvertise_service.UnadvertiseService
    2018-04-30 10:28:37 GMT+0200 Polling Backend Servers for Experiments, Health & Running Simulations every 5000 ms.
    2018-04-30 10:28:37 GMT+0200 Listening on port: 8443
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/benchmark_p3dx/BenchmarkPioneer.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/braitenberg_husky_distributed_music/ExDDistributedBrainHuskyMUSIC.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/braitenberg_husky_distributed/ExDDistributedBrainHusky.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/braitenberg_husky_holodeck/ExDXMLExample_holodeck.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/braitenberg_husky_sbc/ExDBraitenbergHuskySBC.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/braitenberg_husky_spinnaker/HuskySpinnaker.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/braitenberg_husky/ExDXMLExample.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/braitenberg_lauron_sbc/ExDBraitenbergLauronSBC.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/braitenberg_lauron/ExDBraitenbergLauron.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/braitenberg_mouse_holodeck_lab/ExDBraitenbergMouseHoloLab.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/braitenberg_mouse_lab/ExDBraitenbergMouseLab.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/braitenberg_mouse/ExDBraitenbergMouse.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/cdp1_mouse_holodeck/ExDMouseCDP1_holodeck.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/cdp1_mouse_tactile/ExDMouseCDP1_tactile.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/demo_dvs_icub/ExDDvsIcub.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/cdp1_mouse/ExDMouseCDP1.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/demo_husky_sbc/ExDDemoHuskySBC.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/demo_manipulation/ExDDemoManipulation.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/demo_mouse_lab/ExDMouseLabExample.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/docked_mouse/ExDDockedMouse.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/dvs_robot_head/ExDDvsRobotHead.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/interactive_manipulation/ExDInteractiveManipulation.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/manipulation_force_holodeck/ExDManipulationForce_holodeck.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/manipulation_force/ExDManipulationForce.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/manipulation_holodeck/ExDManipulation_holodeck.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/manipulation_RL/ExDManipulationRL.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/manipulation/ExDManipulation.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/multiple_robots_tutorial/MultipleRobots.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/myoarm_nst/Myo_NST.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/myoarm_small/Myo_small.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/nao/ExDNao.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/neuronal_red_detection_holodeck/NeuronalRedDetection_Husky_holodeck.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/neuronal_red_detection/NeuronalRedDetection_Husky.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/retina_icub/ExDRetinaICubTrackingRG.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/retina_mockup/ExDRetinaICubMockup.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/roboy/roboy.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/screen_switching_holodeck/ScreenSwitchingHuskyExperiment_holodeck.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/screen_switching/ScreenSwitchingHuskyExperiment.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/spinnaker_example/ExDSpiNNakerExample.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/template_husky_timeout/ExDTemplateHuskyTimeout.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/template_icub_holodeck/ExDTemplateICubHolodeck.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/template_husky/ExDTemplateHusky.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/template_lauron_docked/ExDTemplateDockedLauron.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/template_icub/ExDTemplateICub.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/template_lauron/ExDTemplateLauron.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/template_manipulation/ExDTemplateManipulation.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/template_mmm/ExDTemplateMMM.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/template_mouse/ExDTemplateMouseV2.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/template_new/TemplateNew.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/tigrillo_CPG/ExDTigrilloCPG.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/template_pioneer/ExDTemplatePioneer.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/tutorial_baseball_exercise/ExDTutorialBaseballExercise.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/tutorial_baseball_solution/ExDTutorialBaseballSolution.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/tutorial_tensorflow_husky/TensorFlowTutorial.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/user-avatar_test-environment/user-avatar_test-env.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/visual_tracking_icub_holodeck/ExDVisualTrackingICub_holodeck.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/visual_tracking_icub/ExDVisualTrackingICub.exc
    2018-04-30 10:28:37 GMT+0200 Parsing experiment file /home/cyb3/Documents/NRP/Experiments/zip_robot/ExDXMLExampleRobotZip.exc
    [INFO] [1525076917.248931]: Rosbridge WebSocket server started on port 9090
    — no python application found, check your startup logs for errors —
    — no python application found, check your startup logs for errors —
    2018-04-30 10:28:37 GMT+0200 Failed to execute request http://localhost:8080/health/errors. ERROR: Error: Status code: 500
    Internal Server Error
    2018-04-30 10:28:37 GMT+0200 Failed to execute request http://localhost:8080/simulation. ERROR: Error: Status code: 500
    Internal Server Error

Is the same i guess as posted in my initial question, but i am not exactly sure.

Regards
Michael


#6

Hey again,

any suggestions on how to solve these issues? I just did a clean and fresh re-installation of the whole NRP, resulting in the exact same outputs and problems. Building runs completely without throwing errors, however i still can’t launch any experiments.
I appreciate any ideas that might help me getting the platform to run correctly.

Thanks :smile:
Regards
Michael


#7

Hi Michael, the problem resides in this line:

We will release a fix very soon for this. In the mean time, you can perform the following operations:

cle-kill

Then edit $HBP/ExDBackend/hbp-flask-restful-swagger-master/flask_restful_swagger/swagger.py by replacing

from flask.ext.restful import Resource, fields

with

from flask_restful import Resource, fields

Eventually, run the following commands:

  source $HOME/.opt/platform_venv/bin/activate
  pip install --upgrade --force-reinstall flask_restful
  pip install --upgrade --force-reinstall flask-restful-swagger
  deactivate

To restart the NRP, proceed as usual:

cle-start
cle-frontend

Best regards,
Luc


#8

Hey Luc,

thanks for your reply! The “ImportError: No module named ext.restful” does not appear anymore now.
However, when i follow your instructions, and run cle-start (with the platform-venv activated), i get the following error:

ImportError: No module named pyNN.nest

I know that this is probably an error related to the PYTHONPATH variable, which i erase directly before creating the nrp_variables in the .bashrc (This is explained in the BitBucket Guide):

[…]
ImportError: No module named pyNN.nest

then you have a problem with your PYTHONPATH. Most probably your
PYTHONPATH is containing /usr/lib/python2.7/dist-packages before the NRP
paths. Try to erase it in your .bashrc
before loading nrp_variables.
[…]
export PYTHONPATH=
. $HBP/user-scripts/nrp_variables
[…]

If this does not help, the following (not very nice) solution has been reported. Before cle-start:
source $HBP_VIRTUAL_ENV/bin/activate

which “forces” the platform_venv directory to the front of the Python search path.

[…]

I tried both solutions here, none of them works for me. Could there be any problem with my “export PYTHONPATH=” line in the .bashrc?

My PYTHONPATH does contain /usr/lib/python2.7/dist-packages before the NRP paths (which it shouldn’t), see output of echo $PYTHONPATH:

/home/cyb3/Documents/NRP/retina/build/lib:/home/cyb3/Documents/NRP/GazeboRosPackages/devel/lib/python2.7/dist-packages:/opt/ros/kinetic/lib/python2.7/dist-packages:/home/cyb3/.local/lib/python2.7/site-packages:/home/cyb3/.local/lib/x86_64-linux-gnu/python2.7/site-packages:/home/cyb3/Documents/NRP/GazeboRosPackages/devel/lib/python2.7/dist-packages:/home/cyb3/Documents/NRP/CLE/hbp_nrp_cle:/home/cyb3/Documents/NRP/ExperimentControl/hbp_nrp_excontrol:/home/cyb3/Documents/NRP/ExperimentControl/hbp_nrp_scxml:/home/cyb3/Documents/NRP/ExDBackend/hbp_nrp_backend:/home/cyb3/Documents/NRP/ExDBackend/hbp_nrp_cleserver:/home/cyb3/Documents/NRP/ExDBackend/hbp_nrp_commons:/home/cyb3/Documents/NRP/ExDBackend/hbp_nrp_watchdog:/home/cyb3/Documents/NRP/ExDBackend/hbp-flask-restful-swagger-master:/home/cyb3/Documents/NRP/VirtualCoach/hbp_nrp_virtual_coach:/home/cyb3/Documents/NRP/BrainSimulation/hbp_nrp_music_xml:/home/cyb3/Documents/NRP/BrainSimulation/hbp_nrp_music_interface:/home/cyb3/Documents/NRP/BrainSimulation/hbp_nrp_distributed_nest

Any help on that?
Thanks again for taking care of my issues!

Regards
Michael


#9

Hello Michael,

What is the output of the following command?

ls ~/.opt/platform_venv/lib/python2.7/site-packages/pyNN/nest

I suspect that something went wrong when installing nest ($HBP/nest-simulator). This might be solved by re-building $HBP/nest-simulator.

Best regards,
Luc


#10

Hey :smile:

The output is

ls: cannot access ‘/home/cyb3/.opt/platform_venv/lib/python2.7/site-packages/pyNN/nest’: No such file or directory

Guess nest-stimulator has to be re-build?

Regards,
Michael


#11

Actually, the build of the CLE is responsible for installing PyNN. So you may try:

cd $HBP/CLE
make devinstall 

and check ~/.opt/platform_venv/lib/python2.7/site-packages/pyNN/nest again. If this doesn’t help, consider the following quick fix:

source ~/.opt/platform_venv/bin/activate
pip install PyNN==0.8.3
deactivate

#12

Hey again,

i followed your instructions, the first option did not work for me, so i went for the pip install PyNN.
Afterwards, when executing cle-start i got some other ImportErrors again, which i fixed by installing them manually via pip.

In the end, i had to run the following pip installations manually:
pip install PyNN
pip install lazyarray
pip install neo
pip install futures

Finally, when i execute cle-start now i don’t see errors in the output anymore and i am able to launch some of the template experiments.
I guess my problems are fixed then.
Thanks for your help, i hope this post helps others facing some issues during installation, as well as the admins in improving/updating the installation from source :smile:

Best regards,
Michael