Error while creating status
- Dominant language
- Python
- Stars
- 3.9k
- Forks
- 180
- PR merge metrics
- No merged PRs in 30d
Description
```Deleting initial labels: 100%|###########################################################| 7/7 [00:07<00:00, 1.06s/it]
Creating status labels: 100%|############################################################| 3/3 [00:03<00:00, 1.03s/it]
Creating system labels: 100%|############################################################| 4/4 [00:04<00:00, 1.02s/it]
Adding template files: 50%|##############################5 | 2/4 [00:03<00:03, 1.88s/it]
Traceback (most recent call last):
File "C:\Users\tdmfa\AppData\Local\Programs\Python\Python35\Scripts\statuspage-script.py", line 9, in
load_entry_point('statuspage==0.8.1', 'console_scripts', 'statuspage')()
File "c:\users\tdmfa\appdata\local\programs\python\python35\lib\site-packages\click\core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "c:\users\tdmfa\appdata\local\programs\python\python35\lib\site-packages\click\core.py", line 697, in main
rv = self.invoke(ctx)
File "c:\users\tdmfa\appdata\local\programs\python\python35\lib\site-packages\click\core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\tdmfa\appdata\local\programs\python\python35\lib\site-packages\click\core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\tdmfa\appdata\local\programs\python\python35\lib\site-packages\click\core.py", line 535, in invoke
return callback(*args, **kwargs)
File "c:\users\tdmfa\appdata\local\programs\python\python35\lib\site-packages\statuspage\statuspage.py", line 65, in create
run_create(name=name, token=token, systems=systems, org=org, private=private)
File "c:\users\tdmfa\appdata\local\programs\python\python35\lib\site-packages\statuspage\statuspage.py", line 276, in run_create
content=f.read(),
File "c:\users\tdmfa\appdata\local\programs\python\python35\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 56487: character maps to
C:\Users\tdmfa>```
Contributor guide
No contributing guide indexed for this repository
Research direction
Inspect statuspage/statuspage.py at run_create, especially the template-file read shown in the traceback. Reproduce the create command on Windows with Python 3.5 and determine why decoding fails; done means template files are added successfully without the UnicodeDecodeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100