codelucas / newspaper

newspaper3k is a news, full-text, and article metadata extraction in Python 3. Advanced docs:
https://goo.gl/VX41yK
MIT License
14.18k stars 2.12k forks source link

pyinstaller exe file error #892

Open saha65536 opened 3 years ago

saha65536 commented 3 years ago

use pyinstaller make a exe file. when it runs , get parse() exception Positioning issues on article.py
meta_lang = self.extractor.get_meta_lang(self.clean_doc) self.set_meta_language(meta_lang)

if run like python xx.py then it runs fine plz help.....

saha65536 commented 3 years ago

error message: C:\Users\xxx\AppData\Local\Temp_MEI17482\newspaper\resources/text Unexpected error: <class 'FileNotFoundError'> why the language file in this position

saha65536 commented 3 years ago

copy resources dir into workdir fixed!