Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #222062 > unrolled thread

Another virtualenv question

Started byRainer Dorsch <ml@bokomoko.de>
First post2020-04-28 23:50 +0200
Last post2020-04-28 23:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.debian.user


Contents

  Another virtualenv question Rainer Dorsch <ml@bokomoko.de> - 2020-04-28 23:50 +0200

#222062 — Another virtualenv question

FromRainer Dorsch <ml@bokomoko.de>
Date2020-04-28 23:50 +0200
SubjectAnother virtualenv question
Message-ID<A0Gh3-62-1@gated-at.bofh.it>
Hello,

I have another basic virtualenv question:

I install covidify in a virtualenv and if finds the dependency

Requirement already satisfied: docopt in /usr/lib/python3/dist-packages (from 
covidify) (0.6.2)

installed on the system. But later, when I run the python script, it is not 
found:

Traceback (most recent call last):
  File "/home/rd/.local/lib/python3.7/site-packages/covidify/data_prep.py", 
line 17, in <module>
    import docopt
ImportError: No module named docopt

Here is the full log, of what I did:

rd@h370:~/virtualenv$ virtualenv --system-site-packages covidify
Running virtualenv with interpreter /usr/bin/python2
New python executable in /home/rd/virtualenv/covidify/bin/python2
Also creating executable in /home/rd/virtualenv/covidify/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
rd@h370:~/virtualenv$ source covidify/bin/activate
(covidify) rd@h370:~/virtualenv$ pip3 install covidify
Requirement already satisfied: covidify in /home/rd/.local/lib/python3.7/site-
packages (1.2.0)
Requirement already satisfied: click in /usr/lib/python3/dist-packages (from 
covidify) (7.0)
Requirement already satisfied: xlsxwriter in /usr/lib/python3/dist-packages 
(from covidify) (1.1.2)
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (from 
covidify) (1.16.2)
Requirement already satisfied: GitPython in /usr/lib/python3/dist-packages 
(from covidify) (2.1.11)
Requirement already satisfied: pillow in /usr/lib/python3/dist-packages (from 
covidify) (5.4.1)
Requirement already satisfied: pyarrow in /home/rd/.local/lib/python3.7/site-
packages (from covidify) (0.17.0)
Requirement already satisfied: pandas in /usr/lib/python3/dist-packages (from 
covidify) (0.23.3+dfsg)
Requirement already satisfied: matplotlib in /usr/lib/python3/dist-packages 
(from covidify) (3.0.2)
Requirement already satisfied: docopt in /usr/lib/python3/dist-packages (from 
covidify) (0.6.2)
Requirement already satisfied: tqdm in /usr/lib/python3/dist-packages (from 
covidify) (4.28.1)
(covidify) rd@h370:~/virtualenv$ export PATH=/home/rd/.local/bin:$PATH
(covidify) rd@h370:~/virtualenv$ covidify run --output=~/tmp.nobackup/covidify 
--country=Germany 
     MESSAGE:  No source given, defaulting to John Hopkin CSSE github repo 
     MESSAGE:  No top countries given, defaulting to top 10 
###
### Job arguments:
###
... ENV: /home/rd/.local/lib/python3.7/site-packages/covidify
... OUTPUT FOLDER: /home/rd/tmp.nobackup/covidify
... DATA SOURCE: JHU
... COUNTRIES: Germany
... TOP INFECTED COUNTRIES: 10
... FORECAST PERIOD: 10
###
### Data Extraction
###
Traceback (most recent call last):
  File "/home/rd/.local/lib/python3.7/site-packages/covidify/data_prep.py", 
line 17, in <module>
    import docopt
ImportError: No module named docopt
(covidify) rd@h370:~/virtualenv$

Any feedback is welcome.

Many thanks
Rainer

-- 
Rainer Dorsch
http://bokomoko.de/

[toc] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web