Re the netstd stuff: in general it should also run in Linux environments, and the normal stuff indeed does work.

No idea why that happens, but might be related to this:
https://stackoverflow.com/q/52599105/499466

=> THRIFT-5362

Can't say much about Python.

Have fun,
JensG




-----Ursprüngliche Nachricht----- From: Allen George
Sent: Monday, March 1, 2021 10:41 PM
To: dev@thrift.apache.org
Subject: Running cross tests in bionic docker environment

Hi -

Do I have to do anything special to run the python/dotnetstd cross tests in
the ubuntu-bionic docker environment?

For Python, I ask because although Python3 works totally fine, none of the
Python cross-test server/clients work at all. They fail with:

===============================================================================
Traceback (most recent call last):
 File "/thrift/src/test/py/TestServer.py", line 403, in <module>
   from thrift.TMultiplexedProcessor import TMultiplexedProcessor
 File
"/thrift/src/lib/py/build/lib.linux-x86_64-2.7/thrift/TMultiplexedProcessor.py",
line 20, in <module>
   from thrift.Thrift import TProcessor, TMessageType
ImportError: No module named Thrift

For netstd everything fails with:

===============================================================================
System.ComponentModel.Win32Exception (2): No such file or directory
  at System.Diagnostics.Process.ForkAndExecProcess(String filename,
String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean
redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32
userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd,
Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
  at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
  at System.Diagnostics.Process.Start()
  at Microsoft.DotNet.Cli.Utils.Command.Execute()
  at Microsoft.DotNet.Tools.Run.RunCommand.Execute()
  at Microsoft.DotNet.Tools.Run.RunCommand.Run(String[] args)
  at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry
telemetryClient)
  at Microsoft.DotNet.Cli.Program.Main(String[] args)

Is this only meant to run in Windows?

Thanks,
Allen

Reply via email to