Dec-19-2019, 11:14 AM
I have done a code with python 3.5.4 version and I try to change the script to execution file using pyinstaller 3.5 and after changing the code to exe. this message appears
Quote:pkg_resources.DistributionNotFound: The 'Adafruit_IO' distribution was not found and is required by the applicationI tried this piece of code in order to find Adafruit_IO in my script
def resource_path(relative_path): """ Get absolute path to resource, works for dev and for PyInstaller """ try: # PyInstaller creates a temp folder and stores path in _MEIPASS base_path = sys._MEIPASS except Exception: base_path = os.path.abspath(".") return os.path.join(base_path, relative_path)I point at the file location at site-packages still I get the same error any help would be appreciated