No module named cryptography
Verfasst: Samstag 30. Juli 2022, 08:18
Hallo Freunde
Ich hab auf einem RPI ein Python Programm laufen das einen Smartmeter ausliest.
wenn Ich das Programm als user root mit python3 SM1.py starte funktioniert alles wunderbar
wenn Ich das Programm als user pi mit python3 SM1.py starte kommt folgende Fehlermeldung No module named 'cryptography'
wenn Ich das Program als root über eine Bash Datei starte kommt folgende Fehlermeldung No module named 'cryptography'
Was kann da sein bzw. wie kann Ich das Problem lösen?
LG Peter
Ich hab auf einem RPI ein Python Programm laufen das einen Smartmeter ausliest.
wenn Ich das Programm als user root mit python3 SM1.py starte funktioniert alles wunderbar
wenn Ich das Programm als user pi mit python3 SM1.py starte kommt folgende Fehlermeldung No module named 'cryptography'
wenn Ich das Program als root über eine Bash Datei starte kommt folgende Fehlermeldung No module named 'cryptography'
Was kann da sein bzw. wie kann Ich das Problem lösen?
Code: Alles auswählen
import serial
import time
from cryptography.hazmat.primitives.ciphers.aead import AESGCM
from binascii import unhexlify
import sys
import string
import paho.mqtt.client as mqtt
from gurux_dlms.GXDLMSTranslator import GXDLMSTranslator
from bs4 import BeautifulSoup