Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This is the madness I have had to engage in:</p> <ol> <li><p>Delete all version of PyCrypto</p></li> <li><p>Download PyCrypto v2.3 from <a href="https://github.com/dlitz/pycrypto/tags" rel="nofollow">https://github.com/dlitz/pycrypto/tags</a> and install with</p> <pre><code>dlitz-pycrypto-7e141bd/$ python setup.py build dlitz-pycrypto-7e141bd/$ sudo python setup.py install </code></pre> <p>(version 2.6 balks with a no <code>blockalgo</code> package)</p></li> <li><p>Apply to <code>dev_appserver_import_hook.py</code> in <code>/Application/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/</code> the patch suggested in <a href="http://code.google.com/p/googleappengine/issues/detail?id=1627#c1" rel="nofollow">comment 1 of Issue 1627</a>, i.e. add</p> <pre><code>try: import Crypto as _CryptoTest _CryptoBase = os.path.dirname(_CryptoTest.__file__).replace( os.path.join(os.path.dirname(os.__file__), 'site-packages'), "") # removes preceding slash del _CryptoTest except ImportError: logging.info("No Crypto could be imported") _CryptoBase = "Crypto" </code></pre> <p>around line 314</p> <p>then modify the ALLOWED_SITE_PACKAGES lines from</p> <pre><code>ALLOWED_SITE_PACKAGE_FILES = set( os.path.normcase(os.path.abspath(os.path.join( os.path.dirname(os.__file__), 'site-packages', path))) </code></pre> <p>to</p> <pre><code>ALLOWED_SITE_PACKAGE_FILES = set( path </code></pre> <p>and change all references from <code>'Crypto'</code> to <code>_CryptoBase</code> in the <code>GeneratePythonPaths</code> calls for ALLOWED_SITE_PACKAGES.</p> <p>(I would expect if one is using dev_appserver from the command line i.e. /usr/local/google_appengine, the dev_appserver_import_hook.py would be modified there)</p></li> <li><p>Restart the project.</p></li> </ol> <p>Obviously one must rinse and repeat the patch whenever Google App Engine is updated.</p> <hr> <p><strong>Note</strong> — This issue appears to have been fixed as of patch <a href="http://code.google.com/p/googleappengine/wiki/SdkReleaseNotes#Version_1.7.4_-_December_13,_2012" rel="nofollow">1.7.4 released 14 Dec. 2012</a>.</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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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