getappmap / getappmap/appmap-python

Error generating maps for the FlaskBB project

Open
#157 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
104
Forks
17
PR merge metrics
No merged PRs in 30d

Description

Following the instructions on https://github.com/flaskbb/flaskbb/ and on https://github.com/flaskbb/flaskbb/blob/master/CONTRIBUTING.md, I get the FlaskBB system set up. Running py.test shows all tests passing 100% clean. Then Installed appmap agent, which went fine.

Then when I re-ran the tests with APPMAP=true, it failed with:

<snip>
File "/Users/brikelly/.pyenv/versions/3.10.4/lib/python3.10/site-packages/appmap/flask.py", line 146, in <module>
flask.cli.call_factory = wrap_cli_fn(flask.cli.call_factory)
AttributeError: module 'flask.cli' has no attribute 'call_factory'

I am using Python 3.10.4 and verified the same issue with 3.9.12 too.

I was able to get past the error by pinning the app to use an older version of Flask (2.0.1), but a variety of the tests still failed.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by following CONTRIBUTING.md, running the passing test suite, and rerunning it with APPMAP=true on Python 3.9 or 3.10. Inspect the traceback at appmap/flask.py:146 and compare the installed Flask version with the agent's Flask integration; done means the instrumented test run no longer raises this error and its tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
flask, python
Domain
backend, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.