Skip to content

Initialization exception on windows 7 #47

@iddl

Description

@iddl

Initializing datadogpy on windows7 results in the exception below.

Note: running python 3.4

Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    datadog.initialize()
  File "C:\Python34\lib\site-packages\datadog\__init__.py", line 59, in initialize
    api._host_name = host_name if host_name is not None else get_hostname()
  File "C:\Python34\lib\site-packages\datadog\util\hostname.py", line 52, in get_hostname
    config = get_config()
  File "C:\Python34\lib\site-packages\datadog\util\config.py", line 122, in get_config
    config_path = get_config_path(cfg_path, os_name=get_os())
  File "C:\Python34\lib\site-packages\datadog\util\config.py", line 101, in get_config_path
    return _windows_config_path()
  File "C:\Python34\lib\site-packages\datadog\util\config.py", line 68, in _windows_config_path
    common_data = _windows_commondata_path()
  File "C:\Python34\lib\site-packages\datadog\util\config.py", line 62, in _windows_commondata_path
    path_buf = wintypes.create_unicode_buffer(wintypes.MAX_PATH)
AttributeError: 'module' object has no attribute 'create_unicode_buffer'

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