I've tried to run tutorial example of kuka robot from website https://drake.guzhaoyuan.com/ but it failed while reading .obj files.
command: ./bazel-bin/manipulation/util/geometry_inspector ./manipulation/models/iiwa_description/sdf/iiwa14_no_collision.sdf
error: ERROR: In /vtk/IO/Import/vtkOBJImporter.cxx, line 495 vtkOBJPolyDataProcessor (0x5620bd39e440): Error reading 'v' at line 3
Things I've tried so far:
Open .obj files with Mashlab and save with character "v" (3 floats / 6 floats)
Open .obj files with Mashlab and save with character "vn" (3 floats)
Software:
Ubuntu 18.04.4 LTS
VTK version 7.1.1
The "VTK version 7.1.1" is a red flag for me. Drake explicitly uses version 8.2. So, the error may simply come down to the fact that you're connecting to an archaic vtk.
Try:
strace -o trace_output.txt python ./bazel-bin/manipulation/util/geometry_inspector ./manipulation/models/iiwa_description/sdf/iiwa14_no_collision.sdf
And then search te file trace_output.txt for libvtkIOGeometry. My results include:
stat("/home/seancurtis/code/drake/bazel-bin/manipulation/util/geometry_inspector.runfiles/drake/bindings/pydrake/../../_solib_k8/_U#vtk_S_S_CvtkIOGeometry___Ulib/haswell", 0x7ffd1a5cb790) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/seancurtis/code/drake/bazel-bin/manipulation/util/geometry_inspector.runfiles/drake/bindings/pydrake/../../_solib_k8/_U#vtk_S_S_CvtkIOGeometry___Ulib/x86_64/libvtkIOGeometry-8.2.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/seancurtis/code/drake/bazel-bin/manipulation/util/geometry_inspector.runfiles/drake/bindings/pydrake/../../_solib_k8/_U#vtk_S_S_CvtkIOGeometry___Ulib/x86_64", 0x7ffd1a5cb790) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/seancurtis/code/drake/bazel-bin/manipulation/util/geometry_inspector.runfiles/drake/bindings/pydrake/../../_solib_k8/_U#vtk_S_S_CvtkIOGeometry___Ulib/libvtkIOGeometry-8.2.so.1", O_RDONLY|O_CLOEXEC) = 3
I've only included two lines: THere are multiple instances that finish with = -1 ENOENT (No such file or directory) and one that ends in = 3. In all cases, the library its looking for is: libvtkIOGeometry-8.2.so.1.
What does your show? I suspect the wrong one. If it does, we'll have to drag one of the build experts in to figure out why you're getting the wrong vtk. But we can prime that with the answers to the following question:
How do you have drake on your machine? Install? Build from source?
Related
I've installed Python 3.8 on Win 10 machine. Path to Python is C:\Users\userid\AppData\Local\Programs\Python\Python38\
Path environment variable values are: C:\Users\userid\AppData\Local\Programs\Python\Python38\Scripts\;C:\Users\userid\AppData\Local\Programs\Python\Python38\python.exe
In order to test python, I created a simple script called "script.py" in directory C:\python_scripts.
Then I tried to run "script.py" from the directory where it is located, but got error:
C:\python_scripts> python script.py
C:\Users\userid\AppData\Local\Programs\Python\Python38\python.exe: can't open file 'script.py': [Errno 2] No such file or directory
What might be the cause of getting this error? i tried to run the script with both cmd and powershell, with the usual user rights and with elevated admin rights, still getting Errno 2.
No other versions of Python have been previously installed on this machine (which is a corporate one, if that might be significant)
Thank you
Thank you #OferSadan for your suggestion to use dir command, it helped me to solve the problem. The "script.py" had an additional .txt extension added to it for some reason, but the Windows explorer only showed .py extension by default. Now I deleted the trailing .txt suffix and the script runs
I'd like to open a python file (main.py) in my Ubuntu terminal for windows 10, how would I go about doing that? I've tried simply opening terminal and entering "python main.py" or "python3 main.py" but I get errno2 (no such file or directory).
I've tried changing the directory to C: to access the file, and I've tried doing python (filepath) of the file.
python3: can't open file 'main.py': [Errno 2] No such file or directory
I expected for main.py to be open and ran in Ubuntu terminal
It sounds like main.py isn't in the same directory you're currently in.
You may want to familiarize yourself with Bash, the shell which Ubuntu (and most Linux distributions) uses by default, and what you're likely using in your terminal.
To see the directory you're currently in, use pwd:
cball#cball:~$ pwd
/home/cball
To see what is in your current directory, use ls:
cball#cball:~$ ls
Desktop
Documents
Downloads
...
You can move into another directory cd directoryName:
cball#cball:~$ cd Desktop/
cball#cball:~/Desktop$ ls
cats.jpg
Here is a fairly gentle intro to linux: https://www.digitalocean.com/community/tutorials/an-introduction-to-linux-basics
Once you know where your Python file is, you can run python /path/to/main.py or simply python main.py if you are already in that directory (or if main.py is in your path variable).
Good luck learning bash, linux, and python! :) Please let me know if you have any questions.
I'm trying to get apache and mod_wsgi to work on an amazon ec2 instance, using a miniconda3 virtual environment and I am unable to get the WSGIDaemonProcess to correctly load the python venv modules (getting the 'encodings' module not found errors). I have run mod_wsgi-express module-config to get the proper path settings.
The relevant lines from my http.conf:
LoadModule wsgi_module "/home/ec2-user/miniconda3/envs/ebenv/lib/python3.6/site-packages/mod_wsgi/server/mod_wsgi-py36.cpython-36m-x86_64-linux-gnu.so"
WSGIPythonHome "/home/ec2-user/miniconda3/envs/ebenv"
WSGIDaemonProcess django python-home=/home/ec2-user/miniconda3/envs/ebenv python-path=/home/ec2-user/enerbits
WSGIProcessGroup django
WSGIScriptAlias / /home/ec2-user/repo/website/wsgi.py
When I perform a sudo strace httpd -X I can see that it is trying to load files from a /lib64 dir that doesn't exist in the venv. Here is the output:
stat("/home/ec2-user/miniconda3/envs/ebenv/lib64/python3.6", 0x7ffe873e1860) = -1 ENOENT (No such file or directory)
stat("/home/ec2-user/miniconda3/envs/ebenv/lib64", 0x7ffe873e1860) = -1 ENOENT (No such file or directory)
stat("/home/ec2-user/miniconda3/envs/ebenv", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
stat("/home/ec2-user/miniconda3/envs/ebenv/lib64/python3.6", 0x7ffe873e0ec0) = -1 ENOENT (No such file or directory)
stat("/home/ec2-user/miniconda3/envs/ebenv/lib64/python3.6/lib-dynload", 0x7ffe873e1860) = -1 ENOENT (No such file or directory)
stat("/home/ec2-user/miniconda3/envs/ebenv/lib64/python3.6", 0x7ffe873e1860) = -1 ENOENT (No such file or directory)
stat("/home/ec2-user/miniconda3/envs/ebenv/lib64", 0x7ffe873e1860) = -1 ENOENT (No such file or directory)
stat("/home/ec2-user/miniconda3/envs/ebenv", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
stat("/home/ec2-user/miniconda3/envs/ebenv/lib64/python3.6/lib-dynload", 0x7ffe873e0ec0) = -1 ENOENT (No such file or directory)
I have tried reinstalling miniconda, mod_wsgi (both using pip and building from source) to no avail. I've searched around and found a few posts that detailed a solution to point the python-path to the site-packages dir or even moving libs into a different dir which seem like a dodgy option. The miniconda3 install is 64-bit.
To note, previously I had been using virtualenv to make a python env and it was working fine (I suppose because the /lib64 dir is used) but I need to use conda for a pytorch installation. Any help is greatly appreciated. I am not particularly well versed in sysadmin stuff of this type so I am somewhat muddling my way through it all.
I have a code which compiles. When I run the executable file in terminal the following error appears:
terminate called after throwing an instance of 'chrono::ChException'
what(): Cannot open stream
Aborted (core dumped)
I then run:
strace -e trace=open ./myexe
And I see that the program fails at:
open("../data/../data/_template_POV.pov", O_RDONLY) = -1 ENOENT (No such file or directory)
I have a file called "_template_POV.pov" but I don't know where to paste the file since do not know what "../data/../data/" means.
Can anyone help me?
Regards,
Anders
open("../data/../data/_template_POV.pov", O_RDONLY)
means that you should have your file in a directory ../data/ with a relative path of your executable. Could you check this ?
I'm completely new to xmonad but I'd like to start using it to boost my productivity.
This is the guide I've been using (I'm using Apple OS X Snow Leopard)
http://xmonad.org/tour.html#start
So far I've managed to install Haskell-Platform, Cabal, dMenu, and xmonad (using cabal install).
When I attempt to run xmonad from the terminal I run into this error:
SDGL0990Z464C:~ cflynn$ echo $PATH
/Users/cflynn/.cabal/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin
SDGL0990Z464C:~ cflynn$ xmonad
/Users/cflynn/.xmonad/xmonad-i386-darwin: executeFile: does not exist (No such file or directory)
X Error of failed request: BadAccess (attempt to access private resource denied)
Major opcode of failed request: 2 (X_ChangeWindowAttributes)
Serial number of failed request: 7
Current serial number in output stream: 8
Can anyone explain what this means? Thanks!
Does the file /Users/cflynn/.xmonad/xmonad-i386-darwin exist? It sounds like it does not. You will need to compile your xmonad config and put the resulting executable at that location.
Skip to the bottom of this page - http://www.haskell.org/haskellwiki/Xmonad/Using_xmonad_on_Apple_OSX
Add the contents to .xinitrc rather than starting it at the terminal.
http://www.google.com/search?q=X11+macintosh - you need X11 to be installed and running, in order to use a windowmanager that relies on it .) -> is that the case, or am I mistaken for the problems cause?