I found myself wanting to run PyKE on IronPython. Turned out to be
almost easy.
One problem with IP 2.7 is that it doesn't have the subprocess
module. So I had to move the "import subprocess" in pyke/special.py
further into the code. I'd post the patch, but this durn bulletin
board doesn't seem to have the necessary non-line-wrapping markup.
So, I'm finally actually working on this, and it's my first non-trivial excursion into PyKE, Python, .NET and (forward chaining) IronPython.
I'm trying to avoid creating a dependency on .NET 4, so I want to use IronPython 2.6. I downloaded PyKE 1.1.1 and tried following the yellow brick road, it did the "build" thing OK but then failed in "install". I tried commenting out the import subprocess line but it didn't help
Error messages below. Any ideas?
byte-compiling c:\Program Files (x86)\IronPython 2.6\Lib\site-packages\pyke\krb_ compiler\ply\yacc.py to yacc.pyc Traceback (most recent call last): File "setup.py", line 5, in <module> File "c:\Program Files (x86)\IronPython 2.6\Lib\distutils\core.py", line 152, in setup File "c:\Program Files (x86)\IronPython 2.6\Lib\distutils\dist.py", line 975, in run_commands File "c:\Program Files (x86)\IronPython 2.6\Lib\distutils\dist.py", line 995, in run_command File "c:\Program Files (x86)\IronPython 2.6\Lib\distutils\command\install.py", line 589, in run File "c:\Program Files (x86)\IronPython 2.6\Lib\distutils\cmd.py", line 333, i n run_command File "c:\Program Files (x86)\IronPython 2.6\Lib\distutils\dist.py", line 995, in run_command File "c:\Program Files (x86)\IronPython 2.6\Lib\distutils\command\install_lib. py", line 100, in run File "c:\Program Files (x86)\IronPython 2.6\Lib\distutils\command\install_lib. py", line 134, in byte_compile File "c:\Program Files (x86)\IronPython 2.6\Lib\distutils\util.py", line 550, in byte_compile File "c:\Program Files (x86)\IronPython 2.6\Lib\py_compile.py", line 138, in c ompile ValueError: unmarshallable object c:\Program Files (x86)\pyke-1.1.1>dir
On Thu, Jun 2, 2011 at 7:22 PM, Bill Janssen <bill.jans...@gmail.com> wrote: > I found myself wanting to run PyKE on IronPython. Turned out to be > almost easy.
> One problem with IP 2.7 is that it doesn't have the subprocess > module. So I had to move the "import subprocess" in pyke/special.py > further into the code. I'd post the patch, but this durn bulletin > board doesn't seem to have the necessary non-line-wrapping markup.
> Bill
> -- > You received this message because you are subscribed to the Google Groups > "PyKE" group. > To post to this group, send email to pyke@googlegroups.com. > To unsubscribe from this group, send email to > pyke+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/pyke?hl=en.
Not sure what the problem is that you're having. It looks like an IronPython issue. Pyke encountered errors in IronPython that were reported Dec 2008 as item# 20143 <http://ironpython.codeplex.com/workitem/20143> to the ironpython project. This was reported fixed in Ironpython 2.6.1 in Feb 2010. So I would be sure that you are using 2.6.1 or later of IronPython. But that bug was different than this one.
Bill apparently didn't have this problem, so wondering if there is some other problem with ironpython 2.6? This would be a question for the ironpython folks. I don't have a windows box to play with ironpython.
On Fri, Apr 6, 2012 at 5:24 PM, Stephen Nuchia <snuc...@gmail.com> wrote: > So, I'm finally actually working on this, and it's my first non-trivial > excursion into PyKE, Python, .NET and (forward chaining) IronPython.
> I'm trying to avoid creating a dependency on .NET 4, so I want to use > IronPython 2.6. I downloaded PyKE 1.1.1 and tried following the yellow > brick road, it did the "build" thing OK but then failed in "install". I > tried commenting out the import subprocess line but it didn't help
> Error messages below. Any ideas?
> byte-compiling c:\Program Files (x86)\IronPython > 2.6\Lib\site-packages\pyke\krb_ > compiler\ply\yacc.py to yacc.pyc > Traceback (most recent call last): > File "setup.py", line 5, in <module> > File "c:\Program Files (x86)\IronPython 2.6\Lib\distutils\core.py", line > 152, > in setup > File "c:\Program Files (x86)\IronPython 2.6\Lib\distutils\dist.py", line > 975, > in run_commands > File "c:\Program Files (x86)\IronPython 2.6\Lib\distutils\dist.py", line > 995, > in run_command > File "c:\Program Files (x86)\IronPython > 2.6\Lib\distutils\command\install.py", > line 589, in run > File "c:\Program Files (x86)\IronPython 2.6\Lib\distutils\cmd.py", line > 333, i > n run_command > File "c:\Program Files (x86)\IronPython 2.6\Lib\distutils\dist.py", line > 995, > in run_command > File "c:\Program Files (x86)\IronPython > 2.6\Lib\distutils\command\install_lib. > py", line 100, in run > File "c:\Program Files (x86)\IronPython > 2.6\Lib\distutils\command\install_lib. > py", line 134, in byte_compile > File "c:\Program Files (x86)\IronPython 2.6\Lib\distutils\util.py", line > 550, > in byte_compile > File "c:\Program Files (x86)\IronPython 2.6\Lib\py_compile.py", line > 138, in c > ompile > ValueError: unmarshallable object > c:\Program Files (x86)\pyke-1.1.1>dir
> To post to this group, send email to pyke@googlegroups.com. > To unsubscribe from this group, send email to > pyke+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/pyke?hl=en.