Note that there are some explanatory texts on larger screens.

plurals
  1. POPython app engine non-standard package import
    primarykey
    data
    text
    <p>I need a non-standard App Engine package named <a href="https://github.com/lincolnloop/python-qrcode" rel="nofollow noreferrer">qrcode</a>. It is a pure python lib that only depends on PIL, which is supported by App Engine. </p> <p>My folder structure is:</p> <pre><code>app |--- handlers/ |------ my_handler.py |--- util/ |------ __init__.py |------ qrcode/ |--------- __init__.py |--------- qrcode/ |------------ __init__.py |------------ other lib files |--- index.py </code></pre> <p>On <code>index.py</code> I map to <code>my_handler.py</code> and on <code>my_handler.py</code> I call <code>from util.qrcode import qrcode</code> inside one of the handler classes' get method. The problem is that I get <code>ImportError: No module named qrcode.main</code> on the <code>__init__.py</code> file. </p> <p><code>__init__.py:</code></p> <pre><code>from qrcode.main import QRCode, make from qrcode.constants import * from qrcode import image </code></pre> <p><code>qrcode.main</code> is one .py file that is inside the <code>qrcode</code> package (to see the whole package, check the repository linked <a href="https://github.com/lincolnloop/python-qrcode" rel="nofollow noreferrer">here</a>)</p> <p>I already looked and I can't find what is wrong. I'd appreciate your help. Thanks!</p> <p>Other questions I searched:<br> <a href="https://stackoverflow.com/questions/1092648/appengine-server-cannot-import-atom-module">AppEngine server cannot import atom module</a><br> <a href="https://stackoverflow.com/questions/4878609/import-custom-package-in-python-google-app-engine">Import custom package in python google app engine</a><br> <a href="https://stackoverflow.com/questions/3929228/importing-nested-modules-in-python">Importing nested modules in Python</a></p>
    singulars
    1. This table or related slice is empty.
    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.
 

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