Comments (17)
Yes, can you add comments / suggestions for your issues to the installation doc?
from dex-net.
There is a probably some discrepancy between the Python and ipython installation. This seems to be relevant.
Can you paste the output of:
which python
which ipython
from dex-net.
@jeffmahler Thanks for your answer. I will have a look at your link, however, the output of these commands return:
/usr/bin/python
and
/usr/local/bin/ipython
Do they have to be located in the same path?
from dex-net.
I am module object has no attribute 'database_test' after installing Dex Net 2.0 , Please help.
from dex-net.
Please see above discussion. Can you paste the output of the following?:
python
|>>> import test.database_test
from dex-net.
@jeffmahler
I exceuted the code in dexnet directory .i.e home/robo/catkin_ws/src/dexnet python test/database_test.py and
i got an error as core dumped, i am installing it on CPU machine.
Is the installtion tested on CPU system.
/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py:1241: UserWarning: /home/robo/.cache/Python-Eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
warnings.warn(msg, UserWarning)
No handlers could be found for logger "dexnet.api"
test_illegal_create (main.Hdf5DatabaseTest) ... ok
test_new_database_and_graspable (main.Hdf5DatabaseTest) ... Loading Plugins:
Current Plugins Dir is: /usr/lib/meshlab/plugins
Error While parsing the XML filter plugin descriptors: We are trying to load a xml file that does not correspond to any dll or javascript code; please delete all the spurious xml files
Total 238 filtering actions
Total 12 io plugins
Opening a file with extention obj
Mesh /home/robo/kundan_ws/src/dex-net/data/test/models/bar_clamp.obj loaded has 1428 vn 476 fn
output mesh /home/robo/kundan_ws/src/dex-net/.dexnet/bar_clamp_proc.obj
Mesh /home/robo/kundan_ws/src/dex-net/data/test/models/bar_clamp.obj saved as /home/robo/kundan_ws/src/dex-net/.dexnet/bar_clamp_proc.obj (1428 vn 476 fn)
INFO:root:MeshlabServer Command: meshlabserver -i "data/test/models/bar_clamp.obj" -o ".dexnet/bar_clamp_proc.obj"
Reading data.
Warning: 9 lines were ignored since they did not contain faces or vertices.
Read in 1428 vertices and 476 faces.
Resolution: 0.000716689 with real dimension 0.064502
Center of grid 0 0 0
Bound box size: (-0.0358344 -0.0358344 -0.0358344) to (0.021729 0.02 0.032251) with dimensions 100 100 100.
Computing signed distance field.
Writing results to: .dexnet/bar_clamp_proc.sdf
Processing complete.
INFO:root:SDF Command: SDFGen ".dexnet/bar_clamp_proc.obj" 100 5
INFO:root:Returning datum bar_clamp
WARNING:root:No rendered images of type segmask for stable pose pose_0
WARNING:root:No rendered images of type depth for stable pose pose_0
WARNING:root:No rendered images of type scaled_depth for stable pose pose_0
ok
Ran 2 tests in 13.787s
OK
INFO:rospy.core:signal_shutdown [atexit]
Floating point exception (core dumped)
from dex-net.
Output of import test.database_test
Please look into the issue and suggest me the required changes to do.
import test.database_test
/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py:1241: UserWarning: /home/robo/.cache/Python-Eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
warnings.warn(msg, UserWarning)
No handlers could be found for logger "dexnet.api"
from dex-net.
@kundan09 I actually think your tests completed successfully! The error Floating point exception (core dumped)
seems to happen on some machines during script termination and is related to matplotlib. I was never able to figure that out, but if it only happens on termination then you're ok.
from dex-net.
@jeffmahler
Is the installtion tested on CPU system ?
from dex-net.
Hi @jeffmahler,
I am using Ubuntu 16.04 and I am facing a very similar issue. I followed all the steps listed here https://docs.google.com/document/d/1YImq1cBTy9E1n1On6-00gueDT4hfmYJK4uOcxZIzPoY/edit to install dex-net. So far everything works fine. Unfortunately when I am running sudo python setup.py test
I have the following log
running test
running egg_info
writing requirements to src/dex_net.egg-info/requires.txt
writing src/dex_net.egg-info/PKG-INFO
writing top-level names to src/dex_net.egg-info/top_level.txt
writing dependency_links to src/dex_net.egg-info/dependency_links.txt
reading manifest file 'src/dex_net.egg-info/SOURCES.txt'
writing manifest file 'src/dex_net.egg-info/SOURCES.txt'
running build_ext
Traceback (most recent call last):
File "setup.py", line 42, in
test_suite='test'
File "/usr/local/lib/python2.7/dist-packages/setuptools/init.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/test.py", line 228, in run
self.run_tests()
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/test.py", line 250, in run_tests
exit=False,
File "/usr/lib/python2.7/unittest/main.py", line 94, in init
self.parseArgs(argv)
File "/usr/lib/python2.7/unittest/main.py", line 149, in parseArgs
self.createTests()
File "/usr/lib/python2.7/unittest/main.py", line 158, in createTests
self.module)
File "/usr/lib/python2.7/unittest/loader.py", line 130, in loadTestsFromNames
suites = [self.loadTestsFromName(name, module) for name in names]
File "/usr/lib/python2.7/unittest/loader.py", line 103, in loadTestsFromName
return self.loadTestsFromModule(obj)
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/test.py", line 54, in loadTestsFromModule
tests.append(self.loadTestsFromName(submodule))
File "/usr/lib/python2.7/unittest/loader.py", line 100, in loadTestsFromName
parent, obj = obj, getattr(obj, part)
AttributeError: 'module' object has no attribute 'database_test'
Reading all the issues carefully, in dex-net folder I run python and then
>> import test.database_test
and here is the output
WARNING:root:Unable to import pylibfreenect2. Python-only Kinect driver may not work properly.
WARNING:root:Unable to import openni2 driver. Python-only Primesense driver may not work properly
WARNING:root:Unable to import pyrealsense2.
WARNING:trimesh:No FCL -- collision checking will not work
root WARNING Failed to import gqcnn! Grasp2D functions will not be available.
root WARNING Failed to import mayavi
root WARNING Failed to import pyhull
root WARNING Failed to import mayavi
root WARNING Failed to import mayavi
root WARNING Failed to import mayavi
root WARNING Failed to import mayavi
root WARNING Failed to import mayavi
dexnet.api WARNING Failed to import DexNetVisualizer3D, visualization methods will be unavailableexit()
rospy.core INFO signal_shutdown [atexit]
Floating point exception (core dumped)
I have spent the last days trying to install dex-net on different machines and always the same issue. Any clues?
Thanks
from dex-net.
You are missing a dependency required to run the tests. Did you install the dependencies using sudo
? That may be causing issues. I highly recommend using a virtualenv and installing all dependencies locally
from dex-net.
Thank you for your quick reply.
Yes I used sudo
as specified in the aforementioned document. Let me try going through all the process without using it and come back to you
from dex-net.
@jeffmahler
So I ran all the same steps except for installing 3rd party dependencies (I had to add --user to the pip instruction in the bash file). Here is the output of python setup.py test
running test
running egg_info
writing requirements to src/dex_net.egg-info/requires.txt
writing src/dex_net.egg-info/PKG-INFO
writing top-level names to src/dex_net.egg-info/top_level.txt
writing dependency_links to src/dex_net.egg-info/dependency_links.txt
reading manifest file 'src/dex_net.egg-info/SOURCES.txt'
writing manifest file 'src/dex_net.egg-info/SOURCES.txt'
running build_ext
WARNING:root:Unable to import CNN modules! Likely due to missing tensorflow.
WARNING:root:TensorFlow can be installed following the instructions in https://www.tensorflow.org/get_started/os_setup
WARNING:root:Unable to import pylibfreenect2. Python-only Kinect driver may not work properly.
WARNING:root:Unable to import openni2 driver. Python-only Primesense driver may not work properly
WARNING:root:Unable to import pyrealsense2.
WARNING:trimesh:No FCL -- collision checking will not work
WARNING:root:Failed to import gqcnn! Grasp2D functions will not be available.
WARNING:root:Failed to import mayavi
WARNING:root:Failed to import mayavi
WARNING:root:Failed to import mayavi
WARNING:root:Failed to import mayavi
WARNING:root:Failed to import mayavi
WARNING:root:Failed to import mayavi
WARNING:dexnet.api:Failed to import DexNetVisualizer3D, visualization methods will be unavailable
test_illegal_create (test.database_test.Hdf5DatabaseTest) ... ok
test_new_database_and_graspable (test.database_test.Hdf5DatabaseTest) ... Input mesh /home/user/projects/shadow_robot/base/src/dex-net/data/test/models/bar_clamp.obj
output mesh /home/user/projects/shadow_robot/base/src/dex-net/.dexnet/bar_clamp_proc.obj
Loading Plugins:
Current Plugins Dir is: /usr/lib/meshlab/plugins
Error in XMLFile: filter_measure.xml - line: -1, column: -1 -
Error in XMLFile: filter_mutualinfo.xml - line: -1, column: -1 -
Total 227 filtering actions
Total 13 io plugins
Opening a file with extention obj
Mesh bar_clamp.obj loaded has 1428 vn 476 fn
No Script to apply.
Mesh /home/user/projects/shadow_robot/base/src/dex-net/data/test/models/bar_clamp.obj saved as /home/user/projects/shadow_robot/base/src/dex-net/.dexnet/bar_clamp_proc.obj (1428 vn 476 fn)
Reading data.
Warning: 9 lines were ignored since they did not contain faces or vertices.
Read in 1428 vertices and 476 faces.
Resolution: 0.000716689 with real dimension 0.064502
Center of grid 0 0 0
Bound box size: (-0.0358344 -0.0358344 -0.0358344) to (0.021729 0.02 0.032251) with dimensions 100 100 100.
Computing signed distance field.
Writing results to: .dexnet/bar_clamp_proc.sdf
Processing complete.
WARNING:root:No rendered images of type segmask for stable pose pose_0
WARNING:root:No rendered images of type depth for stable pose pose_0
WARNING:root:No rendered images of type scaled_depth for stable pose pose_0
ok
test_antipodal_grasp_sampler (test.grasping_test.GraspTest) ... ok
test_contacts (test.grasping_test.GraspTest) ... ok
test_find_contacts (test.grasping_test.GraspTest) ... ok
test_force_closure (test.grasping_test.GraspTest) ... ok
test_grasp_quality_functions (test.grasping_test.GraspTest) ... ok
test_init_grasp (test.grasping_test.GraspTest) ... ok
test_init_graspable (test.grasping_test.GraspTest) ... ok
test_init_gripper (test.grasping_test.GraspTest) ... ok
test_min_norm_vector_in_facet (test.grasping_test.GraspTest) ... ok
test_wrench_in_positive_span (test.grasping_test.GraspTest) ... ok
test_gaussian_uniform_alloc (test.learning_test.LearningTest) ... ok
test_thompson_sampling (test.learning_test.LearningTest) ... ok
test_uniform_alloc (test.learning_test.LearningTest) ... ok
Ran 15 tests in 83.398s
OK
Floating point exception (core dumped)
It seems like a lot of tests are OK but it still have this warnings about mayavi, dexnet.api, trimesh and so on (same as before). The weird thing this time is that it doesn't recognize tensorflow but I guess this is another story. Should I worry about those warnings or should I consider the test successful?
Thank you
from dex-net.
It looks like the tests passed! You may have problems with visualization due to the failed mayavi import. I would try to re-install it. It's possible that this is related to your computer hardware.
from dex-net.
Through a pip install or the build?
from dex-net.
It is supposed to be installed through pip. I believe that you are probably encountering errors in that process. Unfortunately I can't support mayavi install issues though.
from dex-net.
Thank you very much for your help! Yes I did using pip and still the same issue but it can be from mayavi (though import mayavi works fine). Can I suggest to maybe modify the linked document with installation instructions so that people don't face the same issue?
from dex-net.
Related Issues (20)
- Display object failed: HOT 2
- Failed to render the depth map of the mesh model!
- Exact setup for installation HOT 6
- Dex-Net on Ubuntu 20.04 + Noetic test fails HOT 15
- sklearn
- Unable to import meshrender shared library! HOT 1
- Conflicts in getting collision detection implemented (Openrave Installation problem) HOT 1
- Suction grasp database generation from DexNet 3.0 HOT 6
- Ideal environment for dex-net
- CMake Issue HOT 2
- ImportError: cannot import name 'Visualizer' from 'gqcnn' HOT 1
- cannot import name 'CameraIntrinsics' from 'perception' HOT 1
- How is 6.7 million dataset generated from 1500 objects - the provided database generate around 1 million only HOT 1
- TypeError: sample_grasps() got an unexpected keyword argument 'stable_pose'
- How to generate Database data HOT 3
- ObjectRender Missing HOT 1
- Object Mesh Dataset v1.1 dataset is offline HOT 4
- mistake
- Implementation of the grasp matrix function
- Missing three modules, when trying to run setup.py test
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 dex-net.