The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problems with ASK

Discussion in 'General Discussion' started by Website Rob, Jul 1, 2003.

  1. Website Rob

    Website Rob Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    1,506
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Alberta, Canada
    cPanel Access Level:
    Root Administrator
    Anyone using ASK? (that is a link BTW. Why can we not have links in a different colour???)

    I had noticed this is used by DarkOrb and figured I should be able to get it working. I seem to be running into a problem with the script itself. Although the correct changes have been made to get python scripts to run (I can run a 'Hello World' with no problems) I keep getting a script error:

    * ASK Setup started
    Traceback (innermost last):
    File "ask-2.4.1/asksetup.py", line 79, in ?
    if not os.getenv("HOME"):
    AttributeError: getenv

    I've tried adjusting the 'asksetup.py' script to:

    #!/usr/bin/python
    #!/usr/bin/python2.2
    #!/usr/bin/env python2.2 << this is the script default

    which still gives out the above error msg.

    Python 2.2 is installed and an eMail to the script Author (2 days ago) has not been replied to. Would like to get it working as the Individual's account I'm setting it up for is getting hammered with Spam (don't ask ;)) and I thought it would be worth it to test out the script. Might go Server-wide at a later date, but for now, would just like to get it operational for this Individual's account.

    Anyone able to help me get the script running for an individual account? Comments on personal use of this script is also appreciated. Always a good thing when adding more (effective) tools to our Spam arsenal. :D

    Some may not like the use or purpose of this particular script and that's OK, I'm not looking for that type of feedback.

    cPanel.net Support Ticket Number:
     
  2. fizz

    fizz Well-Known Member

    Joined:
    Jan 25, 2002
    Messages:
    202
    Likes Received:
    0
    Trophy Points:
    16
    your running python 1.5, upgrade to 2.3 and this will fix the problem, asd this was the initial problem i encountered as well.

    cPanel.net Support Ticket Number:
     
  3. Website Rob

    Website Rob Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    1,506
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Alberta, Canada
    cPanel Access Level:
    Root Administrator
    Appreciate the reply.

    In '/usr/lib' I have both; 1.5 & 2.2 -- it was my understanding that ASK v1.41 does work with python 2.2? Could it be a sym link that needs correcting.

    I don't doubt that 2.3 would work, just that, if I have 2.2 already installed and that (apparently) is not being used, how would installing 2.3 work any better?

    cPanel.net Support Ticket Number:
     
  4. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    Why not just point to the correct python binary in your pipe? i.e.
    Code:
    mail@domain.com: |/usr/local/bin/python2.x /home/whatever/ask.py .....
     
  5. fizz

    fizz Well-Known Member

    Joined:
    Jan 25, 2002
    Messages:
    202
    Likes Received:
    0
    Trophy Points:
    16
    or easier, correct it at the top of ask.py :)

    cPanel.net Support Ticket Number:
     
  6. Website Rob

    Website Rob Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    1,506
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Alberta, Canada
    cPanel Access Level:
    Root Administrator
  7. AlaskanWolf

    AlaskanWolf Well-Known Member

    Joined:
    Aug 11, 2001
    Messages:
    537
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Fremont CA
    ahh no, you just edit /usr/sbin/ask.(whatever) and modify the top line

    What i usually do on servers i install ask on is

    1. install ask from rpm
    2. install python2 from rpm
    3. modify the top to python2

    cPanel.net Support Ticket Number:
     
  8. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
    I was getting errors ( not the above tho ) after I had installed python2 via rpm. Any newer edge comes with an option i beleive to upgrade mailman, along with that comes python 2 ( which doesn't over write python 1.5 ). Perhaps you can give this a try?

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page