I get this error for command "dukaan.exe init"
IlyaGrebnov opened this issue · 2 comments
- Install Python 2.7
- Install setuptools
- install pip
- install dukaan
- run "dukaan.exe init"
- Get this error.
Any help? I am using Python first time.
D:\Development\Tools\Python\Scripts>dukaan.exe init
Traceback (most recent call last):
File "D:\Development\Tools\Python\Scripts\dukaan-script.py", line 8, in
load_entry_point('dukaan==0.1.2', 'console_scripts', 'dukaan')()
File "D:\Development\Tools\Python\lib\site-packages\dukaan\dukaan.py", line 19, in main
read_config()
File "D:\Development\Tools\Python\lib\site-packages\dukaan\dukaan.py", line 50, in read_config
d = json.loads(contents)
File "D:\Development\Tools\Python\lib\json__init__.py", line 326, in loads
return _default_decoder.decode(s)
File "D:\Development\Tools\Python\lib\json\decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
TypeError: expected string or buffer
I found bug in your code. You attempt to read file "config.ini" witch may not exists. I modify your code to workaround this.
Ilya, thanks for reporting this bug. I fixed the issue, it was happening if the config file didn't exist.