ubuntu-12.04

www-data user unable to import installed python modules

前提是你 提交于 2021-02-08 10:51:28
问题 I am trying create a web-server which ultimately calls a python script ("MyScript.py") from PHP code with the following command echo exec("MyScript.py ....some arguments") MyScript.py actually contains a code which uses RDkit and other modules like numpy. When I run this MyScript.py from user (MKT)....it works like a charm. But the problem arises when it get executed from PHP script from server. The error message in /var/www/log/apache2/error.log is as follows: ImportError: No module named

www-data user unable to import installed python modules

≯℡__Kan透↙ 提交于 2021-02-08 10:50:02
问题 I am trying create a web-server which ultimately calls a python script ("MyScript.py") from PHP code with the following command echo exec("MyScript.py ....some arguments") MyScript.py actually contains a code which uses RDkit and other modules like numpy. When I run this MyScript.py from user (MKT)....it works like a charm. But the problem arises when it get executed from PHP script from server. The error message in /var/www/log/apache2/error.log is as follows: ImportError: No module named

www-data user unable to import installed python modules

喜你入骨 提交于 2021-02-08 10:49:40
问题 I am trying create a web-server which ultimately calls a python script ("MyScript.py") from PHP code with the following command echo exec("MyScript.py ....some arguments") MyScript.py actually contains a code which uses RDkit and other modules like numpy. When I run this MyScript.py from user (MKT)....it works like a charm. But the problem arises when it get executed from PHP script from server. The error message in /var/www/log/apache2/error.log is as follows: ImportError: No module named

Booting gem5 X86 Ubuntu Full System Simulation

ぃ、小莉子 提交于 2021-02-08 03:14:00
问题 I need to run a relatively newer version of x86 disk image on gem5. Starting from this guide I used Ubuntu 12.04 disk image with Kernel v3.2.1 as that combination was worked for someone else. After some point, simulator just hangs, please share any ideas about the reason and possible solutions. Thank you! You may find the output on the m5term/telnet below. After that, is the process to prepare the disk image and the kernel for reference. The last part of the terminal of gem5 (m5term/telnet):

Booting gem5 X86 Ubuntu Full System Simulation

天涯浪子 提交于 2021-02-08 03:07:09
问题 I need to run a relatively newer version of x86 disk image on gem5. Starting from this guide I used Ubuntu 12.04 disk image with Kernel v3.2.1 as that combination was worked for someone else. After some point, simulator just hangs, please share any ideas about the reason and possible solutions. Thank you! You may find the output on the m5term/telnet below. After that, is the process to prepare the disk image and the kernel for reference. The last part of the terminal of gem5 (m5term/telnet):

Apache error with environment variables (Ubuntu)

大憨熊 提交于 2021-01-27 07:20:32
问题 My OS is Ubuntu 12.04, I have installed separately Apache, Php and Mysql. I've never had a problem, but after an Ubuntu update I always get a "404 Not Found" error when I try to access a php file on my web server. When I write "apache2 -S" on my console I get this: [Sat Feb 22 16:15:16.983766 2014] [core:warn] [pid 4475] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined [Sat Feb 22 16:15:16.983871 2014] [core:warn] [pid 4475] AH00111: Config variable ${APACHE_PID_FILE} is not defined

sh: 0: getcwd() failed: No such file or directory on cited drive

馋奶兔 提交于 2020-11-30 02:12:25
问题 I am trying to compile ARM code in Ubuntu 12. Everything is working fine when I put the code in the local directory. But when I put the code in cited mount directory error shows up: making testXmlFiles sh: 0: getcwd() failed: No such file or directory ARM Compiling xxxxx.c sh: 0: getcwd() failed: No such file or directory Here is my setting in fstab //10.0.0.1/data /mnt/data cifs auto,noserverino,credentials=/root/.smbcredentials,file_mode=0777,dir_mode=0777,uid=user,gid=users,noperm 0 0 What

sh: 0: getcwd() failed: No such file or directory on cited drive

对着背影说爱祢 提交于 2020-11-30 02:12:07
问题 I am trying to compile ARM code in Ubuntu 12. Everything is working fine when I put the code in the local directory. But when I put the code in cited mount directory error shows up: making testXmlFiles sh: 0: getcwd() failed: No such file or directory ARM Compiling xxxxx.c sh: 0: getcwd() failed: No such file or directory Here is my setting in fstab //10.0.0.1/data /mnt/data cifs auto,noserverino,credentials=/root/.smbcredentials,file_mode=0777,dir_mode=0777,uid=user,gid=users,noperm 0 0 What

sh: 0: getcwd() failed: No such file or directory on cited drive

社会主义新天地 提交于 2020-11-30 02:12:05
问题 I am trying to compile ARM code in Ubuntu 12. Everything is working fine when I put the code in the local directory. But when I put the code in cited mount directory error shows up: making testXmlFiles sh: 0: getcwd() failed: No such file or directory ARM Compiling xxxxx.c sh: 0: getcwd() failed: No such file or directory Here is my setting in fstab //10.0.0.1/data /mnt/data cifs auto,noserverino,credentials=/root/.smbcredentials,file_mode=0777,dir_mode=0777,uid=user,gid=users,noperm 0 0 What