Dear forum,
I have the NRP on a local source install on ubuntu 16.04, and things were working fine earlier today. But after creating a catkin workspace and adding /home/oskar/catkin_ws/src to my ROS_PACKAGE_PATH and . /home/oskar/catkin_ws/devel/setup.bash in my .bashrc file, running cle-start gave me the following error, also after I changed the .bashrc back to what it was before:
[1] 18629
… logging to /home/oskar/.ros/log/db522956-5099-11e9-89e2-d8cb8a97bc63/roslaunch-oskar-MS-7850-18629.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:42123/
ros_comm version 1.12.14
SUMMARY
PARAMETERS
- /rosdistro: kinetic
- /rosversion: 1.12.14
NODES
auto-starting new master
process[master]: started with pid [18640]
ROS_MASTER_URI=http://127.0.0.1:11311/
setting /run_id to db522956-5099-11e9-89e2-d8cb8a97bc63
process[rosout-1]: started with pid [18653]
started core service [/rosout]
[2] 18670
[ INFO] [1553695736.123058273]: Waiting For connections on 0.0.0.0:8081
[3] 18700
Traceback (most recent call last):
File “/home/oskar/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/oskar/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/oskar/Documents/NRP/ExDBackend/hbp_nrp_cleserver/hbp_nrp_cleserver/server/CLEGazeboSimulationAssembly.py”, line 41, in
from hbp_nrp_cle.robotsim.RobotManager import Robot, RobotManager
File “/home/oskar/Documents/NRP/CLE/hbp_nrp_cle/hbp_nrp_cle/robotsim/RobotManager.py”, line 38, in
from .GazeboHelper import GazeboHelper
File “/home/oskar/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 $HOME/.opt/platform_venv/bin/python $HBP/ExDBackend/hbp_nrp_cleserver/hbp_nrp_cleserver/server/ROSCLESimulationFactory.py
[3] 18714
[uWSGI] getting INI configuration from /home/oskar/.local/etc/nginx/uwsgi-nrp.ini
*** Starting uWSGI 2.0.12-debian (64bit) on [Wed Mar 27 15:08:58 2019] ***
compiled with version: 5.4.0 20160609 on 28 September 2018 15:49:44
os: Linux-4.15.0-46-generic #49~16.04.1-Ubuntu SMP Tue Feb 12 17:45:24 UTC 2019
nodename: oskar-MS-7850
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 8
current working directory: /home/oskar/catkin_ws/devel
detected binary path: /usr/bin/uwsgi-core
chdir() to /home/oskar/Documents/NRP/ExDBackend/hbp_nrp_backend/
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 128172
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 /tmp/nrp-services.sock fd 3
Python version: 2.7.12 (default, Nov 12 2018, 14:36:49) [GCC 5.4.0 20160609]
Set PythonHome to /home/oskar/.opt/platform_venv
Python main interpreter initialized at 0x8e3d20
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/oskar/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 78, in
from hbp_nrp_backend.rest_server.__SimulationResources import SimulationResources
File “./hbp_nrp_backend/rest_server/__SimulationResources.py”, line 34, in
from hbp_nrp_backend.rest_server.__SimulationControl import _get_simulation_or_abort
File “./hbp_nrp_backend/rest_server/__SimulationControl.py”, line 44, in
from gazebo_msgs.srv import SetVisualProperties, SetLightProperties, GetLightProperties
ImportError: cannot import name SetVisualProperties
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: 18716, cores: 8)
[4] 18728
nrp_backend_proxy@2.1.2 start /home/oskar/Documents/NRP/nrpBackendProxy
NODE_ENV=production node_modules/ts-node/dist/bin.js app.ts
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] [1553695739.368383]: Rosbridge WebSocket server started on port 9090
2019-03-27 15:08:59 GMT+0100 Error: watch /home/oskar/Documents/NRP/nrpBackendProxy/config.json ENOSPC
at FSWatcher.start (fs.js:1382:19)
at Object.fs.watch (fs.js:1408:11)
at Object.watch (/home/oskar/Documents/NRP/nrpBackendProxy/utils/configurationManager.ts:84:6)
at Object. (/home/oskar/Documents/NRP/nrpBackendProxy/app.ts:48:22)
at Module._compile (module.js:653:30)
at Module.m._compile (/home/oskar/Documents/NRP/nrpBackendProxy/node_modules/ts-node/src/index.ts:439:23)
at Module._extensions…js (module.js:664:10)
at Object.require.extensions.(anonymous function) [as .ts] (/home/oskar/Documents/NRP/nrpBackendProxy/node_modules/ts-node/src/index.ts:442:12)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Function.Module.runMain (module.js:694:10)
at Object. (/home/oskar/Documents/NRP/nrpBackendProxy/node_modules/ts-node/src/bin.ts:157:12)
at Module._compile (module.js:653:30)
at Object.Module._extensions…js (module.js:664:10)
at Module.load (module.js:566:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nrp_backend_proxy@2.1.2 start:NODE_ENV=production node_modules/ts-node/dist/bin.js app.ts
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nrp_backend_proxy@2.1.2 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/oskar/.npm/_logs/2019-03-27T14_08_59_750Z-debug.log
Now, after that I tested to update with update_nrp, but this then instead gives me the following error
[1] 8497
… logging to /home/oskar/.ros/log/abc84920-50b4-11e9-89e2-d8cb8a97bc63/roslaunch-oskar-MS-7850-8497.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:44953/
ros_comm version 1.12.14
SUMMARY
PARAMETERS
- /rosdistro: kinetic
- /rosversion: 1.12.14
NODES
auto-starting new master
process[master]: started with pid [8508]
ROS_MASTER_URI=http://127.0.0.1:11311/
setting /run_id to abc84920-50b4-11e9-89e2-d8cb8a97bc63
process[rosout-1]: started with pid [8521]
started core service [/rosout]
[2] 8538
[ INFO] [1553707252.747839098]: Waiting For connections on 0.0.0.0:8081
[3] 8568
Traceback (most recent call last):
File “/home/oskar/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/oskar/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/oskar/Documents/NRP/ExDBackend/hbp_nrp_cleserver/hbp_nrp_cleserver/server/CLEGazeboSimulationAssembly.py”, line 41, in
from hbp_nrp_cle.robotsim.RobotManager import Robot, RobotManager
File “/home/oskar/Documents/NRP/CLE/hbp_nrp_cle/hbp_nrp_cle/robotsim/RobotManager.py”, line 38, in
from .GazeboHelper import GazeboHelper
File “/home/oskar/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 $HOME/.opt/platform_venv/bin/python $HBP/ExDBackend/hbp_nrp_cleserver/hbp_nrp_cleserver/server/ROSCLESimulationFactory.py
[3] 8580
[uWSGI] getting INI configuration from /home/oskar/.local/etc/nginx/uwsgi-nrp.ini
*** Starting uWSGI 2.0.12-debian (64bit) on [Wed Mar 27 18:20:54 2019] ***
compiled with version: 5.4.0 20160609 on 28 September 2018 15:49:44
os: Linux-4.15.0-46-generic #49~16.04.1-Ubuntu SMP Tue Feb 12 17:45:24 UTC 2019
nodename: oskar-MS-7850
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 8
current working directory: /home/oskar
detected binary path: /usr/bin/uwsgi-core
chdir() to /home/oskar/Documents/NRP/ExDBackend/hbp_nrp_backend/
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 128172
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 /tmp/nrp-services.sock fd 3
Python version: 2.7.12 (default, Nov 12 2018, 14:36:49) [GCC 5.4.0 20160609]
Set PythonHome to /home/oskar/.opt/platform_venv
Python main interpreter initialized at 0x1b9b7f0
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/oskar/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 82, in
from hbp_nrp_backend.rest_server.__SimulationResources import SimulationResources
File “./hbp_nrp_backend/rest_server/__SimulationResources.py”, line 34, in
from hbp_nrp_backend.rest_server.__SimulationControl import _get_simulation_or_abort
File “./hbp_nrp_backend/rest_server/__SimulationControl.py”, line 44, in
from gazebo_msgs.srv import SetVisualProperties, SetLightProperties, GetLightProperties
ImportError: cannot import name SetVisualProperties
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: 8582, cores: 8)
[4] 8594
[rospack] Error: package ‘rosbridge_server’ not found
oskar@oskar-MS-7850:~$
nrp_backend_proxy@2.1.3 start /home/oskar/Documents/NRP/nrpBackendProxy
NODE_ENV=production node_modules/ts-node/dist/bin.js app.ts
2019-03-27 18:20:56 GMT+0100 Error: watch /home/oskar/Documents/NRP/nrpBackendProxy/config.json ENOSPC
at FSWatcher.start (fs.js:1382:19)
at Object.fs.watch (fs.js:1408:11)
at Object.watch (/home/oskar/Documents/NRP/nrpBackendProxy/utils/configurationManager.ts:84:6)
at Object. (/home/oskar/Documents/NRP/nrpBackendProxy/app.ts:48:22)
at Module._compile (module.js:653:30)
at Module.m._compile (/home/oskar/Documents/NRP/nrpBackendProxy/node_modules/ts-node/src/index.ts:439:23)
at Module._extensions…js (module.js:664:10)
at Object.require.extensions.(anonymous function) [as .ts] (/home/oskar/Documents/NRP/nrpBackendProxy/node_modules/ts-node/src/index.ts:442:12)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Function.Module.runMain (module.js:694:10)
at Object. (/home/oskar/Documents/NRP/nrpBackendProxy/node_modules/ts-node/src/bin.ts:157:12)
at Module._compile (module.js:653:30)
at Object.Module._extensions…js (module.js:664:10)
at Module.load (module.js:566:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nrp_backend_proxy@2.1.3 start: NODE_ENV=production node_modules/ts-node/dist/bin.js app.ts
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nrp_backend_proxy@2.1.3 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/oskar/.npm/_logs/2019-03-27T17_20_56_400Z-debug.log
which is similar but now also tells me rosbridge cannot be found. Running rospack find rosbridge_server gives “[rospack] Error: package ‘rosbridge_server’ not found”.
Of course, this problem looks similar to the one here: [SOLVED] NRP from source installation. cle-start Problems
but the answers and solution there didn’t help me solve this.
Any ideas?
Cheers, and thanks in advance,
Oskar