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

Error with archive #35

Closed
nsheff opened this issue Jul 30, 2019 · 1 comment
Closed

Error with archive #35

nsheff opened this issue Jul 30, 2019 · 1 comment

Comments

@nsheff
Copy link
Contributor

nsheff commented Jul 30, 2019

Separate from #32; if I give the config then I get this error:

refgenieserver -c $REFGENIE archive
email-validator not installed, email fields will be treated as str.
To install, run: pip install email-validator
Traceback (most recent call last):
  File "/home/nsheff/miniconda3/lib/python3.7/site-packages/attmap/pathex_attmap.py", line 31, in __getattr__
    v = super(PathExAttMap, self).__getattribute__(item)
AttributeError: 'YacAttMap' object has no attribute 'set_default'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nsheff/miniconda3/lib/python3.7/site-packages/attmap/ordattmap.py", line 45, in __getitem__
    return super(OrdAttMap, self).__getitem__(item)
KeyError: 'set_default'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nsheff/miniconda3/lib/python3.7/site-packages/attmap/pathex_attmap.py", line 34, in __getattr__
    return self.__getitem__(item, expand)
  File "/home/nsheff/miniconda3/lib/python3.7/site-packages/attmap/pathex_attmap.py", line 51, in __getitem__
    v = super(PathExAttMap, self).__getitem__(item)
  File "/home/nsheff/miniconda3/lib/python3.7/site-packages/attmap/ordattmap.py", line 47, in __getitem__
    return AttMap.__getitem__(self, item)
  File "/home/nsheff/miniconda3/lib/python3.7/site-packages/attmap/attmap.py", line 32, in __getitem__
    return self.__dict__[item]
KeyError: 'set_default'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nsheff/.local/bin/refgenieserver", line 10, in <module>
    sys.exit(main())
  File "/home/nsheff/.local/lib/python3.7/site-packages/refgenieserver/main.py", line 124, in main
    archive(rgc, args)
  File "/home/nsheff/.local/lib/python3.7/site-packages/refgenieserver/server_builder.py", line 52, in archive
    asset_desc = rgc[CFG_GENOMES_KEY][genome][CFG_ASSETS_KEY][asset_name].set_default(CFG_ASSET_DESC_KEY, "NA")
  File "/home/nsheff/miniconda3/lib/python3.7/site-packages/attmap/pathex_attmap.py", line 38, in __getattr__
    raise AttributeError(item)
AttributeError: set_default
@stolarczyk
Copy link
Contributor

stolarczyk commented Jul 30, 2019

set_default is a typo (should be setdefault) which was fixed on dev some time ago

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