You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I built the docker container and tried using it interactively but for the scripts odgi_to_rdf.py and sparql_odgi.py I get the following import error:
root@9580c13cbb68:/spodgi# odgi_to_rdf.py
Traceback (most recent call last):
File "/usr/bin/odgi_to_rdf.py", line 3, in <module>
import rdflib
File "/usr/local/lib/python3.7/dist-packages/rdflib-7.0.0-py3.7.egg/rdflib/__init__.py", line 47, in <module>
from importlib import metadata
ImportError: cannot import name 'metadata' from 'importlib' (/usr/lib/python3.7/importlib/__init__.py)
For the sparql_server.py script I got a different ImportError:
root@9580c13cbb68:/spodgi# ./sparql_server.py
Traceback (most recent call last):
File "./sparql_server.py", line 2, in <module>
from flask import Flask, request, jsonify, Response, g
File "/usr/local/lib/python3.7/dist-packages/flask-3.0.2-py3.7.egg/flask/__init__.py", line 5, in <module>
from . import json as json
File "/usr/local/lib/python3.7/dist-packages/flask-3.0.2-py3.7.egg/flask/json/__init__.py", line 6, in <module>
from ..globals import current_app
File "/usr/local/lib/python3.7/dist-packages/flask-3.0.2-py3.7.egg/flask/globals.py", line 6, in <module>
from werkzeug.local import LocalProxy
File "/usr/local/lib/python3.7/dist-packages/werkzeug-3.0.1-py3.7.egg/werkzeug/__init__.py", line 5, in <module>
from .serving import run_simple as run_simple
File "/usr/local/lib/python3.7/dist-packages/werkzeug-3.0.1-py3.7.egg/werkzeug/serving.py", line 76, in <module>
t.Union["ssl.SSLContext", t.Tuple[str, t.Optional[str]], t.Literal["adhoc"]]
AttributeError: module 'typing' has no attribute 'Literal'
Both of these issues seem to come from the fact that the docker container has Python 3.7 installed, but rdflib 7.0.0 and flask 3.0.2 require Python 3.8.
The text was updated successfully, but these errors were encountered:
I built the docker container and tried using it interactively but for the scripts
odgi_to_rdf.py
andsparql_odgi.py
I get the following import error:For the
sparql_server.py
script I got a different ImportError:Both of these issues seem to come from the fact that the docker container has Python 3.7 installed, but rdflib 7.0.0 and flask 3.0.2 require Python 3.8.
The text was updated successfully, but these errors were encountered: