[Tutor] Virtual environment can't find uno

Jim jf_byrnes at comcast.net
Thu Jun 14 13:57:55 EDT 2018


On 06/14/2018 10:51 AM, Mats Wichmann wrote:
> On 06/13/2018 06:55 PM, Jim wrote:
>> Running Linux Mint 18.
>>
>> I have python 3.6 running in a virtual environment.
>>
>> I want to use a package called oosheet to work with libreoffice calc.
>> When I try to import it I get the following error:
>>
>>>>> import oosheet
>> Traceback (most recent call last):
>>    File "<stdin>", line 1, in <module>
>>    File
>> "/home/jfb/EVs/env36/lib/python3.6/site-packages/oosheet/__init__.py",
>> line 38, in <module>
>>      import uno, re, zipfile, types, inspect, tempfile, shutil, subprocess
>> ModuleNotFoundError: No module named 'uno'
>>
>> If I do the same thing in the system installed python3 it imports and
>> runs with no errors.
>>
>> python3-uno was installed using apt-get.
>>
>> How do I get python 3.6 in the virtual environment to find uno?
> 
> You should be able to pip install uno in the virtualenv, which might be
> best.  After all, once you're using a virtualenv, you've already started
> down the road of picking depends from upstream, so why not :)
> 
> 

Is it available for a pip install? I looked on pypi and didn't see it.

It may be incompatible with 3.6. I was looking at the dependencies with 
synaptic and found. Depends Python3(>= 3.5~), Depends Python3(<= 3.6).

Anyway I had forgotten I have a virtual environment with 3.5 in it, so I 
tried that and it works.

Thanks,  Jim





More information about the Tutor mailing list