cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

EF2 migration problem with paramiko dependency

AntonioSousa
DynaMight Guru
DynaMight Guru

I have an EF1 extension that I'm trying to migrate to EF2. It has a dependency on paramiko. If I include it into setup.py, what I should, the error below appears. Why?

{
  "error": [
    "",
    "[notice] A new release of pip is available: 24.1.1 -> 24.2",
    "[notice] To update, run: python.exe -m pip install --upgrade pip",
    "ERROR: Cannot install extensionA because these package versions have conflicting dependencies.",
    "ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts",
    "",
    "[notice] A new release of pip is available: 24.1.1 -> 24.2",
    "[notice] To update, run: python.exe -m pip install --upgrade pip",
    "Traceback (most recent call last):",
    "  File \"C:\\Users\\vboxuser\\AppData\\Local\\Programs\\Python\\Python310\\lib\\runpy.py\", line 196, in _run_module_as_main",
    "    return _run_code(code, main_globals, None,",
    "  File \"C:\\Users\\vboxuser\\AppData\\Local\\Programs\\Python\\Python310\\lib\\runpy.py\", line 86, in _run_code",
    "    exec(code, run_globals)",
    "  File \"C:\\Users\\vboxuser\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\dt-sdk.exe\\__main__.py\", line 7, in <module>",
    "  File \"C:\\Users\\vboxuser\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\typer\\main.py\", line 326, in __call__",
    "    raise e",
    "  File \"C:\\Users\\vboxuser\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\typer\\main.py\", line 309, in __call__",
    "    return get_command(self)(*args, **kwargs)",
    "  File \"C:\\Users\\vboxuser\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\click\\core.py\", line 1157, in __call__",
    "    return self.main(*args, **kwargs)",
    "  File \"C:\\Users\\vboxuser\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\typer\\core.py\", line 723, in main",
    "    return _main(",
    "  File \"C:\\Users\\vboxuser\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\typer\\core.py\", line 193, in _main",
    "    rv = self.invoke(ctx)",
    "  File \"C:\\Users\\vboxuser\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\click\\core.py\", line 1688, in invoke",
    "    return _process_result(sub_ctx.command.invoke(sub_ctx))",
    "  File \"C:\\Users\\vboxuser\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\click\\core.py\", line 1434, in invoke",
    "    return ctx.invoke(self.callback, **ctx.params)",
    "  File \"C:\\Users\\vboxuser\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\click\\core.py\", line 783, in invoke",
    "    return __callback(*args, **kwargs)",
    "  File \"C:\\Users\\vboxuser\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\typer\\main.py\", line 692, in wrapper",
    "    return callback(**use_params)",
    "  File \"C:\\Users\\vboxuser\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\dynatrace_extension\\cli\\main.py\", line 114, in build",
    "    wheel(extension_dir, extra_platforms, extra_index_url, find_links)",
    "  File \"C:\\Users\\vboxuser\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\dynatrace_extension\\cli\\main.py\", line 227, in wheel",
    "    run_process(command, cwd=extension_dir)",
    "  File \"C:\\Users\\vboxuser\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\dynatrace_extension\\cli\\main.py\", line 410, in run_process",
    "    return subprocess.run(command, cwd=cwd, env=env, check=True)  # noqa: S603",
    "  File \"C:\\Users\\vboxuser\\AppData\\Local\\Programs\\Python\\Python310\\lib\\subprocess.py\", line 526, in run",
    "    raise CalledProcessError(retcode, process.args,",
    "subprocess.CalledProcessError: Command '['C:\\\\Users\\\\vboxuser\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Python310\\\\python.exe', '-m', 'pip', 'download', '-d', 'extension/lib', '--only-binary=:all:', '--platform', 'linux_x86_64', '.']' returned non-zero exit status 1.",
    ""
  ],
  "detailedOutput": [
    "+"
  ]
}

 

Antonio Sousa
3 REPLIES 3

david_lopes
Dynatrace Mentor
Dynatrace Mentor

Paramiko doesn't exist for linux_x86_64, you need to use the manylinux2014_x86_64 platform. I assume that error is coming out the VSCode extension, if so you can set the platform as documented here

@david_lopes,

I have managed to solve the issue: compiled it in a Linux environment 😁

Just curios, if most of our clients/AG installed base, run on Linux, is it a safer bet to develop in a Linux environment?

Antonio Sousa

We use mostly windows but use the —extra-platform option to build for both, this way we always guarantee it works for customers on both operating systems 

 

but yes most AGs will be linux

Featured Posts