Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems about Dataset making #3

Open
Qudagang opened this issue Mar 11, 2019 · 1 comment
Open

Problems about Dataset making #3

Qudagang opened this issue Mar 11, 2019 · 1 comment

Comments

@Qudagang
Copy link

when I write like you shown in the "How to run the code", like below:
"
import glob
import os
import subprocess
import sys

voxsize = 32
paths = glob.glob("C:/Users/20185290/Desktop/New folder (4)/*.stl")
print ("number of data:", len(paths))

with open(os.devnull, 'w') as devnull:
for i, path in enumerate(paths):
cmd = "binvox -d {0} -cb -e {1}".format(voxsize, path)
ret = subprocess.check_call(cmd.split(' '), stdout=devnull, stderr=devnull)
if ret != 0:
print ("error", i, path)
else:
print (i, path)
"
It do not work, The system shows:

File "C:\Users\20185290\AppData\Local\Continuum\anaconda3\envs\tensorflow\lib\subprocess.py", line 957, in _execute_child
startupinfo)

FileNotFoundError: [WinError 2] The system cannot find the file specified

May I know what happen to the system?

@CRISZJ
Copy link

CRISZJ commented Dec 26, 2019

when I write like you shown in the "How to run the code", like below:
"
import glob
import os
import subprocess
import sys

voxsize = 32
paths = glob.glob("C:/Users/20185290/Desktop/New folder (4)/*.stl")
print ("number of data:", len(paths))

with open(os.devnull, 'w') as devnull:
for i, path in enumerate(paths):
cmd = "binvox -d {0} -cb -e {1}".format(voxsize, path)
ret = subprocess.check_call(cmd.split(' '), stdout=devnull, stderr=devnull)
if ret != 0:
print ("error", i, path)
else:
print (i, path)
"
It do not work, The system shows:

File "C:\Users\20185290\AppData\Local\Continuum\anaconda3\envs\tensorflow\lib\subprocess.py", line 957, in _execute_child
startupinfo)

FileNotFoundError: [WinError 2] The system cannot find the file specified

May I know what happen to the system?

maybe you should use *,binvox file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants