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

AttributeError: module 'fastobo.typedef' has no attribute 'IsClassLevel' when saving obo file #178

Closed
cmungall opened this issue Jun 23, 2022 · 1 comment · Fixed by INCATools/ontology-access-kit#188
Labels
bug Issues or pull requests that specify a bug. fixed Issues which bug was fixed in subsequent commits.

Comments

@cmungall
Copy link

See #175 for code that will reproduce

this ontology:

format-version: 1.4
ontology: test

[Typedef]
id: q
name: q
is_class_level: true

results in:

  File "/Users/cjm/Library/Caches/pypoetry/virtualenvs/oaklib-OeQZizwE-py3.9/lib/python3.9/site-packages/pronto/ontology.py", line 405, in dump
    cls(self).dump(file)  # type: ignore
  File "/Users/cjm/Library/Caches/pypoetry/virtualenvs/oaklib-OeQZizwE-py3.9/lib/python3.9/site-packages/pronto/serializers/obo.py", line 37, in dump
    frame = self._to_typedef_frame(Relationship(self.ont, data))
  File "/Users/cjm/Library/Caches/pypoetry/virtualenvs/oaklib-OeQZizwE-py3.9/lib/python3.9/site-packages/pronto/serializers/_fastobo.py", line 282, in _to_typedef_frame
    frame.append(fastobo.typedef.IsClassLevel(True))
AttributeError: module 'fastobo.typedef' has no attribute 'IsClassLevel'
@althonos
Copy link
Owner

Fixed in v2.4.7, thanks for the report!

@althonos althonos added bug Issues or pull requests that specify a bug. fixed Issues which bug was fixed in subsequent commits. labels Jun 28, 2022
cmungall added a commit to INCATools/ontology-access-kit that referenced this issue Jul 16, 2022
Using latest pronto which fixes althonos/pronto#178,
this allows more ontologies to be dumped as obo
cmungall added a commit to INCATools/ontology-access-kit that referenced this issue Jul 18, 2022
Using latest pronto which fixes althonos/pronto#178,
this allows more ontologies to be dumped as obo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues or pull requests that specify a bug. fixed Issues which bug was fixed in subsequent commits.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants