Getting error in running owl code

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Getting error in running owl code

Gayathri
Traceback (most recent call last):
  File "Hello.py", line 2, in <module>
    from owlready2 import *
  File "/home/gayathri/microblog/flask-env/local/lib/python2.7/site-packages/owlready2/__init__.py", line 24, in <module>
    from owlready2.base            import *
  File "/home/gayathri/microblog/flask-env/local/lib/python2.7/site-packages/owlready2/base.py", line 20, in <module>
    import sys, os, types, tempfile, subprocess, weakref, re, urllib.request, warnings, itertools
ImportError: No module named request
 Please tell me what is the cause of the error
Reply | Threaded
Open this post in threaded view
|

Re: Getting error in running owl code

Jiba
Administrator
Hi,

Owlready2 requires Python version 3.6 or more, but you are using 2.7.

Jiba