I have my mongodb data on mongo.db.net and it works fine when I run the program from pycharm IDE.
client = MongoClient("mongodb+srv://Mongo-User:firstname.lastname@example.org/mydatabase?retryWrites=true&w=majority")
When I create the executable with pyinstaller, mongo tables do not load and the following error appears when I build with --debug: "Attribute Error: ‘NonType’ object has no attribute ‘Write’ \n "
I tried creating executable through cx_Freeze as well. I have the same problem. The error I get is as follows "AttributeError: ‘GenericRdata’ object has no attribute 'target.
Appreciate if anyone could help