[vip-help] Issue with running file on bluepill server
Han, Yue
han380 at purdue.edu
Mon Mar 25 13:54:07 EDT 2024
Hi Nandini,
Are you using the virtual environment? And are you sure you are in your virtual environment when running the code.
On the server, we recommend to use virtual environment to install your project related packages/libraries.
Virtual environment can be created via python vent module or conda, the information about condo can be found:
https://docs.anaconda.com/free/anaconda/install/linux/<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.anaconda.com%2Ffree%2Fanaconda%2Finstall%2Flinux%2F&data=05%7C02%7Cvip-help%40ecn.purdue.edu%7C3cbc99aa06fc4b0aaf7308dc4cf4916a%7C4130bd397c53419cb1e58758d6d63f21%7C0%7C0%7C638469860515634819%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=WPT3rzvjxFYxQ29YMgC%2FlJZLJ6WSxQ8Am8lcA%2BUd0i4%3D&reserved=0>
https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#activating-an-environment<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fconda.io%2Fprojects%2Fconda%2Fen%2Flatest%2Fuser-guide%2Ftasks%2Fmanage-environments.html%23activating-an-environment&data=05%7C02%7Cvip-help%40ecn.purdue.edu%7C3cbc99aa06fc4b0aaf7308dc4cf4916a%7C4130bd397c53419cb1e58758d6d63f21%7C0%7C0%7C638469860515634819%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=kTALS8ciwwc8ls1pTvg3ImMG6fY%2FSbqGqN%2B7PNRmZ84%3D&reserved=0>
May we know how to do install those libraries? Because without virtual environment, you cannot directly install them into the system.
Best,
*****
Yue Han
Ph.D. Candidate
Research Assistant
Video and Image Processing Laboratory (VIPER)
School of Electrical and Computer Engineering
Purdue University
465 Northwestern Avenue
West Lafayette, IN 47907-2035
U.S.A.
Telephone: +1 765 637 3729
email: han380 at purdue.edu
URL: https://lorenz.ecn.purdue.edu/~han380/
*****
On Mar 25, 2024, at 13:44, Nandini Mukul Pande <panden at purdue.edu> wrote:
Some people who received this message don't often get email from panden at purdue.edu<mailto:panden at purdue.edu>. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>
Hello,
We have uploaded some files to the bluepill server, and it's set so that when a picture is uploaded, the file should run (it will call the model I believe). Well, the picture is getting uploaded, but the file isn't running correctly. It is returning
Traceback (most recent call last): File "/data/panden/public_html/test.py", line 1, in import numpy as np ModuleNotFoundError: No module named 'numpy'
We have installed numpy and other libraries onto bluepill but still, the app shows this error. We know the test.py file is running because when we printed "Hello world" at the very beginning of the program, we would see hello world returned.
We have tried switching the first statement of test.py to
from matplotlib.image import imread
to see if it was just a problem with numpy but it seems there is issues with all the libraries we have used, even though we downloaded them onto bluepill.
We have verified that numpy was installed for the correct Python version we are using.
Our getImage.php file can be accessed here: https://bluepill.ecn.purdue.edu/~panden/getImage.php
Our test.py file can be accessed here:
https://bluepill.ecn.purdue.edu/~panden/<https://bluepill.ecn.purdue.edu/~panden/getImage.php>test.py
Please let me know if you need more information.
Thanks,
Nandini Pande
--
vip-help mailing list
vip-help at ecn.purdue.edu<mailto:vip-help at ecn.purdue.edu>
https://engineering.purdue.edu/ECN/mailman/listinfo/vip-help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </ECN/mailman/archives/vip-help/attachments/20240325/a02c6cba/attachment-0001.htm>
More information about the vip-help
mailing list