I did with DLL files, but still the error:
(myenv) [Korsany@s0]:<~/Bot/exe>$ wine64 mains.exe
002c:fixme:ntdll:get_firmware_info info_class SYSTEM_FIRMWARE_TABLE_INFORMATION
002c:fixme:ntdll:get_firmware_info info_class SYSTEM_FIRMWARE_TABLE_INFORMATION
0050:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0050:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
0050:err:systray:initialize_systray Could not create tray window
0024:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenAppContainerSid, ...) semi-stub
00fc:err:module:import_dll Library bcryptprimitives.dll (which is needed by L"C:\users\Korsany\Temp\_MEI322\pydantic_core\_pydantic_core.cp311-win_amd64.pyd") not found
Traceback (most recent call last):
File "main.py", line 2, in <module>
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "aiogram__init.py", line 6, in <module>
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "aiogram\methods__init.py", line 1, in <module>
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "aiogram\methods\add_sticker_to_set.py", line 5, in <module>
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "aiogram\types__init.py", line 3, in <module>
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "aiogram\types\animation.py", line 5, in <module>
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "aiogram\types\base.py", line 4, in <module>
File "pydantic__init.py", line 395, in getattr
File "importlib__init.py", line 126, in import_module
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "pydantic\main.py", line 12, in <module>
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "pydantic_core__init.py", line 6, in <module>
ImportError: DLL load failed while importing _pydantic_core: Module not found.
[248] Failed to execute script 'main' due to unhandled exception!
00fc:fixme:kernelbase:AppPolicyGetProcessTerminationMethod FFFFFFFFFFFFFFFA, 000000000020FD20
0024:fixme:kernelbase:AppPolicyGetProcessTerminationMethod FFFFFFFFFFFFFFFA, 000000000020FD20
(myenv) [Korsany@s0]:<~/Bot/exe>$ wine64 mains.exe
002c:fixme:ntdll:get_firmware_info info_class SYSTEM_FIRMWARE_TABLE_INFORMATION
002c:fixme:ntdll:get_firmware_info info_class SYSTEM_FIRMWARE_TABLE_INFORMATION
0050:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0050:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
0050:err:systray:initialize_systray Could not create tray window
0024:err:module:import_dll Library bcryptprimitives.dll (which is needed by L"Z:\home\Korsany\Bot\exe\_internal\pydantic_core\_pydantic_core.cp311-win_amd64.pyd") not found
Traceback (most recent call last):
File "main.py", line 2, in <module>
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "aiogram__init.py", line 6, in <module>
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "aiogram\methods__init.py", line 1, in <module>
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "aiogram\methods\add_sticker_to_set.py", line 5, in <module>
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "aiogram\types__init.py", line 3, in <module>
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "aiogram\types\animation.py", line 5, in <module>
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "aiogram\types\base.py", line 4, in <module>
File "pydantic__init.py", line 395, in getattr
File "importlib__init.py", line 126, in import_module
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "pydantic\main.py", line 12, in <module>
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "pydantic_core__init.py", line 6, in <module>
ImportError: DLL load failed while importing _pydantic_core: Module not found.
[32] Failed to execute script 'main' due to unhandled exception!
0024:fixme:kernelbase:AppPolicyGetProcessTerminationMethod FFFFFFFFFFFFFFFA, 000000000020FD20