Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

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

Open
duan78 opened this issue May 7, 2018 · 3 comments
Open

Comments

@duan78
Copy link

duan78 commented May 7, 2018

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,

@chenjr0719
Copy link
Owner

chenjr0719 commented May 13, 2018 via email

@chenjr0719
Copy link
Owner

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

@raadbintareaf
Copy link

my python is 3.6.2 and got the same error.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants