Hi Lidi

The working directory is the repo root dir.

Ioannis

From: Lidi Zheng <[email protected]>
Sent: Thursday, 22 August 2019 19:39
To: Ioannis Vogiatzis Oikonomidis <[email protected]>; 
grpc.io <[email protected]>
Subject: Re: [grpc-io] Re: grpcio wheel build

Hi Ioannis,

This error doesn't look like a bug in the installation process.
This failure is in the compilation of grpcio-tools package.
Can you check the working directory for your IDE, and the relative path of that 
file?
It seems somewhere in the settings is wrong.

Lidi

On Thu, Aug 22, 2019 at 1:08 AM Ioannis Vogiatzis Oikonomidis 
<[email protected]<mailto:[email protected]>>
 wrote:
Yes the Core build succeeds.

The command that fails is the following (it is running under a build agent)
$(Build.BinariesDirectory)\python\CPython\$(PythonVersionShort)\winx64\Release\python\python.exe
 -VVV setup.py  --prefix=$(Build.SourcesDirectory) build_ext -c msvc -vvv || 
goto :error

Before calling the command I am modifying the PATH and adding the protobuf 
c-core build
** Visual Studio 2017 Developer Command Prompt v15.8.5
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
Environment initialized for: 'x64'
Python 3.6.7 (heads/python_3.6.7_vs2017-dirty:cdc6a0e, May 28 2019, 15:50:17) 
[MSC v.1910 64 bit (AMD64)]
Python 3.6.7 (heads/python_3.6.7_vs2017-dirty:cdc6a0e, May 28 2019, 15:50:17) 
[MSC v.1910 64 bit (AMD64)]
Compiling grpc_tools\_protoc_compiler.pyx because it changed.
Cythonizing grpc_tools\_protoc_compiler.pyx
C:\Dev\tfs_agent\_work\57\b\python\CPython\3_6\winx64\Release\python\lib\site-packages\Cython\Compiler\Main.py:369:
 FutureWarning: Cython directive 'language_level' not set, using 2 for now 
(Py2). This will change in a later release! File: 
C:\Dev\tfs_agent\_work\57\s\tools\distrib\python\grpcio_tools\grpc_tools\_protoc_compiler.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
Traceback (most recent call last):
  File "setup.py", line 209, in <module>
    package_data=package_data(),
  File "setup.py", line 155, in package_data
    shutil.copy(source, target)
  File 
"C:\Dev\tfs_agent\_work\57\b\python\CPython\3_6\winx64\Release\python\lib\shutil.py",
 line 241, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File 
"C:\Dev\tfs_agent\_work\57\b\python\CPython\3_6\winx64\Release\python\lib\shutil.py",
 line 120, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: 
'third_party\\protobuf\\src\\google\\protobuf\\wrappers.proto'


From: 'Lidi Zheng' via grpc.io<http://grpc.io> 
<[email protected]<mailto:[email protected]>>
Sent: Wednesday, 21 August 2019 22:45
To: grpc.io<http://grpc.io> 
<[email protected]<mailto:[email protected]>>
Subject: Re: [grpc-io] Re: grpcio wheel build

Did the C-Core build succeed? Can you provide specific command and logs?

On Wednesday, August 21, 2019 at 12:40:11 PM UTC-7, Ioannis Vogiatzis 
Oikonomidis wrote:
Yes I did. The files are there.I checked.
I more or less copy pasted the build scripts from the links
________________________________
From: 'Lidi Zheng' via grpc.io<http://grpc.io> 
<[email protected]<mailto:[email protected]>>
Sent: Wednesday, August 21, 2019 8:06:17 PM
To: grpc.io<http://grpc.io> 
<[email protected]<mailto:[email protected]>>
Subject: [grpc-io] Re: grpcio wheel build

Did you pull in the submodules?

    git submodule update --init

It looks like those third_party files are missing.

On Friday, August 16, 2019 at 8:28:19 AM UTC-7, 
[email protected]<mailto:[email protected]> wrote:
I am trying to build grpcio against an already build protobuf version

I am first building grpc core according to these instructions
https://github.com/grpc/grpc/blob/e6cd312346655d9a936acfb97927dbcd35615623/test/distrib/cpp/run_distrib_test_cmake.bat

then I am moving on to the wheel build according to these instructions
https://github.com/grpc/grpc/blob/7f32b96e3d9093dff6f0584ad605a2f10a744ec8/tools/run_tests/artifacts/build_artifact_python.bat

However the build keeps failing (with or without cython) with the following 
error
[Errno 2] No such file or directory: 
'third_party\\protobuf\\src\\google\\protobuf\\wrappers.proto'

My build tooldchain is the following:
- MSVC 2017
- Python 3.6
- setuptools  40.8.0
- cython 0.29.13

--
You received this message because you are subscribed to a topic in the Google 
Groups "grpc.io<http://grpc.io>" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/grpc-io/brh7Jj7Dso0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/cd77608f-6628-40bd-a852-ce147e681738%40googlegroups.com<https://groups.google.com/d/msgid/grpc-io/cd77608f-6628-40bd-a852-ce147e681738%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to a topic in the Google 
Groups "grpc.io<http://grpc.io>" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/grpc-io/brh7Jj7Dso0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/b6ba10d0-5005-44c9-b36f-bb02cccc3bbb%40googlegroups.com<https://groups.google.com/d/msgid/grpc-io/b6ba10d0-5005-44c9-b36f-bb02cccc3bbb%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/MN2PR01MB59524F55CB91B59EA7D3BF0B8BA40%40MN2PR01MB5952.prod.exchangelabs.com.

Reply via email to