#opencv

1 messages · Page 1 of 1 (latest)

orchid sand
#

I am trying to use opencv in a python project. And I have tried adding it to nixpkgs and aptpkgs like this:
[phases.setup]
nixPkgs = ["...", "opencv", "libGL"]
aptPkgs = ["...", "libgl1-mesa-dev", "python3-opencv"]

but nothing seems to work. I keep getting this when trying to deploy my build:

File "/nix/store/idahnf1p9ljp4j568idrwb5zbbcmdhm1-python3-3.8.14/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: libGL.so.1: cannot open shared object file: No such file or directory

flint grail
#

Try adding

nixLibs = ["libGL"]
#

And remove the APT packages.

orchid sand
#

Nah, didn't help, still same error

#

I should say I get the error durring deployment

#

it seems to build fine