Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build wheel (whl is required, no other workable install options) #29

Open
Jeff-Winchell opened this issue Mar 22, 2020 · 2 comments

Comments

@Jeff-Winchell
Copy link

  1. First an apparent error in one of your files:
    The pycld2.egg-info\SOURCES.txt file has references to files that begin with /home/rmyeid/code/pycld2/ instead of relative paths which breaks an attempt to run 
    python setup.py sdist bdist_wheel
    This problem is in the file pycld2-0.41.tar.gz 

  2. After removing those strings I got further, but something else incorrect as it errored out with this error dump:
    C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Temp\pycld2\pycld2-0.41\cld2\internal -IC:\Temp\pycld2\pycld2-0.41\cld2\public "-IC:\Program Files\Microsoft\PyForMLS\include" "-IC:\Program Files\Microsoft\PyForMLS\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" /EHsc /TpC:\Temp\pycld2\pycld2-0.41\cld2\internal/cld2_generated_cjk_compatible.cc /Fobuild\temp.win-amd64-3.5\Release\Temp\pycld2\pycld2-0.41\cld2\internal/cld2_generated_cjk_compatible.obj -w -O2 -m64 -fPIC

cl : Command line error D8003 : missing source filename

@bsolomon1124
Copy link
Contributor

@aboSamoor I believe several of the open issues should be solved by uploading version 0.42 to PyPI, but the latest version there is 0.41. I do not have access to do that; would you be willing to do so or to give access via PyPI?

More info here: #23 (comment)

@Jeff-Winchell
Copy link
Author

Background. I wanted to do a simple pip install as is listed in your docs, but that generated an error based on a hard-coded path in your source (referencing /home/rmyeid/code/pycld2)

  File "C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\PYTHON_SERVICES\lib\distutils\util.py", line 110, in convert_path
    raise ValueError("path '%s' cannot be absolute" % pathname)
ValueError: path '/home/rmyeid/code/pycld2/bindings/encodings.cc' cannot be absolute

----------------------------------------

Command ""C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\PYTHON_SERVICES\python.exe" -u -c "import setuptools, tokenize;file='C:\Users\jeffw\AppData\Local\Temp\pip-install-hg1wsz2i\pycld2\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\jeffw\AppData\Local\Temp\pip-record-rexd5inq\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\jeffw\AppData\Local\Temp\pip-install-hg1wsz2i\pycld2\

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants