Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
FreeBSD and Python problems
Goto page 1, 2  Next
 
Post new topic   Reply to topic Printable version
 View previous topic  ?owner and greet message dont work Post :: Post Python and MySQL  View next topic  
Author Message
TeHsU
Seasoned Helper


Joined: Mar 20 2003
Posts: 101
Offline

PostPosted: Sun Sep 10, 2006 2:03 am    Post subject: FreeBSD and Python problems Reply to topic Reply with quote

I dont know what the best way is to fix this, but heres the problem I am having with the precompiled binarys..

ImportError: /usr/local/lib/python2.4/lib-dynload/cPickle.so: ELF file OS ABI invalid
D <net> listening on 0.0.0.0:5000 (0)
I <directory> server on port 5000 using name 'SSN Forever Dying'
I <directory> using 'sscentral.ds98.com' at 66.116.109.62 as a directory server
I <directory> using 'sscentral.subspace.inet.fi' at 62.65.37.101 as a directory server
I <directory> using 'sscentral.subspacehq.com' at 216.8.177.28 as a directory server
I <directory> using 'sscentral.subspace.net' at 216.157.150.64 as a directory server
E <pymod> can't import cPickle
D <main> entering main loop
I <billing_ssc> connecting to user database server at 75.19.89.78:900
I <billing_ssc> connected to user database server, logging in
D <mapnewsdl> news file 'news.txt' reread

Anyone that has already gone through this can give me an easy fix, or if I have to compile it myself for FreeBSD, I got it to compile, but for some reason it wont put the files into the asss folder, so if anyone knows anything about the compiling part would be great, thank you
_________________
Back to top
View users profile Send private message Add User to Ignore List
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Sun Sep 10, 2006 10:34 am    Post subject: Reply to topic Reply with quote

At a guess the precompiled binaries were made against a different version of python to what is installed on your machine.

I think cPickle is only for persist, which in english means a non-essential part of the turf module won't work.

Also the default compile option for asss is "symlink_bins" which means symlinks (shortcuts) are put in the bin directory to point at the compiled files in the build directory.

BTW you might want to edit the directory settings in global.conf, only sscentral.subspace.inet.fi and ssdir.getsubspace.com work.
(oh, and welcome back).
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
k0zy
Server Help Squatter


Gender:Gender:Male
Joined: Jan 11 2003
Posts: 571
Location: Germany
Offline

PostPosted: Sun Sep 10, 2006 11:10 am    Post subject: Reply to topic Reply with quote

Smong wrote:
BTW you might want to edit the directory settings in global.conf, only sscentral.subspace.inet.fi and ssdir.getsubspace.com work.


He might also want to add sscentral.sscuservers.net which works, too.

Bob Dole.. Bob Dole... Bob Dole...... bob dole.... bob... dole....
_________________
It's a shark! Oh my god! Unbelievable!
Back to top
View users profile Send private message Add User to Ignore List
Maverick
broken record


Age:41
Gender:Gender:Male
Joined: Feb 26 2005
Posts: 1521
Location: The Netherlands
Offline

PostPosted: Sun Sep 10, 2006 11:36 am    Post subject: Reply to topic Reply with quote

Bob Dole.. Bob Dole... Bob Dole...... bob dole.... bob... dole.... wrote:
He might also want to add sscentral.sscuservers.net which works, too.
sscentral.sscuservers.net and sdir.getsubspace.com only then

(sscentral.subspace.inet.fi is the same as sscentral.sscuservers.net and I doubt the inet.fi domain still works since the stats already went down)
_________________
Nickname: Maverick (I changed my name!)
TWCore developer | Subspace statistics
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Sun Sep 10, 2006 12:34 pm    Post subject: Reply to topic Reply with quote

The DNS still works, even sscentral.sscx.net still works (but it points to the same IP as sscu/inet).
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
TeHsU
Seasoned Helper


Joined: Mar 20 2003
Posts: 101
Offline

PostPosted: Sun Sep 10, 2006 3:04 pm    Post subject: Reply to topic Reply with quote

[tehsu@tsunade ~/asss-1.4.3/src]$ gmake
Makefile:110: ../build/deps.mk: No such file or directory
python ../scripts/makedeps.py -I. -Iinclude -I../build -D_REENTRANT -D_GNU_SOURCE -fPIC -I/usr/local/BerkeleyDB.4.4/include -I/usr/local/include -I/usr/local/include/python2.4 \
*/*.c -P '$(BUILDDIR)/' -o ../build/deps.mk
makedeps: ignoring option: -D_REENTRANT
makedeps: ignoring option: -D_GNU_SOURCE
makedeps: ignoring option: -fPIC
makedeps: ignoring option: -I/usr/local/BerkeleyDB.4.4/include
makedeps: ignoring option: -I/usr/local/include
makedeps: ignoring option: -I/usr/local/include/python2.4
makedeps: warning: "pthread.h" not found
makedeps: warning: "zlib.h" not found
makedeps: warning: "mysql.h" not found
makedeps: warning: "db.h" not found
makedeps: warning: "errno.h" not found
makedeps: warning: "Python.h" not found
makedeps: warning: "structmember.h" not found

^^ Any ideas if thats important,

the directories are correct, but i dunno why it does that, it compiles

then it hits this

core/unixsignal.c:11:22: execinfo.h: No such file or directory
core/unixsignal.c: In function `handle_sigsegv':
core/unixsignal.c:90: warning: implicit declaration of function `fcloseall'
gmake: *** [../build/unixsignal.o] Error 1

I comment out fcloseall, and it keeps compiling and then it does the symlink

ln -sf ../bin

but when i look in the dir, nothing is there
Back to top
View users profile Send private message Add User to Ignore List
i88gerbils
Oldbie Server Help


Gender:Gender:Male
Joined: Dec 13 2002
Posts: 423
Location: OH
Offline

PostPosted: Sun Sep 10, 2006 3:58 pm    Post subject: Reply to topic Reply with quote

I ran into this as well for the past few versions because for some reason grel's dependency python script wouldn't find the system libraries on my system even when defined. I had to manually create deps.mk

You can use the following to edit a diff/patch for deps.mk for wherever the libraries are, and then patch.
_________________
Oldbie Server Help




patch for 1.4.3 deps.mk

deps.mk.txt - 7.07 KB
File downloaded or viewed 61 time(s)
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website Yahoo Messenger
TeHsU
Seasoned Helper


Joined: Mar 20 2003
Posts: 101
Offline

PostPosted: Sun Sep 10, 2006 5:37 pm    Post subject: Reply to topic Reply with quote

I patched the file, but I still get the same error
Back to top
View users profile Send private message Add User to Ignore List
TeHsU
Seasoned Helper


Joined: Mar 20 2003
Posts: 101
Offline

PostPosted: Sun Sep 10, 2006 6:16 pm    Post subject: Reply to topic Reply with quote

what am i using to patch, should i use patch -p1 < ?
Back to top
View users profile Send private message Add User to Ignore List
TeHsU
Seasoned Helper


Joined: Mar 20 2003
Posts: 101
Offline

PostPosted: Sun Sep 10, 2006 6:26 pm    Post subject: Reply to topic Reply with quote

Ok I got the patch file going, now I get gcc -std=gnu99 -pipe -I. -Iinclude -I../build -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -c -o ../build/pwcache.o
gcc: No input files specified
gmake: *** [../build/pwcache.o] Error 1
Back to top
View users profile Send private message Add User to Ignore List
TeHsU
Seasoned Helper


Joined: Mar 20 2003
Posts: 101
Offline

PostPosted: Sun Sep 10, 2006 7:29 pm    Post subject: Reply to topic Reply with quote

I can't get it to patch :-\
Back to top
View users profile Send private message Add User to Ignore List
i88gerbils
Oldbie Server Help


Gender:Gender:Male
Joined: Dec 13 2002
Posts: 423
Location: OH
Offline

PostPosted: Sun Sep 10, 2006 7:39 pm    Post subject: Reply to topic Reply with quote

you may want to make sure your paths for db.h, mysql.h, etc... are correct, which is why I mentioned to edit it.

This second file i made is for 1.4.3. 1.4.2 doesn't have the pwcache if you're using that.

for patching all I did was patch deps.mk deps.mk.txt.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website Yahoo Messenger
TeHsU
Seasoned Helper


Joined: Mar 20 2003
Posts: 101
Offline

PostPosted: Sun Sep 10, 2006 7:41 pm    Post subject: Reply to topic Reply with quote

exactly, and this is what i get

Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- deps.mk 2006-09-10 15:44:52.000000000 -0400
|+++ deps.mk.new 2006-09-10 15:53:53.000000000 -0400
--------------------------
Patching file deps.mk using Plan A...
Hunk #1 succeeded at 39.
Hunk #2 succeeded at 135.
patch: **** malformed patch at line 30: @@ -276,7 +277,7 @@
Back to top
View users profile Send private message Add User to Ignore List
i88gerbils
Oldbie Server Help


Gender:Gender:Male
Joined: Dec 13 2002
Posts: 423
Location: OH
Offline

PostPosted: Sun Sep 10, 2006 7:54 pm    Post subject: Reply to topic Reply with quote

Oh well, I guess I messed up and you have to edit it manually. icon_smile.gif
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website Yahoo Messenger
TeHsU
Seasoned Helper


Joined: Mar 20 2003
Posts: 101
Offline

PostPosted: Sun Sep 10, 2006 8:19 pm    Post subject: Reply to topic Reply with quote

Alright, I patched it by hand.. any ideas about unixsignal?

core/unixsignal.c:11:22: execinfo.h: No such file or directory
core/unixsignal.c: In function `handle_sigsegv':
core/unixsignal.c:90: warning: implicit declaration of function `fcloseall'
gmake: *** [../build/unixsignal.o] Error 1
Back to top
View users profile Send private message Add User to Ignore List
TeHsU
Seasoned Helper


Joined: Mar 20 2003
Posts: 101
Offline

PostPosted: Sun Sep 10, 2006 8:31 pm    Post subject: Reply to topic Reply with quote

well, i finish building, but the link at the end to ../bin theres no files in there
Back to top
View users profile Send private message Add User to Ignore List
TeHsU
Seasoned Helper


Joined: Mar 20 2003
Posts: 101
Offline

PostPosted: Sun Sep 10, 2006 9:34 pm    Post subject: Reply to topic Reply with quote

Ok, I got it workin, only thing I am missing now is the security.so, anyone anyone?
Back to top
View users profile Send private message Add User to Ignore List
TeHsU
Seasoned Helper


Joined: Mar 20 2003
Posts: 101
Offline

PostPosted: Sun Sep 10, 2006 9:39 pm    Post subject: Reply to topic Reply with quote

Well, I got it working for the most part, everything works just need the security.so, security:security works but security:enc_cont doesnt, so im just using enc_null
Back to top
View users profile Send private message Add User to Ignore List
i88gerbils
Oldbie Server Help


Gender:Gender:Male
Joined: Dec 13 2002
Posts: 423
Location: OH
Offline

PostPosted: Sun Sep 10, 2006 10:19 pm    Post subject: Reply to topic Reply with quote

unfortunately, the source-only files don't include security.so. So you'll have to download the full one.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website Yahoo Messenger
TeHsU
Seasoned Helper


Joined: Mar 20 2003
Posts: 101
Offline

PostPosted: Sun Sep 10, 2006 11:00 pm    Post subject: Reply to topic Reply with quote

yeah, well, where can i find it, the one i downloaded is from 1.3.x
Back to top
View users profile Send private message Add User to Ignore List
i88gerbils
Oldbie Server Help


Gender:Gender:Male
Joined: Dec 13 2002
Posts: 423
Location: OH
Offline

PostPosted: Mon Sep 11, 2006 12:22 am    Post subject: Reply to topic Reply with quote

asss.yi.org?
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website Yahoo Messenger
TeHsU
Seasoned Helper


Joined: Mar 20 2003
Posts: 101
Offline

PostPosted: Mon Sep 11, 2006 1:10 am    Post subject: Reply to topic Reply with quote

you got me on this one, ive gone through everything and i see no security.so download
Back to top
View users profile Send private message Add User to Ignore List
i88gerbils
Oldbie Server Help


Gender:Gender:Male
Joined: Dec 13 2002
Posts: 423
Location: OH
Offline

PostPosted: Mon Sep 11, 2006 10:07 am    Post subject: Reply to topic Reply with quote

I have it and I downloaded it yesterday. It wasn't so much of a real question as a polite question.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website Yahoo Messenger
TeHsU
Seasoned Helper


Joined: Mar 20 2003
Posts: 101
Offline

PostPosted: Mon Sep 11, 2006 3:14 pm    Post subject: Reply to topic Reply with quote

ill go look again, thanx alot! for your help, and everyone elses help, thanks very mcuh
Back to top
View users profile Send private message Add User to Ignore List
i88gerbils
Oldbie Server Help


Gender:Gender:Male
Joined: Dec 13 2002
Posts: 423
Location: OH
Offline

PostPosted: Tue Sep 12, 2006 11:31 pm    Post subject: Reply to topic Reply with quote

I figured out makedeps.py's issu. It's ignoring absolute paths! i made a quick diff to comment out the following lines:

Code: Show/Hide

--- ../scripts/makedeps.py   2006-09-12 16:05:19.000000000 -0400
+++ ../scripts/makedeps.py.new   2006-09-12 16:05:10.000000000 -0400
@@ -88,9 +88,9 @@
            i += 1
         else:
            arg = arg[2:]
-         if os.path.isabs(arg):
-            print >>sys.stderr, "makedeps: ignoring option: -I%s" % arg
-         else:
+#         if os.path.isabs(arg):
+#            print >>sys.stderr, "makedeps: ignoring option: -I%s" % arg
+#         else:
            paths.append(arg)
      elif arg.startswith('-P'):
         prefix = args[i]




diff file for makedeps.py 1.4.3 and commented out stuff.

makedeps.patch.txt - 0.46 KB
File downloaded or viewed 29 time(s)
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 28 page(s) served in previous 5 minutes.

phpBB Created this page in 0.535265 seconds : 51 queries executed (82.5%): GZIP compression disabled