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

Context resolves to string #22

Open
rizland opened this issue Jul 31, 2020 · 0 comments
Open

Context resolves to string #22

rizland opened this issue Jul 31, 2020 · 0 comments

Comments

@rizland
Copy link

rizland commented Jul 31, 2020

with glia.context(pkg="dbbs_mod_collection"):
    dbbs_cell = dbbs_models.BasketCell()

Yields:

Traceback (most recent call last):
  File "protocols/psth.py", line 13, in <module>
    dbbs_cell = dbbs_models.BasketCell()
  File "/home/martina/.pyenv/versions/3.7.6/lib/python3.7/site-packages/arborize/core.py", line 114, in __init__
    self._init_section(section)
  File "/home/martina/.pyenv/versions/3.7.6/lib/python3.7/site-packages/arborize/core.py", line 167, in _init_section
    self._init_section_label(section, label)
  File "/home/martina/.pyenv/versions/3.7.6/lib/python3.7/site-packages/arborize/core.py", line 186, in _init_section_label
    mod_name = g.resolve(mechanism)
  File "/home/martina/.pyenv/versions/3.7.6/lib/python3.7/site-packages/glia/__init__.py", line 40, in resolve
    return _manager.resolve(asset, pkg=pkg, variant=variant)
  File "/home/martina/.pyenv/versions/3.7.6/lib/python3.7/site-packages/glia/_glia.py", line 30, in wrapper
    return func(self, *args, **kwargs)
  File "/home/martina/.pyenv/versions/3.7.6/lib/python3.7/site-packages/glia/_glia.py", line 320, in resolve
    return self.resolver.resolve(*args, **kwargs)
  File "/home/martina/.pyenv/versions/3.7.6/lib/python3.7/site-packages/glia/resolution.py", line 71, in resolve
    return resolved.mod_name
AttributeError: 'str' object has no attribute 'mod_name'
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

1 participant