ValueError: dictionary update sequence element #0 has length 1; 2 is required
p
pushvv
started a topic
almost 6 years ago
Hi. I am doing shub deploy and it throws me this:
shub deploy
Traceback (most recent call last):
File "c:\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Anaconda3\Scripts\shub.exe\__main__.py", line 9, in <module>
File "c:\anaconda3\lib\site-packages\click\core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "c:\anaconda3\lib\site-packages\click\core.py", line 697, in main
rv = self.invoke(ctx)
File "c:\anaconda3\lib\site-packages\click\core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\anaconda3\lib\site-packages\click\core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\anaconda3\lib\site-packages\click\core.py", line 535, in invoke
return callback(*args, **kwargs)
File "c:\anaconda3\lib\site-packages\shub\deploy.py", line 76, in cli
conf, image = load_shub_config(), None
File "c:\anaconda3\lib\site-packages\shub\config.py", line 479, in load_shub_config
conf.load_file(closest_sh_yml)
File "c:\anaconda3\lib\site-packages\shub\config.py", line 131, in load_file
self.load(f)
File "c:\anaconda3\lib\site-packages\shub\config.py", line 85, in load
option_conf.update(yaml_option_conf)
ValueError: dictionary update sequence element #0 has length 1; 2 is required
What is going on and how to fix it?
Best Answer
p
pushvv
said
almost 6 years ago
Apparently there was a hidden character in my yaml. I wrote the yml by hand and it started to work.
Could you please show the content of your yml file?
1 person likes this
f
fchambour
said
over 5 years ago
It seems I have the same problem. My file content:
project: 376294
stacks: scrapy:1.6-py3
1 person likes this
p
pushvv
said
almost 6 years ago
Answer
Apparently there was a hidden character in my yaml. I wrote the yml by hand and it started to work.
f
fchambour
said
over 5 years ago
This is the error log:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/bin/shub", line 10, in <module>
sys.exit(cli())
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/shub/deploy.py", line 76, in cli
conf, image = load_shub_config(), None
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/shub/config.py", line 481, in load_shub_config
conf.load_file(closest_sh_yml)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/shub/config.py", line 133, in load_file
self.load(f)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/shub/config.py", line 87, in load
option_conf.update(yaml_option_conf)
ValueError: dictionary update sequence element #0 has length 1; 2 is required
pushvv
Hi. I am doing shub deploy and it throws me this:
What is going on and how to fix it?
- Oldest First
- Popular
- Newest First
Sorted by Popularnestor
Could you please show the content of your yml file?
1 person likes this
fchambour
It seems I have the same problem. My file content:
project: 376294
stacks: scrapy:1.6-py3
1 person likes this
pushvv
fchambour
This is the error log:
-
Unable to select Scrapy project in GitHub
-
ScrapyCloud can't call spider?
-
Unhandled error in Deferred
-
Item API - Filtering
-
newbie to web scraping but need data from zillow
-
ValueError: Invalid control character
-
Cancelling account
-
Best Practices
-
Beautifulsoup with ScrapingHub
-
Delete a project in ScrapingHub
See all 460 topics