Installed PyCharm. Installed all necessary packages for interpreter. I'm trying to run my code out of it. But I get the error OSError: dlopen(libmmal.so, 6): image not found

that's all that is imported

 from flask import Flask, session, url_for, escape, request, jsonify from simplepam import authenticate from flask import render_template, redirect import datetime import time import os from threading import Lock import picamera import ConfigParser 

Who faced?

    1 answer 1

    I understand is used on the Raspberry Pi along with the Raspian?

    This issue is related to the import picamera line.

    1. On rasp-linux libmmal.so library should be located in /opt/vc/lib . Check out (libraries can be taken from here ).

    2. Then take a look at the contents of /etc/ld.so.conf.d/00-vmcs.conf . There should be /opt/vc/lib . If not, do:

    3. ldconfig to re- ldconfig library paths.

    • used OS X with IDE PyCharm - Insider
    • @Insider Why is the picamera module from Raspberry Pi used on OS X? - approximatenumber
    • I wrote this IDE, I use it to debug the code - Insider
    • @Insider How exactly do you run your code remotely on the target system? If not, how do you imagine the use of the picamera module, which, firstly, is not in your OS, and, secondly, is designed for ARM architecture ? - approximatenumber
    • @Insider looked, but you asked somehow about "Python, Flask and PiCamera" . It does not work out the way you want - to debug ARM modules in x86 environments. You did not initially clarify the question, and I think it is incorrect. - approximatenumber