mpcabd / python-arabic-reshaper

Reconstruct Arabic sentences to be used in applications that don't support Arabic
MIT License
395 stars 81 forks source link

مشكلة مع pyinstaller #55

Closed asgore-undertale closed 3 years ago

asgore-undertale commented 3 years ago

السلام عليكم أخي واجهت مشكلة أثناء تحويل مشروعي لملف تنفيذي وبعد فترة علمت أن المشكلة من استيراد arabic-reshaper هل هناك ما علي فعله لأحل المشكلة؟

ahmed4end commented 3 years ago

اكتب الخطأ اللى بيظهرلك ! @asgore-undertale

asgore-undertale commented 3 years ago

هذا هو الخطأ، يظهر عند تشغيل الملف التنفيذي.

Traceback (most recent call last): File "Text Enteror 1.0v.py", line 9, in import arabic_reshaper File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "c:\users\023\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 493, in exec_module exec(bytecode, module.dict) File "arabic_reshaper__init.py", line 3, in File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "c:\users\023\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 493, in exec_module exec(bytecode, module.dict) File "arabic_reshaper\arabic_reshaper.py", line 242, in File "arabic_reshaper\arabic_reshaper.py", line 64, in init__ File "arabic_reshaper\reshaper_config.py", line 41, in auto_config Exception: Default configuration file C:\Users\023\AppData\Local\Temp_MEI64162\arabic_reshaper\default-config.ini not found, check the module installation. [6968] Failed to execute script Text Enteror 1.0v

ahmed4end commented 3 years ago

@asgore-undertale المشكلة بسيطة جداً بدك تروح لمكان تنصيب بايثون وتفتح ملف تنصيب المكتبة arabic_reshaper وتنسخ ملف default-config.ini وتروح تحطه فالبرنامج بتاعك اللى حولته ب pyiinstaller وتحطه هناك بداخل ملف باسم arabic_reshaper

asgore-undertale commented 3 years ago

شكرا جزيلا أخي لكني بالفعل برمجت كود خاص بي لأنني عجزت عن حلها.

mpcabd commented 3 years ago

This is fixed in release 2.1.3, please upgrade, test, and let me know if it's still broken.