Facebook-Page-Crawler icon indicating copy to clipboard operation
Facebook-Page-Crawler copied to clipboard

AttributeError: 'datetime.datetime' object has no attribute 'timestamp'

Open duan78 opened this issue 6 years ago • 3 comments

Hi,

I can't run the script, it prompt me this error : 2018-05-07 05:37:17 - (FacebookPageCrawler)[INFO] - Initialize crawler Traceback (most recent call last): File "/usr/local/bin/facebook_page_crawler", line 11, in load_entry_point('facebook-page-crawler', 'console_scripts', 'facebook_page_crawler')() File "/root/Facebook-Page-Crawler/facebook_page_crawler/main.py", line 26, in main crawler.setConfig(**vars(args)) File "/root/Facebook-Page-Crawler/facebook_page_crawler/facebook_page_crawler.py", line 52, in setConfig '%Y-%m-%d %H:%M:%S' AttributeError: 'datetime.datetime' object has no attribute 'timestamp'

Regards,

duan78 avatar May 07 '18 09:05 duan78

Hi,

Can you tell me which version of Python you run this program?

duan78 [email protected] 於 2018年5月7日 週一 下午5:37寫道:

Hi,

I can't run the script, it prompt me this error : 2018-05-07 05:37:17 - (FacebookPageCrawler)[INFO] - Initialize crawler Traceback (most recent call last): File "/usr/local/bin/facebook_page_crawler", line 11, in load_entry_point('facebook-page-crawler', 'console_scripts', 'facebook_page_crawler')() File "/root/Facebook-Page-Crawler/facebook_page_crawler/main.py", line 26, in main crawler.setConfig(**vars(args)) File "/root/Facebook-Page-Crawler/facebook_page_crawler/facebook_page_crawler.py", line 52, in setConfig '%Y-%m-%d %H:%M:%S' AttributeError: 'datetime.datetime' object has no attribute 'timestamp'

Regards,

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/chenjr0719/Facebook-Page-Crawler/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/AM_R5BSjPC2XDUoELuoaLFooqRUTyvYkks5twBXogaJpZM4T0r6q .

chenjr0719 avatar May 13 '18 06:05 chenjr0719

Found something may help https://stackoverflow.com/a/8778548 datetime.datetime.timestamp() only work when Python >= 3.3 Consider using a newer version of Python, please

chenjr0719 avatar May 13 '18 06:05 chenjr0719

my python is 3.6.2 and got the same error.

raadbintareaf avatar Aug 06 '18 11:08 raadbintareaf