Comments (6)
I tried building again using catkin (instead of catkin_make) after installing catkin for melodic (sudo apt-get install ros-melodic-catkin). Given I am installing on Pi4 with Ubuntu Bionic, I made the following changes to the catkin config:
catkin config -DPYTHON_EXECUTABLE=/usr/bin/python3 -DPYTHON_INCLUDE_DIR=/usr/include/python3.6m -DPYTHON_LIBRARY=/usr/lib/aarch64-linux-gnu/libpython3.6m.so
I was able to build 18 out of 19 packages and then got the following error on running "catkin build". Please advice if you have any suggestions to fix this.
--- Error log:
Finished <<< multi_map_server [ 34.0 seconds ]
Errors << coral_usb:make /home/username/coral_ws/logs/coral_usb/build.make.001.log
ERROR: Command errored out with exit status 1:
command: /home/username/coral_ws/build/coral_usb/venv/bin/python /home/username/coral_ws/build/coral_usb/venv/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp5hicsu_8
cwd: /tmp/pip-install-uxl5irzi/numpy
Complete output (10 lines):
Traceback (most recent call last):
File "/home/username/coral_ws/build/coral_usb/venv/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 280, in <module>
main()
File "/home/username/coral_ws/build/coral_usb/venv/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/username/coral_ws/build/coral_usb/venv/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 108, in get_requires_for_build_wheel
backend = _build_backend()
File "/home/username/coral_ws/build/coral_usb/venv/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 99, in _build_backend
obj = getattr(obj, path_part)
AttributeError: module 'setuptools.build_meta' has no attribute '__legacy__'
----------------------------------------
ERROR: Command errored out with exit status 1: /home/username/coral_ws/build/coral_usb/venv/bin/python /home/username/coral_ws/build/coral_usb/venv/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp5hicsu_8 Check the logs for full command output.
Traceback (most recent call last):
File "/home/username/coral_ws/src/catkin_virtualenv/catkin_virtualenv/scripts/venv_install", line 45, in <module>
extra_pip_args=[arg for arg in extra_pip_args.split(" ") if arg != ""],
File "/home/username/coral_ws/src/catkin_virtualenv/catkin_virtualenv/src/catkin_virtualenv/venv.py", line 88, in install
run_command(command + ["-r", req], check=True)
File "<string>", line 44, in run_command
File "/usr/lib/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/home/username/coral_ws/build/coral_usb/venv/bin/python', '-m', 'pip', 'install', '-qq', '--retries', '10', '--timeout', '30', '-r', '/home/username/coral_ws/src/coral_usb_ros/requirements.txt']' returned non-zero exit status 1.
make[2]: *** [venv/bin/activate] Error 1
make[1]: *** [CMakeFiles/coral_usb_generate_virtualenv.dir/all] Error 2
make: *** [all] Error 2
cd /home/username/coral_ws/build/coral_usb; catkin build --get-env coral_usb | catkin env -si /usr/bin/make --jobserver-fds=6,7 -j; cd -
..................................................................................................................................................................................................
Failed << coral_usb:make [ Exited with code 2 ]
Failed <<< coral_usb [ 1 minute and 31.1 seconds ]
[build] Summary: 18 of 19 packages succeeded.
[build] Ignored: 2 packages were skipped or are blacklisted.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 2 minutes and 0.6 seconds total.
[build] Note: Workspace packages have changed, please re-source setup files to use them.
from coral_usb_ros.
When I run:
/usr/bin/python3 -c "import setuptools.build_meta; print(setuptools.build_meta.__file__); print(setuptools.build_meta.__legacy__)"
I get the following output so my setuptools are correct:
<setuptools.build_meta._BuildMetaLegacyBackend object at 0xffffa45e46a0>
from coral_usb_ros.
Sorry for replying you late.
I only checked with Ubuntu + AMD64 CPU.
I haven't try with ARM64 PU or Raspberry PI 4, so I have not encountered your error.
But there are several comments.
First, you should use catkin-tools
for building the workspace.
please try pip install catkin-tools -U
or something like that.
Next, clean up your workspace by removing all devel
, build
, logs
and .catkin_tools
dirs every time after your build.
Then, you should check your python3
version with python3 --version
.
from coral_usb_ros.
No problem! Thanks for taking a look. I was able to successfully build on Ubuntu + x86_64 as well but still getting error on Raspberry Pi 4. I used catkin in my latest build after installing catkin-tools. I am still getting an error (log below). I understand if the module is not supported on Raspberry Pi but wanted to check before trying other ways. Appreciate your help.
Python 3 version is 3.6.9 and changed catkin config per the first line below:
catkin config -DPYTHON_EXECUTABLE=/usr/bin/python3 -DPYTHON_INCLUDE_DIR=/usr/include/python3.6m -DPYTHON_LIBRARY=/usr/lib/aarch64-linux-gnu/libpython3.6m.so
Below is the tail of console with error:
``
Starting >>> jsk_tools
Starting >>> coral_usb
Finished <<< jsk_data [ 17.7 seconds ]
Finished <<< jsk_tools [ 19.2 seconds ]
Starting >>> multi_map_server
Finished <<< multi_map_server [ 28.7 seconds ]
__________________________________________________________________________________________________________________________________________________________________________________________
Errors << coral_usb:make /home/agentsingh/coral_ws/logs/coral_usb/build.make.000.log
ERROR: Command errored out with exit status 1:
command: /home/agentsingh/coral_ws/build/coral_usb/venv/bin/python /home/agentsingh/coral_ws/build/coral_usb/venv/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpyd6t8y97
cwd: /tmp/pip-install-3d2rn6s_/numpy
Complete output (10 lines):
Traceback (most recent call last):
File "/home/agentsingh/coral_ws/build/coral_usb/venv/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 280, in <module>
main()
File "/home/agentsingh/coral_ws/build/coral_usb/venv/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/agentsingh/coral_ws/build/coral_usb/venv/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 108, in get_requires_for_build_wheel
backend = _build_backend()
File "/home/agentsingh/coral_ws/build/coral_usb/venv/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 99, in _build_backend
obj = getattr(obj, path_part)
AttributeError: module 'setuptools.build_meta' has no attribute '__legacy__'
----------------------------------------
ERROR: Command errored out with exit status 1: /home/agentsingh/coral_ws/build/coral_usb/venv/bin/python /home/agentsingh/coral_ws/build/coral_usb/venv/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpyd6t8y97 Check the logs for full command output.
Traceback (most recent call last):
File "/home/agentsingh/coral_ws/src/catkin_virtualenv/catkin_virtualenv/scripts/venv_install", line 45, in <module>
extra_pip_args=[arg for arg in extra_pip_args.split(" ") if arg != ""],
File "/home/agentsingh/coral_ws/src/catkin_virtualenv/catkin_virtualenv/src/catkin_virtualenv/venv.py", line 88, in install
run_command(command + ["-r", req], check=True)
File "<string>", line 44, in run_command
File "/usr/lib/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/home/agentsingh/coral_ws/build/coral_usb/venv/bin/python', '-m', 'pip', 'install', '-qq', '--retries', '10', '--timeout', '30', '-r', '/home/agentsingh/coral_ws/src/coral_usb_ros/requirements.txt']' returned non-zero exit status 1.
make[2]: *** [venv/bin/activate] Error 1
make[2]: *** Deleting file 'venv/bin/activate'
make[1]: *** [CMakeFiles/coral_usb_generate_virtualenv.dir/all] Error 2
make: *** [all] Error 2
cd /home/agentsingh/coral_ws/build/coral_usb; catkin build --get-env coral_usb | catkin env -si /usr/bin/make --jobserver-fds=3,4 -j; cd -
..........................................................................................................................................................................................
Failed << coral_usb:make [ Exited with code 2 ]
Failed <<< coral_usb [ 2 minutes and 15.9 seconds ]
[build] Summary: 19 of 20 packages succeeded.
[build] Ignored: 2 packages were skipped or are blacklisted.
[build] Warnings: 2 packages succeeded with warnings.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 13 minutes and 42.9 seconds total.
[build] Note: Workspace packages have changed, please re-source setup files to use them.
Exception ignored in: <bound method BaseEventLoop.__del__ of <_UnixSelectorEventLoop running=False closed=True debug=False>>
Traceback (most recent call last):
File "/home/agentsingh/.local/lib/python3.6/site-packages/trollius/base_events.py", line 395, in __del__
File "/home/agentsingh/.local/lib/python3.6/site-packages/trollius/unix_events.py", line 65, in close
File "/home/agentsingh/.local/lib/python3.6/site-packages/trollius/unix_events.py", line 166, in remove_signal_handler
File "/usr/lib/python3.6/signal.py", line 47, in signal
TypeError: signal handler must be signal.SIG_IGN, signal.SIG_DFL, or a callable object
``
from coral_usb_ros.
@agentsingh
according to this issue pypa/setuptools#1694,
you are using pip3>=19.0.2
and setuptools<40.8.0
.
in this package, we use apt default pip and setuptools as python3-pip
and python3-setuptools
.
can you check the mismatch of these versions?
If there are mismatches, I recommend to use apt
one, but if you want to use latest one, you can upgrade setuptools
to latest, which may avoid the build error.
dpkg -l | grep python3-pip
pip3 -version
dpkg -l | grep python3-setuptools
pip3 freeze | grep setuptools
from coral_usb_ros.
if you still have the problem, please re-open this issue.
from coral_usb_ros.
Related Issues (20)
- tensorflow v2 model support HOT 6
- /edgetpu_object_detector/output/image is not published HOT 6
- Add some functions for own purposes HOT 5
- Run two models in one EdgeTPU USB HOT 2
- dynamic reconfigure in ROS noetic - missing import HOT 3
- catkin_make instead of catkin build failed HOT 10
- Project name in CMakeLists.txt is different from package name? HOT 3
- node publishes faster than receiving messages? HOT 4
- support pycoral
- dynamic_reconfigure goes wrong when edgetpu related nodes exist HOT 5
- support panorama images
- Support boundaries in panorama imags
- How to run demo HOT 26
- rosrun jsk_perception image_publisher.py does not work (?) HOT 1
- Tuple index out of range HOT 2
- noetic-jsk-perception failed HOT 9
- rviz support ? HOT 12
- RectArray output of panorama human pose estimator does not match PoseArray output
- catkin build hangs HOT 2
- ImportError: No module named '_edgetpu_cpp_wrapper' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coral_usb_ros.