hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Python is installed, but not recognized by scripts?
Reply

Forum Jump

Python is installed, but not recognized by scripts?

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old
Aspiring Evangelist
 
Join Date: Jan 2007
Posts: 360

Python is installed, but not recognized by scripts?


Hello.

Python is installed, but not recognized by scripts?

I have python installed, but none of my scripts recognize it, and says that there is no python installed.

When I do "which python" command in ssh and it tells me that it is installed.

Also I had my server management company look at it, and they told me it is installed and cant do anything else, and dont know why the scripts are not picking it up.

My scripts were working fine with Plesk on old server, and this server I have plesk aswell, but my scripts are not picking up python......

Also, just for more information, LOADAVG is not picking up by scripts aswell as PYTHON. So there is definitely something wrong.

Any help please?

Thanks.



Sponsored Links
  #2  
Old
Web Hosting Master
 
Join Date: Apr 2009
Location: inside wht
Posts: 638
Hello,
So if "which python" is showing python in /usr/local/bin/python or /usr/bin/python , check these binaries are available there

# ls -al /usr/bin/python
# ls -al /usr/local/bin/python

If it is ok edit th first line of your python script as follows
#!/usr/bin/env python

Now try to execute it . If the above one not working replace the first line with the full path to python
#!/usr/local/bin/python

If you are using a self executable script make sure to chmod 755 .

__________________
Syslint Technologies - Webhosting Support and Outsourced Server Management Services
24x7 Server Management | Outsourced Support | Help Desk Support | Semi Dedicated Team
Web Development Inc - Web Design - Python Development - PHP Development - CMS integration
Call us : (+91) 471-320-77-99 , Contact Sales - sales@syslint.com


  #3  
Old
Aspiring Evangelist
 
Join Date: Jan 2007
Posts: 360
Its showing as the location as /usr/bin/python

But I have that path in my scripts and still it is saying "Path is not valid"

It is not only 1 script, but 2 of them have the same problems.

Sponsored Links
  #4  
Old
Web Hosting Master
 
Join Date: Apr 2009
Location: inside wht
Posts: 638
try this following ,

# /usr/bin/python scriptname.py ,

what result are you getting.

__________________
Syslint Technologies - Webhosting Support and Outsourced Server Management Services
24x7 Server Management | Outsourced Support | Help Desk Support | Semi Dedicated Team
Web Development Inc - Web Design - Python Development - PHP Development - CMS integration
Call us : (+91) 471-320-77-99 , Contact Sales - sales@syslint.com


  #5  
Old
Aspiring Evangelist
 
Join Date: Jan 2007
Posts: 360
Well its not just one .py file, its a script that uses python aswell as many other things in order to run.....

I just did that command, and it looks like the file runs....

Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check if python is installed on my reseller tihhc Hosting Security and Technology 9 10-11-2010 12:49 AM
Need Python and Script installed on my server PEAK-Bobby Employment / Job Offers 4 12-03-2009 03:13 AM
CGI scripts(Perl/Python) are not able to run on Plesk Windows Server 2003 freewebspace Hosting Security and Technology 9 06-24-2008 07:58 AM
Running python scripts okok Hosting Security and Technology 7 10-12-2004 01:47 PM
Anyone need any scripts installed? bwb Employment / Job Offers 2 10-18-2003 03:30 PM

Related posts from TheWhir.com
Title Type Date Posted
New Metadata Service Lets DigitalOcean Users Automate ‘Droplet’ Provisioning Web Hosting News 2014-10-15 16:48:51
Russian Search Engine Yandex Launches Cloud PaaS Tool Called Cocaine Web Hosting News 2013-10-17 16:05:05
WHMCS Releases Patch to Address Critical Security Issue Web Hosting News 2013-10-04 16:12:43
AWS and DevOps Skills in High Demand, says Dice Web Hosting News 2013-09-11 13:42:13
Softaculous Releases Auto Installer Version 4.1.7 Web Hosting News 2012-12-19 16:45:21


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?