DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 26th August 2009
deadeyes deadeyes is offline
Port Guard
 
Join Date: Jun 2008
Posts: 19
Default apache with python

Hi all,

In the past I had the following running:
Apache, with mod_python and python.

On this apache there was a webapp running called torrentflux.

This uses some python scripts.
In the past this did work.

However, after I upgraded from 7.0 to 7.2 it failed running to fix some security issues.

The off the failing program is:
Quote:
[2009/08/26 - 17:18:40] executing command :
cd '/usr/local/torrentflux/user/'; HOME='/usr/local/torrentflux/'; export HOME; nohup /usr/local/bin/python -OO '/usr/local/www/data-dist/nonssl/torrentflux/bin/clients/tornado/tftornado.py' 'True' '147' 'user' '/usr/local/torrentflux/.transfers/atorrent.torrent' --responsefile '/usr/local/torrentflux/.transfers/atorrent.torrent' --display_interval 1 --max_download_rate '0' --max_upload_rate '10' --max_uploads '4' --minport '49160' --maxport '49300' --rerequest_interval '1800' --super_seeder '0' --max_connections '40' 1>> '/usr/local/torrentflux/.transfers/atorrent.torrent.log' 2>> '/usr/local/torrentflux/.transfers/atorrent.torrent.log' &
Traceback (most recent call last):
File "/usr/local/www/data-dist/nonssl/torrentflux/bin/clients/tornado/tftornado.py", line 25, in <module>
from BitTornado.download_bt1 import BT1Download, defaults, parse_params, get_usage, get_response
File "/usr/local/www/data-dist/torrentflux/bin/clients/tornado/BitTornado/download_bt1.py", line 8, in <module>
File "/usr/local/www/data-dist/torrentflux/bin/clients/tornado/BitTornado/BT1/Storage.py", line 4, in <module>
File "/usr/local/www/data-dist/torrentflux/bin/clients/tornado/BitTornado/piecebuffer.py", line 5, in <module>
File "/usr/local/lib/python2.5/threading.py", line 6, in <module>
import thread
ImportError: No module named thread
As you can see the thread module cannot be found.

I had some problems using the mod_python with apache(apache crashed while starting) and after compiling it without thread support did work again.

However, now this webapplication is failing.
Does anyone knows what I do wrong? Or why this python script doesn't run anymore but previously it did. (On a freebsd)

I didn't change anything on the settings of the webapp itself.

Maybe there is a special combination I should use to get this working.

Maybe I was using another version of apache... I am not sure.
I have read that thread support is not recommended, however, as it worked before, I never had any problems with it.
Reply With Quote
  #2   (View Single Post)  
Old 27th August 2009
deadeyes deadeyes is offline
Port Guard
 
Join Date: Jun 2008
Posts: 19
Default

I recompiled python again with thread support and without restarting apache20 and all went well. BUt when I restarted apache20 I had the segmentation fault again.
So I think this is probably an issue with version combinations.
I didn't try anymore and instead compiled apache22 and changed the config appropriately.

Now it is running again.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
devel/kdebindings4-python-pykde4 Mantazz FreeBSD Ports and Packages 1 9th September 2009 06:54 PM
wip/kdebindings4-python errors Cloud NetBSD Package System (pkgsrc) 7 17th January 2009 06:52 PM
py-yaml - Python 2.5 and 2.6 iGloo FreeBSD Ports and Packages 0 20th December 2008 08:36 PM
scribes configure error : python + D-bus nORKy FreeBSD Ports and Packages 0 7th October 2008 02:25 PM
How to vectorize a function for numpy arrays in Python kasse Programming 0 26th August 2008 12:12 PM


All times are GMT. The time now is 03:26 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick