Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'str' object has no attribute 'iteritems' #15

Open
guidtz opened this issue Oct 23, 2013 · 0 comments
Open

AttributeError: 'str' object has no attribute 'iteritems' #15

guidtz opened this issue Oct 23, 2013 · 0 comments
Labels

Comments

@guidtz
Copy link

guidtz commented Oct 23, 2013

Hello,

I would try watcher in Debian Wheezy so when I launch ./watcher.py debug I have this error :
2013-10-23 15:44:29.731466
<open file '/root/.watcher/jobs.yml', mode 'r' at 0x1a598a0>
'str' object has no attribute 'iteritems'
Traceback (most recent call last):
File "./watcher.py", line 407, in
daemon.run()
File "./watcher.py", line 287, in run
for job in jobs.iteritems():
AttributeError: 'str' object has no attribute 'iteritems'

In /root/.watcher/jobs.yml I have :

; ----------------------
; General Settings
; ----------------------
[DEFAULT]

; where to store output
logfile=/var/log/watcher.log

; where to save the PID file
pidfile=/var/run/watcher.pid

; ----------------------
; Job Setups
; ----------------------

[job1]
watch=/home/ftp
events=create
recursive=true
command=/root/ajout_fichier.sh $filename

Thanks for your help
And in

@gregghz gregghz added the bug label Jun 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants