Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I had a bit of trouble trying to implement this solution. This is what I did:</p> <ol> <li>Download pyc from <a href="http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=423#DownloadId=2364" rel="nofollow noreferrer">here</a>. This took me more searching than it should have because it seems that pyc is hard to find (and I think, a little out of date)</li> <li>I extracted the pyc folder from the zip file and added it to my IronPython folder in <code>C:\Program Files</code></li> <li>Now I tried running this command on the windows console, as instructed by the readme in the pyc download: <code>ipy.exe pyc.py other_hw.py /main:console_hw.py</code></li> </ol> <p>It gave me this error:</p> <pre><code>Traceback (most recent call last): File "pyc\pyc.py", line 35, in pyc\pyc.py AttributeError: attribute 'CompilerSink' of 'namespace#' object is read-only </code></pre> <p>I made the following change to line 35:</p> <p>Before: <code>class PycSink(Hosting.CompilerSink):</code></p> <p>After: <code>class PycSink():</code></p> <p>Saving the file proved to be a problem due to permissions, so I copied the contents of pyc.py into a new IDLE window (to create a copy), deleted the existing copy of <code>pyc.py</code> and saved the copy as <code>pyc.py</code> in the same location. This takes care of permissions issues and allows changes.</p> <p>After making this change, I tried running the this command again:</p> <p><code>ipy.exe pyc.py other_hw.py /main:console_hw.py</code></p> <p>However, this time, I got the following error:</p> <pre><code>Traceback (most recent call last): File "pyc\pyc.py", line 170, in pyc\pyc.py File "pyc\pyc.py", line 56, in Main AttributeError: attribute 'ResourceFile' of 'namespace#' object is read-only </code></pre> <p>At this point, I took stock of the fact that it is now 1 AM and I have a midterm tomorrow, so I undid the changes and shut it down.</p> <p>Please let me know if you have a solution, or any advancements on mine.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload