Trouble installing Owlready2

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

Trouble installing Owlready2

KeironO
Hey there,

I'm encountering an issue when attempting to install Owlready2:

```
Collecting Owlready2==0.26 (from -r requirements.txt (line 44))
  Downloading https://files.pythonhosted.org/packages/5b/c6/0e0fe4b9b1ef0e555d945baa41a440169ce0f54c4ee6ded203ab1b18aaba/Owlready2-0.26.tar.gz (20.9MB)
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-kmrwkf9p/Owlready2/setup.py", line 28, in <module>
        version = open(os.path.join(HERE, "__init__.py")).read().split('VERSION = "', 1)[1].split('"', 1)[0]
      File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
        return codecs.ascii_decode(input, self.errors)[0]
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 119: ordinal not in range(128)
   
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-kmrwkf9p/Owlready2/
```

Any help would be greatly appreciated.

BW,

Keiron
Reply | Threaded
Open this post in threaded view
|

Re: Trouble installing Owlready2

KeironO
I forgot to attach the output of locale, apologies:

LANG=en_GB.UTF-8
LANGUAGE=en_GB
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=en_GB.UTF-8
Reply | Threaded
Open this post in threaded view
|

Re: Trouble installing Owlready2

Jiba
Administrator
In reply to this post by KeironO
Hi,

Despite your locale are in UTF-8 / Unicode, it seems that Python tries to open __init__.py as an ascii file (but it has some accentuated characters).

Did you try to download the package and to install it manually ?

If the problem still occurs, you may open setup.py and replace:
        version = open(os.path.join(HERE, "__init__.py")).read().split('VERSION = "', 1)[1].split('"', 1)[0]

By:

        version = "0.26"

Jiba