Skip to content
This repository was archived by the owner on Jun 2, 2021. It is now read-only.
This repository was archived by the owner on Jun 2, 2021. It is now read-only.

Python 3 and urlparse import #39

@helgi

Description

@helgi
newrelic-python-agent
Traceback (most recent call last):
  File "/usr/local/bin/newrelic-python-agent", line 11, in <module>
    load_entry_point('newrelic-python-agent==1.3.0', 'console_scripts', 'newrelic-python-agent')()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 480, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2693, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2324, in load
    return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2330, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python3.6/dist-packages/newrelic_python_agent/agent.py", line 24, in <module>
    import newrelic_python_agent.plugins.base as base
  File "/usr/local/lib/python3.6/dist-packages/newrelic_python_agent/plugins/base.py", line 12, in <module>
    import urlparse
ModuleNotFoundError: No module named 'urlparse'

In python 3 urlparse has been renamed; six should include a workaround or a simple if/else for the import will fix things

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions