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: 'NoneType' object is not subscriptable #29

Open
kboit opened this issue Jun 8, 2022 · 1 comment
Open

TypeError: 'NoneType' object is not subscriptable #29

kboit opened this issue Jun 8, 2022 · 1 comment

Comments

@kboit
Copy link

kboit commented Jun 8, 2022

I'm using python version 3.9.12 on a MacBook Pro via terminal, but I run into the same issue when I run this on Windows 10 command prompt. I'm trying to use the test images provided in pe2loaddata/tests/data/images folder, but it prints the following: TypeError: 'NoneType' object is not subscriptable. Any help would be appreciated, I'm very new to Python!

mtegtmey@wm06b-74e pe2loaddata % pe2loaddata --index-directory /Users/mtegtmey/Downloads/pe2loaddata/tests/data/images config.yml output.csv              

Traceback (most recent call last):
  File "/Users/mtegtmey/opt/miniconda3/bin/pe2loaddata", line 33, in <module>
    sys.exit(load_entry_point('pe2loaddata', 'console_scripts', 'pe2loaddata')())
  File "/Users/mtegtmey/opt/miniconda3/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/Users/mtegtmey/opt/miniconda3/lib/python3.9/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/Users/mtegtmey/opt/miniconda3/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/mtegtmey/opt/miniconda3/lib/python3.9/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/Users/mtegtmey/Downloads/pe2loaddata/src/pe2loaddata/__main__.py", line 246, in main
    headless(
  File "/Users/mtegtmey/Downloads/pe2loaddata/src/pe2loaddata/__main__.py", line 62, in headless
    channels, metadata = transformer.load_config(configuration)
  File "/Users/mtegtmey/Downloads/pe2loaddata/src/pe2loaddata/transformer.py", line 88, in load_config
    channels = config['channels']
TypeError: 'NoneType' object is not `subscriptable

@bethac07
Copy link
Contributor

bethac07 commented Jun 9, 2022

Hi,

Are you using the config at the top level of the repository or the one from the tests folder? The images in the test folder need to be used alongside the config in the test folder.

Can you also confirm how you installed - via pip from pypi, cloned and pip installed, etc? Thanks!

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

2 participants