This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Why can't import Biopython module when I run my scripts located in /usr/lib/cgi-bin?

Hello,

I am user of ubuntu and I run many scripts written with python3 which was installed through anaconda. All modules that I need have been installed there previously i.e. biopython. However, I can't import biopython in one of my script when I try to run my script from /usr/lib/cgi-bin

from Bio import SeqIO #it doesn't work

You can see the ERROR in this page http://pegaso.microbiologia.ull.es/cgi-bin/hello.py which is my server.

I have tried the advices proposed on Why can't python find some modules when I'm running CGI scripts from the web? or https://www.raspberrypi.org/forums/viewtopic.php?t=50225

In the first case, sudo permissions to www-data create a warning of security because I am using the server from a public institution. The second case is for raspberrypi

Can someone help me with that problem?

biopython

0 answers

No answers yet.

Log in to answer this question.