Skip to content

Commit 953e42f

Browse files
authored
Clarify potential issue with dynamic python library (#236)
* Clarify that about dynamic python library and that it cannot be found in all cases, and what to do in such situation. * Improved wording using GTP-3
1 parent a35d737 commit 953e42f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,13 @@ configuration as json. We parse the json and use the output to attempt to find
160160
the `libpython3.Xm.so` shared library so for example if we are loading python
161161
3.6 we look for `libpython3.6m.so` on Linux or `libpython3.6m.dylib` on the Mac.
162162

163+
If we are unable to find a dynamic library such as `libpythonx.y.so` or `libpythonx.z.dylib`,
164+
it may be because Python is statically linked and the library is not present at all.
165+
This is dependent on the operating system and installation, and it is not always possible to detect it.
166+
In this case, we will receive an error message saying "Failed to find a valid python library!".
167+
To fix this, you may need to install additional OS packages or manually set the precise library location during `py/initialize!`.
168+
169+
163170
This pathway has allowed us support Conda albeit with some work. For examples
164171
using Conda, check out the facial rec repository a)bove or look into how we
165172
[build](scripts/build-conda-docker)

0 commit comments

Comments
 (0)