|
Does anyone know how to get PyDev to recognize libraries that are just .so files? For example, it keeps telling me that cjson and resource are unresolved imports, even though these are present and in standard locations: /usr/lib/python2.7/dist-packages/cjson.x86_64-linux-gnu.so /usr/lib/python2.7/lib-dynload/resource.x86_64-linux-gnu.so It also flags as "undefined variable" any attempt to use these libraries, for example by calling cjson.decode. Both of these folders (/usr/lib/python2.7/dist-packages and /usr/lib/python2.7/lib-dynload) are listed in the system PYTHONPATH under Python Interpreters in the settings dialog. Googling this problem yields numerous examples where folders weren't in that list, but that doesn't appear to be my problem. I'm guessing it has more to do with that it's a .so file rather than .py, or that the filename is decorated with architecture details. Of course, my program has no difficulty with finding and using these libraries at runtime. I know that I can decorate the code with UnresolvedImport etc., but I'd rather figure out what's wrong and fix it.
|
# ¿ Feb 27, 2017 04:57 |
|
|
# ¿ May 14, 2024 15:22 |