question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Model Downloader fails on Windows 10 and Python 3.9

See original GitHub issue

I tried to run depthai_demo.py on Windows 10 and Python 3.9.

This is the error I’ve got

$ C:\\Users\\VanDa\\AppData\\Local\\Programs\\Python\\Python39\\python.exe depthai_demo.py
No calibration file. Using Calibration Defaults.
Using depthai module from:  C:\Users\VanDa\AppData\Local\Programs\Python\Python39\lib\site-packages\depthai.cp39-win_amd64.pyd
Depthai version installed:  0.3.0.0+dev
Depthai version required:   0.3.0.0
Depthai development version found, skipping check.
Compiling model for 14 shaves, 14 cmx_slices and 1 NN_engines
model_compilation_target: cloud
Traceback (most recent call last):
  File "C:\Users\VanDa\dev\depthai\depthai_demo.py", line 370, in <module>
    dai.startLoop()
  File "C:\Users\VanDa\dev\depthai\depthai_demo.py", line 45, in startLoop
    configMan = DepthConfigManager(args)
  File "C:\Users\VanDa\dev\depthai\depthai_helpers\config_manager.py", line 26, in __init__
    self.generateJsonConfig()
  File "C:\Users\VanDa\dev\depthai\depthai_helpers\config_manager.py", line 192, in generateJsonConfig
    blobMan = BlobManager(self.args, self.calc_dist_to_bb, shave_nr, cmx_slices, NCE_nr)
  File "C:\Users\VanDa\dev\depthai\depthai_helpers\config_manager.py", line 377, in __init__
    self.blob_file = self.compileBlob(self.args['cnn_model'], self.args['model_compilation_target'])
  File "C:\Users\VanDa\dev\depthai\depthai_helpers\config_manager.py", line 431, in compileBlob
    ret = download_and_compile_NN_model(nn_model, model_zoo_folder, shave_nr_opt, cmx_slices_opt, NCE_nr, outblob_file, model_compilation_target)
  File "C:\Users\VanDa\dev\depthai\model_compiler\model_compiler.py", line 133, in download_and_compile_NN_model
    download_location = download_model(model, model_zoo_folder)
  File "C:\Users\VanDa\dev\depthai\model_compiler\model_compiler.py", line 28, in download_model
    result = subprocess.run(downloader_cmd)
  File "C:\Users\VanDa\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 501, in run
    with Popen(*popenargs, **kwargs) as process:
  File "C:\Users\VanDa\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 947, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\VanDa\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1416, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] Nie mo▒na odnale▒▒ okre▒lonego pliku

Where Nie mo▒na odnale▒▒ okre▒lonego pliku means Cannot find a specified file

Tested on latest develop

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
szabi-luxoniscommented, Nov 2, 2020

I assume you didn’t merge the changes from #264 into your branch that you used for testing, and you already had the mobilenet-ssd downloaded.

0reactions
VanDavvcommented, Nov 2, 2020

That was the case, sorry @szabi-luxonis, works great

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue 43127: Unable to install Python 3.9.1 - Windows 10
I get the following error when I try to install Python 3.9.1 on windows 10 0x80070659 The installation is forbidden by system policy....
Read more >
Can't install new packages for Python (Python 3.9.0, Windows ...
But when I tried to install MatPlotLib using the command "pip install matplotlib", it shows an error message colored in red: C:\Users\majkl\ ...
Read more >
I can't install things from the Microsoft Store.
I'm trying to download Python 3.9 for a person project,and while it says I "own the app",all my attempts to install it have...
Read more >
How to install, download and build Python wheels - ActiveState
Use Python 3.9 by ActiveState and build your own runtime with the ... Pip will install the appropriate wheel for Windows, Linux or...
Read more >
How to Install Python on Windows in 5 Minutes - DataFlair
The Python setup may fail if you don't have Windows Service Pack 1 (SP1) installed on your computer. It is a requirement for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found