Skip to content

skywalking-python not working for python3.6.9 #4917

@chestarss

Description

@chestarss

Please answer these questions before submitting your issue.

  • Why do you submit this issue?
  • Question or discussion
  • Bug
  • Requirement
  • Feature or performance improvement

Question

  • What do you want to know?

Bug

  • What happen?
    python version: 3.6.9

pip install git+https://github.com/apache/skywalking-python.git

Python 3.6.9 (default, Mar  1 2020, 00:31:53) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.13.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from skywalking import agent, config                                                     

In [2]: config.init(collector='trace-skywalking.domain.name:11800', service='serviceName')       

In [3]: agent.start()                                                                            
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-3-f3901e7909d2> in <module>
----> 1 agent.start()

~/vscode/python/venv/opssaas_py36/lib/python3.6/site-packages/skywalking/agent/__init__.py in start()
     74     loggings.init()
     75     __started = True
---> 76     __init()
     77     __heartbeat_thread.start()
     78     __report_thread.start()

~/vscode/python/venv/opssaas_py36/lib/python3.6/site-packages/skywalking/agent/__init__.py in __init()
     58     global __protocol
     59     if config.protocol == 'grpc':
---> 60         from skywalking.agent.protocol.grpc import GrpcProtocol
     61         __protocol = GrpcProtocol()
     62     elif config.protocol == 'http':

~/vscode/python/venv/opssaas_py36/lib/python3.6/site-packages/skywalking/agent/protocol/grpc/__init__.py in <module>
     21 import grpc
     22 
---> 23 from common.Common_pb2 import KeyStringValuePair
     24 from language_agent.Tracing_pb2 import SegmentObject, SpanObject, Log, SegmentReference
     25 from skywalking import config

ModuleNotFoundError: No module named 'common'

Requirement or improvement

  • Please describe about your requirements or improvement suggestions.

Metadata

Metadata

Assignees

Labels

pythonPython agent relatedwontfixThis will not be worked on

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions