missing pymysql and SQLAlchemy in requirements.txt

Bug #1826646 reported by Radoslaw Smigielski
This bug affects 1 person
Affects Status Importance Assigned to Milestone
In Progress
Radoslaw Smigielski

Bug Description

When you try install osprofiler in isolated virtual env or separate container, the installation will complete but first time you run osprofiler you will end up with below error:

$ osprofiler trace show --connection-string mysql+pymysql://profiler:password@[fd00:f00c::c0a8:e06]/profiler --html e76f4cfe-75e5-4a9a-af20-bbe1edd7c164
To use this command, install 'SQLAlchemy'
Traceback (most recent call last):
  File "/home/radek/tmp/venv3-osprofiler2/lib64/python3.6/site-packages/osprofiler/drivers/sqlalchemy_driver.py", line 33, in __init__
    from sqlalchemy import create_engine
ModuleNotFoundError: No module named 'sqlalchemy'
Failed to create engine/connection and setup intial database tables
Traceback (most recent call last):
  File "/home/radek/tmp/venv3-osprofiler2/lib64/python3.6/site-packages/osprofiler/drivers/sqlalchemy_driver.py", line 62, in __init__
    self._engine = create_engine(connection_str)
UnboundLocalError: local variable 'create_engine' referenced before assignment
To use this command, you should install 'SQLAlchemy'

The problem is missing:
in requirements.txt file.

Changed in osprofiler:
assignee: nobody → Radoslaw Smigielski (radoslaw-smigielski)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to osprofiler (master)

Fix proposed to branch: master
Review: https://review.opendev.org/656056

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on osprofiler (master)

Change abandoned by Stephen Finucane (<email address hidden>) on branch: master
Review: https://review.opendev.org/656056
Reason: -W for quite some time. I'm going to abandon to keep our review queue sane

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.