1 Sep 2009 20:25
1 Sep 2009 20:42
Fw: Agar and python
Sorry, meant to hit reply to all. ----- Forwarded Message ---- > From: Samuel Crow <samuraileumas@...> > To: ash <aash29@...> > Sent: Tuesday, September 1, 2009 1:41:39 PM > Subject: Re: [Agar] Agar and python > > Hello Ash, > > Agar is a C library so it should be easy to write a wrapper for it to be > accessed from Python. It doesn't use any C++ that would make things difficult. > > Thanks for asking, > > --Sam > > > > ----- Original Message ---- > > From: ash > > To: agar@... > > Sent: Tuesday, September 1, 2009 1:25:16 PM > > Subject: [Agar] Agar and python > > > > Greetings, > > > > I wanted to ask if it would be possible to use Agar from python using (say) > > ctypes? > >(Continue reading)
1 Sep 2009 21:13
1 Sep 2009 21:37
Re: Fw: Agar and python
Hello again, It's actually Vedge's site. I'm on a Mac right now so I can't tell you anything about DLLs. Sorry I couldn't help with this one, --Sam ----- Original Message ---- > From: ash <aash29@...> > To: agar@... > Sent: Tuesday, September 1, 2009 2:13:11 PM > Subject: Re: [Agar] Fw: Agar and python > > Thanks for swift reply! > I tried to call functions from precompiled dlls available at your site, > but failed to locate AG_InitCore - which library exports it? > > > _______________________________________________ > Agar mailing list > Agar@... > http://libagar.org/lists.html
2 Sep 2009 02:42
Re: Fw: Agar and python
On Tue, Sep 01, 2009 at 07:13:11PM +0000, ash wrote: > Thanks for swift reply! > I tried to call functions from precompiled dlls available at your site, > but failed to locate AG_InitCore - which library exports it? This is exported by ag_core.dll. You can find out which library exports what by searching the includes. Everything under agar/core/ is exported by ag_core, and everything under agar/gui/ is exported by ag_gui.
2 Sep 2009 08:38
Re: Fw: Agar and python
Still no luck with AG_InitCore. It works for other functions in other agar
dlls, but this one is not available:
from ctypes import *
agar=cdll.LoadLibrary('c:/python/rus/ag_core')
agal.AG_InitCore
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
agar.AG_InitCore
File "c:\python25\lib\ctypes\__init__.py", line 361, in __getattr__
func = self.__getitem__(name)
File "c:\python25\lib\ctypes\__init__.py", line 366, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'AG_InitCore' not found
I tried inspecting ag_core.dll with dumpbin \EXPORTS, and it told me that dll
exports nothing. The file I used is from the following source:
http://stable.hypertriton.com/agar/agar-1.3.4-win32-i386-nothreads.zip
3 Sep 2009 19:11
4 Sep 2009 03:31
Re: Fw: Agar and python
On Thu, Sep 03, 2009 at 05:11:56PM +0000, ash wrote: > Guys? Are you sure ag_core.dll exports what it is supposed to? This might be a problem with the compiled .dll binary? Can you try compiling Agar from source? The instructions are detailed at: http://libagar.org/docs/compile-msvc.html I would not recommend using the "nothreads" flavor unless you are porting to a system that has no threads library available. All of the "nofoo" flavors are not as well tested as the main package is.
4 Sep 2009 12:30
Re: Fw: Agar and python
> This might be a problem with the compiled .dll binary? Can you try > compiling Agar from source? The instructions are detailed at: > http://libagar.org/docs/compile-msvc.html That's exactly what i was trying to avoid. The previous version dll looks good though, I'll experiment a bit with it.
4 Sep 2009 17:10
About agar 1.4
Spam detection software, running on the system "resin2.csoft.net", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see https://csoft.net/contact.html for details. Content preview: Hi, I want to use agar library on ecos(RTOS with posix API), and i have heard that the dependence for SDL will be dropped from the 1.4 branch, but i found the latest commit of this branch was done last year, is it active? [...] Content analysis details: (6.9 points, 6.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.1 DATE_IN_PAST_06_12 Date: is 6 to 12 hours before Received: date 2.1 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO 1.5 FORGED_HOTMAIL_RCVD2 hotmail.com 'From' address, but no 'Received:' -0.2 BAYES_40 BODY: Bayesian spam probability is 20 to 40% [score: 0.3935] 2.4 NULL_IN_BODY FULL: Message has NUL (ASCII 0) byte in message
RSS Feed