PyKE on IronPython

149 views
Skip to first unread message

Bill Janssen

unread,
Jun 2, 2011, 7:22:22 PM6/2/11
to PyKE
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

Stephen Nuchia

unread,
Apr 6, 2012, 5:24:11 PM4/6/12
to py...@googlegroups.com
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

Bruce Frederiksen

unread,
Apr 7, 2012, 10:54:57 AM4/7/12
to py...@googlegroups.com
If you don't have access to mercurial, you can email me the files that you changed and I'll incorporate the change.

-bruce


Bill

--
You received this message because you are subscribed to the Google Groups "PyKE" group.
To post to this group, send email to py...@googlegroups.com.
To unsubscribe from this group, send email to pyke+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pyke?hl=en.


Bruce Frederiksen

unread,
Apr 7, 2012, 11:40:59 AM4/7/12
to py...@googlegroups.com
Stephen,

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 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.

-Bruce

--
You received this message because you are subscribed to the Google Groups "PyKE" group.
To view this discussion on the web visit https://groups.google.com/d/msg/pyke/-/QIwoCvZy8M8J.
Reply all
Reply to author
Forward
0 new messages