question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cython flask takes no keyword arguments when get uri segment

See original GitHub issue

hi, i have a route something like this :

@app.route("/xxx-detail/<gid>")
def xxx_detail(gid):
    return render_template("xxx_detail.html")

idk, but when i use cython, i got error :

TypeError: ontology_detail() takes no keyword arguments

but it’s work fine with python interpreter, thank you !

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

15reactions
yzfedoracommented, Mar 28, 2018

@TeamSpen210 Same problem when compiling flask URI converter source code into “.so” extension, “always_allow_keywords” is working. you can add the flags to setup.py, this is how my setup.py looks like:

setup(
    name='web',
    ext_modules=cythonize(modules, compiler_directives={'always_allow_keywords': True})
)
6reactions
scodercommented, Mar 10, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Flask url with only one parameter is not processed
You need to set the always_allow_keywords option as suggested here from setuptools import setup from Cython.Build import cythonize setup( ...
Read more >
Introduction - · python-data
Note : Be sure to download the Python 3, not 2, and get the correct ... Most plotting functions allow you to specify...
Read more >
Speed Up Your Python Program With Concurrency
Learn what concurrency means in Python and why you might want to use it. You'll see a simple, non-concurrent approach and then look...
Read more >
Bug listing with status RESOLVED with resolution OBSOLETE ...
... net-device has no symlink to the driver (vmware's vmxnet and other)" status:RESOLVED ... Bug:244517 - "sys-apps/man-db keyword request" status:RESOLVED ...
Read more >
Changes — Jinja Documentation (3.1.x)
Windows drive-relative path segments in template names will not result in FileSystemLoader and ... |groupby filter takes an optional default argument.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found