<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to Discussion</title><link>https://sourceforge.net/p/pyclips/discussion/</link><description>Recent posts to Discussion</description><atom:link href="https://sourceforge.net/p/pyclips/discussion/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 09 Nov 2018 19:51:17 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/pyclips/discussion/feed.rss" rel="self" type="application/rss+xml"/><item><title>Windows Installer Issue</title><link>https://sourceforge.net/p/pyclips/discussion/390146/thread/7af08e8d4c/?limit=25#9e8c</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;There may be a trivial answer to this, however, I can't seem to install PyCLIPS via the Windows Executable available for download. I receive the following error despite having both a 32-bit and 64-bit version of Python 2.7x. I have also tried installing via pip with no luck.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Justin Kulm</dc:creator><pubDate>Fri, 09 Nov 2018 19:51:17 -0000</pubDate><guid>https://sourceforge.netc700b4d398ff2e2cfee4548534e8b26be01f8109</guid></item><item><title>Error in factmngr.c in CLIPSSrc.zip</title><link>https://sourceforge.net/p/pyclips/discussion/390145/thread/34984926/?limit=25#092a</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;My apologies; meant to put this in the Help forum.  Additionally, this error seems to be address in version 6.30 of the CLIPS software distribution.  Thanks!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">wtdoor</dc:creator><pubDate>Mon, 15 Jan 2018 20:32:25 -0000</pubDate><guid>https://sourceforge.nete3c704abd7967577699f5ecbe12a4113564dd2a8</guid></item><item><title>Error in factmngr.c in CLIPSSrc.zip</title><link>https://sourceforge.net/p/pyclips/discussion/390145/thread/34984926/?limit=25#9e66</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello --&lt;/p&gt;
&lt;p&gt;I believe I have finally discovered the source of the segmentation fault I alluded to in the topic "EnvIncrementFactCount call in clips_fact_assign".  There appears to be an error in the factmngr.c distributed in CLIPSSrc.zip.  &lt;/p&gt;
&lt;p&gt;At line 103 in factmngr.c, a patternEntityRecord named factInfo is defined.  Before the 4 NULLS in the nested structure, there are two entries: EnvIncrementFactCount followed by EnvDecrementFactCount.  These are inthe wrong order.  Per the entityRecord declaration in evaluatn.h, the "Decrement" function should appear before the "Increment" function.&lt;/p&gt;
&lt;p&gt;This seems like a fairly significant error, so I'm unsure as to why it only seems to manifest itself in a few specific cases -- but correcting this error seems to fix the segmentation faults I was seeing.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">wtdoor</dc:creator><pubDate>Mon, 15 Jan 2018 20:18:19 -0000</pubDate><guid>https://sourceforge.netf96f4cdbd69143362b811e0a33869965f522a17f</guid></item><item><title>EnvIncrementFactCount call in clips_fact_assign</title><link>https://sourceforge.net/p/pyclips/discussion/390146/thread/2339dee6/?limit=25#dc36</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello --&lt;/p&gt;
&lt;p&gt;I've been using PyCLIPS in a project and ran into an issue where CLIPS would occasionally segfault while running.  In an attempt to track the issue down, I started running a test case in a loop over and over again and noticed increasingly long run times.&lt;/p&gt;
&lt;p&gt;At the beginning of each loop, I'd perform a clips.Reset(), a number of asserts, and a clips.Run().  However, I noticed that the CLIPS call to RemoveGarbageFacts() would take longer and longer with each call -- and it appeared that the linked list of facts maintained by CLIPS continued to get longer and longer.&lt;/p&gt;
&lt;p&gt;RemoveGarbageFacts() checks the busyCount of each fact to determine whtehr or not it is still in use before performing cleanup and removing the fact from the list.  I noticed that although I had used clips.Reset() and the EnvRetract() had been called on each of the facts, the busyCount was still non-zero as the garbage removal process took place.&lt;/p&gt;
&lt;p&gt;It looked to me like the busyCount value was being double incremented when a  clips.Assert() call took place.  Looking more closely at the code, it appears that when clips.Assert() is used to place a fact into working memory, clips_fact_assign() in clipsmodule.c explicitly calls EnvIncrementFactCount().  This causes busyCount to increment one extra time, such that when my clips.Reset() is executed, the busyCount on each fact I've asserted never goes to 0 and is never cleaned up by the garbage collection.&lt;/p&gt;
&lt;p&gt;I hope that makes sense!  Thanks!&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">wtdoor</dc:creator><pubDate>Thu, 28 Dec 2017 19:39:56 -0000</pubDate><guid>https://sourceforge.net609b441bb4d32fa522bd7fca0bc95bab817b8763</guid></item><item><title>python-call: returning a list of fact refs</title><link>https://sourceforge.net/p/pyclips/discussion/390146/thread/696ae41f/?limit=25#a109</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Has this been fixed? I am having the same problems and the code seems not to have changed.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gitttt</dc:creator><pubDate>Fri, 05 May 2017 08:22:56 -0000</pubDate><guid>https://sourceforge.netdcdb115f3cd58f1e0cce7c6b8c7ac3e89057f730</guid></item><item><title>PyCLIPS with Python 3.5 or greater</title><link>https://sourceforge.net/p/pyclips/discussion/390146/thread/2a81120e/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Any ideas about bytearrays and unicodes? Anyone ? &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mani</dc:creator><pubDate>Wed, 14 Sep 2016 18:07:04 -0000</pubDate><guid>https://sourceforge.netf20e6dbcae25da8ad0cab2269800c74c0119b814</guid></item><item><title>PyCLIPS with Python 3.5 or greater</title><link>https://sourceforge.net/p/pyclips/discussion/390146/thread/2a81120e/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;New dev branch is created on git hub in my repo. I merged your pull request to the dev branch too. Thanks a lot &lt;/p&gt;
&lt;p&gt;Is anyone else following this? more tests are welcome . Tim send me his coredump and a backtrace. So far I couldn't reproduce the segfault that he gets on line 259 of test_cycnlst.py &lt;/p&gt;
&lt;p&gt;Mani &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mani</dc:creator><pubDate>Wed, 14 Sep 2016 10:34:16 -0000</pubDate><guid>https://sourceforge.netb096553ff8e6c628ce8d866c5d2dd2dcd82d36ab</guid></item><item><title>PyCLIPS with Python 3.5 or greater</title><link>https://sourceforge.net/p/pyclips/discussion/390146/thread/2a81120e/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Ok as far as unit tests are concerned every thing is working. &lt;/p&gt;
&lt;p&gt;The segfault is still there but it only happens on terminating python , I have a couple of back traces and core dumps that points to the a PyDict_GetItem in bufdict_Remove after its called by python finalize. So its probably a reference counting problem but still not sure where exactly. needs more time in gdb.&lt;br/&gt;
&lt;/p&gt;
&lt;p&gt;Have a look at this &lt;br/&gt;
&lt;a href="https://github.com/manisabri/pyclips/commit/527d5aaa3d25a6dadb51a90c7029c396edca584d" rel="nofollow"&gt;https://github.com/manisabri/pyclips/commit/527d5aaa3d25a6dadb51a90c7029c396edca584d&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I'll appreciate if anyone have a go and throws some stuff at it so we find more issues to resolve as not all is covered in unit tests &lt;/p&gt;
&lt;p&gt;Thanks&lt;br/&gt;
Mani&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mani</dc:creator><pubDate>Tue, 13 Sep 2016 14:03:08 -0000</pubDate><guid>https://sourceforge.net01c436a5af6835cc10d487768de64c01a56b3597</guid></item><item><title>PyCLIPS with Python 3.5 or greater</title><link>https://sourceforge.net/p/pyclips/discussion/390146/thread/2a81120e/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;+1 for the dev branch &lt;br/&gt;
I'll creat a dev branch and move my commits from master to that after I figured out what's going on in the clips.Eval function &lt;/p&gt;
&lt;p&gt;What I'm trying to achive for now is to make it work as intended in python 3.5 with minimal changes. Updating the documents is not my priority for now. But I suppose not much will change except the obvious difference between py 2.7 and 3.5 like map function returning a generator instead of a list and such&lt;/p&gt;
&lt;p&gt;At the moment I refactored the test suite so it can run tests separately which make debugging easier &lt;/p&gt;
&lt;p&gt;From what I gathered in the past few days PyClips2 branch is inteded to be the better design but its behind on functionality compared to pyclips-1.1_clips-6.30 and it breaks compatibility with pyclips1.&lt;/p&gt;
&lt;p&gt;I guess at some point after the master/dev is ported to 3.5 we should consider what we want to do. So far I think out options are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Study the pyclips2 design and adapt it if we liked it then add the 6.30 functionality&lt;/li&gt;
&lt;li&gt;Insert the 6.30 functionality and then adapt the pyclips2 design&lt;/li&gt;
&lt;li&gt;Insert the 6.30 functionality and ditch the pyclips2 design ( not so keen on this myself )&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It will be very helpful if the original author of the package comes around at some point and give us some insights&lt;/p&gt;
&lt;p&gt;What versions of pyclips are you using Tim? On what Platforms?&lt;/p&gt;
&lt;p&gt;Mani&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mani</dc:creator><pubDate>Tue, 13 Sep 2016 11:07:32 -0000</pubDate><guid>https://sourceforge.net36d31c8df01af5c6cab51760cba5c67b7c4688ed</guid></item><item><title>PyCLIPS with Python 3.5 or greater</title><link>https://sourceforge.net/p/pyclips/discussion/390146/thread/2a81120e/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Here you are &lt;br/&gt;
&lt;a href="https://github.com/manisabri/pyclips" rel="nofollow"&gt;https://github.com/manisabri/pyclips&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Master branch is changed ... has the issues I mentioned above.&lt;br/&gt;
My rig runs ubuntu 16.04 LTS , but some libs are not from canonical repos , but I guess it shouldn't be any problem &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mani</dc:creator><pubDate>Mon, 12 Sep 2016 19:30:10 -0000</pubDate><guid>https://sourceforge.net0708cbcb09c5eaf618afe8984d1af820f120f477</guid></item></channel></rss>