djc
Advanced Member level 1
Hello All,
I want to create an android application using kivy and pycharm ide. For that I am trying to install pyjnius in pycharm. I am using python 3.6.4, and visual studio 2017. However this is the error it is giving
And this is the detailed error description.
I could not understand what it is actually trying to tell. Because I am totally new to this software language. Can anybody please tell me what to do?
I want to create an android application using kivy and pycharm ide. For that I am trying to install pyjnius in pycharm. I am using python 3.6.4, and visual studio 2017. However this is the error it is giving
Code:
"error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\link.exe' failed with exit status 1120"
And this is the detailed error description.
Code:
Collecting pyjnius
Using cached https://files.pythonhosted.org/packages/b6/57/c90acf31322e6417f06c90410dbfcb149633a6006b7efbf99dfebe177c1f/pyjnius-1.2.0.tar.gz
Requirement already satisfied: six>=1.7.0 in c:\python36-32\lib\site-packages (from pyjnius) (1.12.0)
Requirement already satisfied: cython in c:\python36-32\lib\site-packages (from pyjnius) (0.29.6)
Installing collected packages: pyjnius
Running setup.py install for pyjnius: started
Running setup.py install for pyjnius: finished with status 'error'
Complete output from command C:\Python36-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\lenovo\\AppData\\Local\\Temp\\pycharm-packaging\\pyjnius\\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\lenovo\AppData\Local\Temp\pip-record-625zra8s\install-record.txt --single-version-externally-managed --compile:
C:\Program Files\Java\jdk1.8.0_201
WARNING: Not able to assign machine() = AMD64 to a cpu value!
Using cpu = 'i386' instead!
JDK_HOME: C:\Program Files\Java\jdk1.8.0_201
JRE_HOME: C:\Program Files\Java\jdk1.8.0_201\jre
warning: [options] bootstrap class path not set in conjunction with -source 1.6
1 warning
running install
running build
running build_py
creating build
creating build\lib.win32-3.6
copying jnius_config.py -> build\lib.win32-3.6
creating build\lib.win32-3.6\jnius
copying jnius\reflect.py -> build\lib.win32-3.6\jnius
copying jnius\signatures.py -> build\lib.win32-3.6\jnius
copying jnius\__init__.py -> build\lib.win32-3.6\jnius
creating build\lib.win32-3.6\jnius\src
creating build\lib.win32-3.6\jnius\src\org
creating build\lib.win32-3.6\jnius\src\org\jnius
copying jnius\src\org\jnius\NativeInvocationHandler.class -> build\lib.win32-3.6\jnius\src\org\jnius
copying jnius\src\org\jnius\NativeInvocationHandler.java -> build\lib.win32-3.6\jnius\src\org\jnius
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
cythoning jnius\jnius.pyx to jnius\jnius.c
C:\Python36-32\lib\site-packages\Cython\Compiler\Main.py:367: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\lenovo\AppData\Local\Temp\pycharm-packaging\pyjnius\jnius\jnius.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
building 'jnius' extension
creating build\temp.win32-3.6
creating build\temp.win32-3.6\Release
creating build\temp.win32-3.6\Release\jnius
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-IC:\Program Files\Java\jdk1.8.0_201\include" "-IC:\Program Files\Java\jdk1.8.0_201\include\win32" -IC:\Python36-32\include -IC:\Python36-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-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" /Tcjnius\jnius.c /Fobuild\temp.win32-3.6\Release\jnius\jnius.obj
jnius.c
jnius\jnius.c(2434): warning C4273: 'JNI_CreateJavaVM': inconsistent dll linkage
C:\Program Files\Java\jdk1.8.0_201\include\jni.h(1938): note: see previous definition of 'JNI_CreateJavaVM'
jnius\jnius.c(4156): warning C4047: 'function': 'void **' differs in levels of indirection from 'JNIEnv **'
jnius\jnius.c(4156): warning C4022: 'function through pointer': pointer mismatch for actual parameter 2
jnius\jnius.c(8986): warning C4244: '=': conversion from 'long' to 'jchar', possible loss of data
jnius\jnius.c(11144): warning C4090: '=': different 'const' qualifiers
jnius\jnius.c(13756): warning C4244: '=': conversion from 'long' to 'jchar', possible loss of data
jnius\jnius.c(14594): warning C4244: '=': conversion from 'long' to 'jchar', possible loss of data
jnius\jnius.c(20842): warning C4047: '=': 'jobject' differs in levels of indirection from 'jobject *'
jnius\jnius.c(20851): warning C4047: '=': 'jobject' differs in levels of indirection from 'jclass *'
jnius\jnius.c(36010): warning C4090: '=': different 'const' qualifiers
jnius\jnius.c(36019): warning C4090: '=': different 'const' qualifiers
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO "/LIBPATH:C:\Program Files\Java\jdk1.8.0_201\lib" "/LIBPATH:C:\Program Files\Java\jdk1.8.0_201\bin\server" /LIBPATH:C:\Python36-32\libs /LIBPATH:C:\Python36-32\PCbuild\win32 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\lib\x86" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\lib\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x86" jvm.lib /EXPORT:PyInit_jnius build\temp.win32-3.6\Release\jnius\jnius.obj /OUT:build\lib.win32-3.6\jnius\jnius.cp36-win32.pyd /IMPLIB:build\temp.win32-3.6\Release\jnius\jnius.cp36-win32.lib
Creating library build\temp.win32-3.6\Release\jnius\jnius.cp36-win32.lib and object build\temp.win32-3.6\Release\jnius\jnius.cp36-win32.exp
jnius.obj : error LNK2001: unresolved external symbol _JNI_CreateJavaVM@12
build\lib.win32-3.6\jnius\jnius.cp36-win32.pyd : fatal error LNK1120: 1 unresolved externals
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x86\\link.exe' failed with exit status 1120
----------------------------------------
Command "C:\Python36-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\lenovo\\AppData\\Local\\Temp\\pycharm-packaging\\pyjnius\\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\lenovo\AppData\Local\Temp\pip-record-625zra8s\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\lenovo\AppData\Local\Temp\pycharm-packaging\pyjnius\
I could not understand what it is actually trying to tell. Because I am totally new to this software language. Can anybody please tell me what to do?