utils:
func.py
help:
help.py
main.py
my_help = 'my_help imported'
import help.help as my_help
def my_func():
return my_help.my_help
import utils.func as func
print(func.my_func())
print(func.my_help.my_help)
my_help imported
my_help imported
Process finished with exit code 0
def create_user(id, tag):
uid = user.count_documents({})
x = { "uid": uid, "id": id, "tag": tag}
return user.insert_one(x)
result = create_user(id=my_id, tag=my_tag)
print(result)
module 'PyInstaller.compat' has no attribute 'is_py312'значит, что в модуле compat.py, к которому обращается скрипт упаковщика, нет этого атрибута.
I'm not sure how we would close the writer if you're just passing the socket.