opengeos / whitebox-python

WhiteboxTools Python Frontend

Home Page:https://pypi.org/project/whitebox/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error while call Runner()

houzw opened this issue · comments

commented
  • whitebox version: latest
  • Python version: 3.4
  • Operating System: windows 10

Description

D:\Python34\python3.exe F:/demospace/whitebox/run.py
Traceback (most recent call last):
File "F:/demospace/whitebox/run.py", line 7, in
whitebox.Runner()
File "D:\Python34\lib\site-packages\whitebox\wb_runner.py", line 1129, in Runner
wbr = WbRunner(tool_name)
File "D:\Python34\lib\site-packages\whitebox\wb_runner.py", line 729, in init
for filename in glob.iglob('**/*', recursive=True):
TypeError: iglob() got an unexpected keyword argument 'recursive'

What I Did

import whitebox
whitebox.Runner()

Thank you for reporting the issue! I have not tested the package in Python 3.4 before. It turns out the the recursive parameter for iglob() was added in Python 3.5. Check this link. I would suggest you use conda to install Python 3.5 or newer, which should not have this problem.

commented

yes, it works under python 3.5