Giter Site home page Giter Site logo

apm-python's People

Contributors

cheempz avatar dependabot[bot] avatar github-actions[bot] avatar kuerbis-martin avatar swi-jared avatar tammy-baylis-swi avatar web-flow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

classicvalues

apm-python's Issues

ImportError: cannot import name '_oboe' from 'solarwinds_apm.extension' on M2 MacBook Pro

Environment
2023 MacBook Pro
Apple M2 Max
Python 3.10.2

Steps to reproduce
requirements.txt

solarwinds-apm
flask

app.py

# Importing flask module in the project is mandatory
# An object of Flask class is our WSGI application.
from flask import Flask

# Flask constructor takes the name of
# current module (__name__) as argument.
app = Flask(__name__)

# The route() function of the Flask class is a decorator,
# which tells the application which URL should call
# the associated function.
@app.route('/')
# ‘/’ URL is bound with hello_world() function.
def hello_world():
    return 'Hello World'

# main driver function
if __name__ == '__main__':

    # run() method of Flask class runs the application
    # on the local development server.
    app.run()

Then

$ pip install -r requirements.txt
$ opentelemetry-bootstrap --action=install
$ opentelemetry-instrument python app.py

Expected behavior
Flask server starts up with otel instrumentation enabled

Actual behavior

Configuration of solarwinds_configurator failed
Traceback (most recent call last):
  File "/Users/mkoch/.pyenv/versions/3.10.2/lib/python3.10/site-packages/opentelemetry/instrumentation/auto_instrumentation/sitecustomize.py", line 105, in _load_configurators
    entry_point.load()().configure(auto_instrumentation_version=__version__)  # type: ignore
  File "/Users/mkoch/.pyenv/versions/3.10.2/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2450, in load
    return self.resolve()
  File "/Users/mkoch/.pyenv/versions/3.10.2/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2456, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/Users/mkoch/.pyenv/versions/3.10.2/lib/python3.10/site-packages/solarwinds_apm/configurator.py", line 38, in <module>
    from solarwinds_apm.apm_config import SolarWindsApmConfig
  File "/Users/mkoch/.pyenv/versions/3.10.2/lib/python3.10/site-packages/solarwinds_apm/apm_config.py", line 39, in <module>
    from solarwinds_apm.extension.oboe import Context
  File "/Users/mkoch/.pyenv/versions/3.10.2/lib/python3.10/site-packages/solarwinds_apm/extension/oboe.py", line 10, in <module>
    from . import _oboe
ImportError: cannot import name '_oboe' from 'solarwinds_apm.extension' (/Users/mkoch/.pyenv/versions/3.10.2/lib/python3.10/site-packages/solarwinds_apm/extension/__init__.py)
Failed to auto initialize opentelemetry
Traceback (most recent call last):
  File "/Users/mkoch/.pyenv/versions/3.10.2/lib/python3.10/site-packages/opentelemetry/instrumentation/auto_instrumentation/sitecustomize.py", line 121, in initialize
    _load_configurators()
  File "/Users/mkoch/.pyenv/versions/3.10.2/lib/python3.10/site-packages/opentelemetry/instrumentation/auto_instrumentation/sitecustomize.py", line 109, in _load_configurators
    raise exc
  File "/Users/mkoch/.pyenv/versions/3.10.2/lib/python3.10/site-packages/opentelemetry/instrumentation/auto_instrumentation/sitecustomize.py", line 105, in _load_configurators
    entry_point.load()().configure(auto_instrumentation_version=__version__)  # type: ignore
  File "/Users/mkoch/.pyenv/versions/3.10.2/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2450, in load
    return self.resolve()
  File "/Users/mkoch/.pyenv/versions/3.10.2/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2456, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/Users/mkoch/.pyenv/versions/3.10.2/lib/python3.10/site-packages/solarwinds_apm/configurator.py", line 38, in <module>
    from solarwinds_apm.apm_config import SolarWindsApmConfig
  File "/Users/mkoch/.pyenv/versions/3.10.2/lib/python3.10/site-packages/solarwinds_apm/apm_config.py", line 39, in <module>
    from solarwinds_apm.extension.oboe import Context
  File "/Users/mkoch/.pyenv/versions/3.10.2/lib/python3.10/site-packages/solarwinds_apm/extension/oboe.py", line 10, in <module>
    from . import _oboe
ImportError: cannot import name '_oboe' from 'solarwinds_apm.extension' (/Users/mkoch/.pyenv/versions/3.10.2/lib/python3.10/site-packages/solarwinds_apm/extension/__init__.py)
 * Serving Flask app 'app'
 * Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on http://127.0.0.1:5000
Press CTRL+C to quit
^C%

Additional context
None

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.