Python Forum

Full Version: Issue with bottle-pymysql
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(Feb-19-2019, 05:09 PM)nikos Wrote: [ -> ]First positional arg you mean.
the last positional, e.g. if you have page
as positional it will be
@app.route( '/<page>' )
def index(page, pymydb ):
(Feb-19-2019, 05:09 PM)nikos Wrote: [ -> ]I dont have anything else wrong AttributeError: 'NoneType' object has no attribute 'encoding' is refering to pymydb, perhaps it has no value?

Obviously you have something wrong :-). My point is, your original question was about not able to use keyword for the cursor and it was raising NameError. So now you know how to pass it. Start debuging the Attribute error.
Post full traceback and the relevant code that produce it (not just selected lines)
I cannot make it work. Is now says pymydb is not defined. I don't get it why the cursor not being defined?
The crystal ball is not part of our inventory, yet. Good luck with debugging... How do you expect any help without showing any code and without posting full traceback? I simply give up.
Thank you for willing to help, but due to other problems with encoding as well, i decided not to use bottle but Flask instead.
Pages: 1 2