Code: Show/Hide I <cmod> loading C module 'pymod' from 'pymod'
Could not find platform independent libraries <prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] 'import site' failed; use -v for traceback Traceback (most recent call last): File "<string>", line 1, in ? ImportError: No module named os Traceback (most recent call last): File "<string>", line 1, in ? ImportError: No module named os Traceback (most recent call last): File "<string>", line 1, in ? ImportError: No module named os Traceback (most recent call last): File "<string>", line 1, in ? ImportError: No module named os ImportError: No module named cPickle D <net> listening on 0.0.0.0:5000 (0) E <pymod> can't import cPickle |
Code: Show/Hide ImportError: /usr/lib/python2.4/lib-dynload/cPickle.so: wrong ELF class: ELFCLASS64
I <pymod> loading python module 'fg_wz' E <pymod> error loading python module 'fg_wz' Traceback (most recent call last): File "/home/levi/Downloads/asss-1.4.4/bin/fg_wz.py", line 4, in ? import math ImportError: /usr/lib/python2.4/lib-dynload/math.so: wrong ELF class: ELFCLASS64 Unrecoverable error (5): Error in loading module '<py> fg_wz' |
Code: Show/Hide E <pymod> error loading python module 'fg_wz'
Traceback (most recent call last): File "/home/levi/Downloads/asss-1.4.4/bin/fg_wz.py", line 4, in ? import math ImportError: /usr/lib/python2.4/lib-dynload/math.so: undefined symbol: PyFPE_jbuf Unrecoverable error (5): Error in loading module '<py> fg_wz' |
Code: Show/Hide --- src/core/clientset.c 2ad6f3ce5cb2ba50fd737032e5ae23d1684a804c +++ src/core/clientset.c 9a5e4bd79825c76d979f5131cbeea90fdf53be0d @@ -389,22 +389,22 @@ local void do_mask( overridedata *od2) { int i; - unsigned long *s = (unsigned long*)src; - unsigned long *d = (unsigned long*)dest; - unsigned long *o1 = (unsigned long*)od1->bits; - unsigned long *m1 = (unsigned long*)od1->mask; + unsigned int *s = (unsigned int*)src; + unsigned int *d = (unsigned int*)dest; + unsigned int *o1 = (unsigned int*)od1->bits; + unsigned int *m1 = (unsigned int*)od1->mask; if (od2) { - unsigned long *o2 = (unsigned long*)od2->bits; - unsigned long *m2 = (unsigned long*)od2->mask; + unsigned int *o2 = (unsigned int*)od2->bits; + unsigned int *m2 = (unsigned int*)od2->mask; - for (i = 0; i < sizeof(*dest)/sizeof(unsigned long); i++) + for (i = 0; i < sizeof(*dest)/sizeof(unsigned int); i++) d[i] = (((s[i] & ~m1[i]) | (o1[i] & m1[i])) & ~m2[i]) | (o2[i] & m2[i]); } else { - for (i = 0; i < sizeof(*dest)/sizeof(unsigned long); i++) + for (i = 0; i < sizeof(*dest)/sizeof(unsigned int); i++) d[i] = (s[i] & ~m1[i]) | (o1[i] & m1[i]); } } @@ -562,7 +562,7 @@ EXPORT int MM_clientset(int action, Imod /* do these at least once */ #define cs (*((struct ClientSettings*)0)) #define ss (*((struct ShipSettings*)0)) - assert((sizeof(cs) % sizeof(unsigned long)) == 0); + assert((sizeof(cs) % sizeof(uint32_t)) == 0); assert(COUNT(cs.long_set) == COUNT(long_names)); assert(COUNT(cs.short_set) == COUNT(short_names)); assert(COUNT(cs.byte_set) == COUNT(byte_names)); |
Code: Show/Hide --- src/include/net.h 2519ebab5906c86db40186b3053ded968e904ec4 +++ src/include/net.h 40bb87f50a61ba404a94ce879367f00a54334f2e @@ -55,13 +55,13 @@ struct net_stats struct net_stats { - unsigned long pcountpings, pktsent, pktrecvd; - unsigned long bytesent, byterecvd; - unsigned long buffercount, buffersused; + unsigned int pcountpings, pktsent, pktrecvd; + unsigned int bytesent, byterecvd; + unsigned int buffercount, buffersused; #define NET_GROUPED_STATS_LEN 8 - unsigned long grouped_stats[NET_GROUPED_STATS_LEN]; + unsigned int grouped_stats[NET_GROUPED_STATS_LEN]; #define NET_PRI_STATS_LEN 5 /* must match BW_PRIS in bwlimit.h */ - unsigned long pri_stats[NET_PRI_STATS_LEN]; + unsigned int pri_stats[NET_PRI_STATS_LEN]; byte reserved[176]; }; @@ -70,9 +70,9 @@ struct net_client_stats /* sequence numbers */ i32 s2cn, c2sn; /* counts of stuff sent and recvd */ - unsigned long pktsent, pktrecvd, bytesent, byterecvd; + unsigned int pktsent, pktrecvd, bytesent, byterecvd; /* count of s2c packets dropped */ - unsigned long pktdropped; + unsigned int pktdropped; unsigned int unused1; /* encryption type */ const char *encname; |
Code: Show/Hide --- src/main/rwlock.c 172c3d5dcb2a2be709a77a1d990a044ba18f10b2 +++ src/main/rwlock.c 7199409e35ccd910fad5ac45da1b4c82bbdb82b8 @@ -29,6 +29,8 @@ * for write access can also lock it for read access any number of * times; again it must be unlocked the same number. */ +#include "asss.h" + #include "pthread.h" #include "errno.h" |
Simulacrum wrote: | |
I downloaded the precompiled ASSS for Linux and it runs just fine in Ubuntu. However, I am unable to load pymod in order to use modules like fg_wz. When I try to load in pymod when I start ASSS, I get this message:
What's going wrong here? Do I need to give ASSS a different directory for my Python installation? |
Quote: |
Cerium> system.mk, line 69; system-windeps.mk, line 26; and os.mk line 63 |