TypeError: walk() got an unexpected keyword argument 'followlinks'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zeya |
Fix Committed
|
High
|
Unassigned |
Bug Description
Latest (from git) Zeya requires python2.6, crashes with 2.5.
greg@rose:
Using 'dir' backend.
Scanning for music in '/home/
Traceback (most recent call last):
File "./zeya.py", line 398, in <module>
backend = get_backend(
File "./zeya.py", line 314, in get_backend
return DirectoryBacken
File "/home/
self.setup_db()
File "/home/
self.
File "/home/
for path, dirs, files in os.walk(
TypeError: walk() got an unexpected keyword argument 'followlinks'
When I delete the "followlinks=True" argument from line 172 it runs fine.
Maybe to keep Zeya compatible with older pythons there could be a test of which version of python is being used, and call os.walk accordingly?
Changed in zeya: | |
status: | New → Confirmed |
status: | Confirmed → In Progress |
importance: | Undecided → High |
Changed in zeya: | |
status: | In Progress → Fix Committed |
This is a simple fix to test what version of python is being used and call os.walk() accordingly. It works for me, but others testing it would be greatly appreciated.