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

Logging from nb2workflow #120

Open
burnout87 opened this issue Nov 3, 2023 · 2 comments
Open

Logging from nb2workflow #120

burnout87 opened this issue Nov 3, 2023 · 2 comments
Assignees

Comments

@burnout87
Copy link
Contributor

Nb2workflow is installed within a renku session when any of the two plugins are installed.

While using them within a session, and in particular, running any renku command, I noticed the following in the log:

image

It looks like it has to do with:

  • some missing dependencies (I tried to install owlready2, after having initially seen that dependency missing, but it didnt help much, I have a different error now)
  • sentry, which I don't really need within the context of the two renku plugins, within a renku session, would it be possible to "deactivate" it?
@volodymyrss
Copy link
Member

  • different error is the one you show? since it's clearly installed
  • we can keep sentry, it's meant to be used like that as well, at this time we are not concerned with event flooding so I just pushed a nb2workflow version which includes the DSN.

Could you check what does it run with each git command? Is it hooks? So it imports nb2workflow or also calls something?

@burnout87
Copy link
Contributor Author

burnout87 commented Nov 13, 2023

  • different error is the one you show? since it's clearly installed

perhaps it's a versioning issue since both are installed

Could you check what does it run with each git command? Is it hooks? So it imports nb2workflow or also calls something?

it imports renku-aqs-annotation, which triggers the adding of some items to gitignore

while importing renku-aqs-annotation, imports of nb2workflow.ontology happens, and the warnings are from:

try:
import odakb.sparql
except Exception as e:
logger.warning("unable to import odakb.sparql (%s) but proceeding anyway", e)

and

try:
import owlready2
xsd = owlready2.get_ontology("https://www.w3.org/2001/XMLSchema#").load()
kees = owlready2.get_ontology("http://linkeddata.center/kees/v1#").load()
G = rdflib.Graph()
open("function.xml", "w").write(G.load(io.StringIO(requests.get("https://raw.githubusercontent.com/FnOio/fnoio.github.io/master/ontology/0.4.1/function.ttl").text), format="turtle").serialize(format="xml"))
fno = owlready2.get_ontology("function.xml").load()
# fno.base_iri="https://w3id.org/function/ontology#"
odaworkflow = owlready2.get_ontology("http://odahub.io/ontology/workflow#")
except Exception as e:
logger.warning('unable to import owlready2: %s', e)
owlready2=None

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