oscarpilote / Ortho4XP

A scenery generator for the X-Plane flight simulator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TECH DEBT | swallowed exception "FileNotFoundError: [Errno 2] No such file or directory: 'nvcompress'"

anthraxn8b opened this issue · comments

commented

If nvcompress (and maybe also other files) cannot be found an error is logged to console but the process continues.

...
Step 3 : Building DSF/Imagery for tile +50+011 : 
--------

-> Initializing providers with potential data on this tile.
-> Opening download queue.
-> Opening convert queue and 4 conversion workers.
-> Computing the pool quadtree
     Number of buckets: 64
     Average depth: 3.0 , Average bucket size: 7739.578125
     Largest depth: 3
   Downloading missing orthophoto 88064_139712_GO218.jpg
   Converting orthophoto(s) to build texture 88064_139712_GO218.dds.
   Downloading missing orthophoto 88752_139072_GO218.jpg
Exception in thread Thread-7:
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/threading.py", line 980, in _bootstrap_inner
    self.run()
  File "/app/./src/O4_Parallel_Utils.py", line 18, in run
    self._success[0]= self._task(*args) and self._success[0] 
  File "/app/./src/O4_Imagery_Utils.py", line 1447, in convert_texture
    if not subprocess.call(conv_cmd,stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT):
  File "/usr/local/lib/python3.9/subprocess.py", line 349, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/local/lib/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/local/lib/python3.9/subprocess.py", line 1821, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'nvcompress'
   Converting orthophoto(s) to build texture 88752_139072_GO218.dds.
   Downloading missing orthophoto 88784_139072_GO218.jpg
...