Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: argument of type 'NoneType' is not iterable #551

Open
christophemenager opened this issue May 1, 2021 · 2 comments
Open

TypeError: argument of type 'NoneType' is not iterable #551

christophemenager opened this issue May 1, 2021 · 2 comments

Comments

@christophemenager
Copy link

christophemenager commented May 1, 2021

Hi there !

I am trying to run the command (I have no env file but env variables are set as global viariables in my terminal)

docker run -it -e "CONFIG=$(cat algolia.config.json | jq -r tostring)" algolia/docsearch-scraper

My error :

Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/root/src/index.py", line 119, in <module>
    run_config(environ['CONFIG'])
  File "/root/src/index.py", line 33, in run_config
    config = ConfigLoader(config)
  File "/root/src/config/config_loader.py", line 84, in __init__
    self._parse()
  File "/root/src/config/config_loader.py", line 120, in _parse
    self.selectors = SelectorsParser().parse(self.selectors)
  File "/root/src/config/selectors_parser.py", line 64, in parse
    if 'lvl0' in config_selectors:
TypeError: argument of type 'NoneType' is not iterable

On my mac OS 11.3 :
image

Do you have any idea where it my come from ? Thanks a lot ! :)

@zenkiet
Copy link

zenkiet commented Oct 9, 2021

me too

@jer-k
Copy link

jer-k commented Mar 13, 2022

@christophemenager @Zenfection1412 It happens when you don't have selectors defined in your config file. I just ran into the same thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants