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

I try to install jep in my computer, but it is not runing. #526

Open
Virtuoso461 opened this issue Apr 4, 2024 · 1 comment
Open

I try to install jep in my computer, but it is not runing. #526

Virtuoso461 opened this issue Apr 4, 2024 · 1 comment

Comments

@Virtuoso461
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Include a small Java class with a main method that produces the error or a specific sequence of commands that can be run from the jep interactive console. If your problem involves a specific Python module then please indicate if it is possible for you to import that module from the jep interactive console.

Expected behavior
A clear and concise description of what you expected to happen.

Environment (please complete the following information):

  • OS Platform, Distribution, and Version:
  • Python Distribution and Version:
  • Java Distribution and Version:
  • Jep Version:
  • Python packages used (e.g. numpy, pandas, tensorflow):

Additional context
Add any other context about the problem here.

@Virtuoso461
Copy link
Author

OS:WIndows
Python Version:3.10
Java Version:17.03

The error message:
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [101 lines of output]
numpy include found at E:\Python3.10.4\lib\site-packages\numpy\core\include
running bdist_wheel
running build
running setup_java
Using JAVA_HOME: E:\Java\JDK\jdk17
running build_java
E:\Java\JDK\jdk17\bin\javac -deprecation -d build\java -h build\include -classpath src src\main\java\jep\AbstractNDArray.java src\main\java\jep\ClassEnquirer.java src\main\java\jep\ClassList.java src\main\java\jep\DirectNDArray.java src\main\java\jep\Interpreter.java src\main\java\jep\Jep.java src\mai
n\java\jep\JepAccess.java src\main\java\jep\JepConfig.java src\main\java\jep\JepException.java src\main\java\jep\LibraryLocator.java src\main\java\jep\MainInterpreter.java src\main\java\jep\NamingConventionClassEnquirer.java src\main\java\jep\NDArray.java src\main\java\jep\Proxy.java src\main\java\jep\PyCon
fig.java src\main\java\jep\PyMethod.java src\main\java\jep\Run.java src\main\java\jep\SharedInterpreter.java src\main\java\jep\SubInterpreter.java src\main\java\jep\SubInterpreterOptions.java src\main\java\jep\python\InvocationHandler.java src\main\java\jep\python\MemoryManager.java src\main\java\jep\python\PyBuiltins.java src\main\java\jep\python\PyCallable.java src\main\java\jep\python\PyObject.java src\main\java\jep\python\PyPointer.java
E:\Java\JDK\jdk17\bin\javac -deprecation -d build\java\test -classpath build\java;src src\test\java\jep\test\Test.java src\test\java\jep\test\TestCloseWithThreads.java src\test\java\jep\test\TestCompiledScript.java src\test\java\jep\test\TestDefaultMethods.java src\test\java\jep\test\TestExceptionCaus
e.java src\test\java\jep\test\TestExec.java src\test\java\jep\test\TestGetByteArray.java src\test\java\jep\test\TestGetCollectionBoxing.java src\test\java\jep\test\TestGetJPyObject.java src\test\java\jep\test\TestGetTempValue.java src\test\java\jep\test\TestGetWithClass.java src\test\java\jep\test\TestInvok
e.java src\test\java\jep\test\TestIteratorable.java src\test\java\jep\test\TestOverload.java src\test\java\jep\test\TestPreInitVariables.java src\test\java\jep\test\TestPyBuiltins.java src\test\java\jep\test\TestPyJObject.java src\test\java\jep\test\TestPyJType.java src\test\java\jep\test\TestRedirectStream
s.java src\test\java\jep\test\TestSharedArgv.java src\test\java\jep\test\TestSharedInterpreter.java src\test\java\jep\test\TestSharedModules.java src\test\java\jep\test\TestSharedModulesThreads.java src\test\java\jep\test\TestSubInterpOptions.java src\test\java\jep\test\closeable\TestAutoCloseable.java src
test\java\jep\test\numpy\TestNumpy.java src\test\java\jep\test\numpy\TestNumpyArrayToString.java src\test\java\jep\test\numpy\TestNumpyProdShared.java src\test\java\jep\test\synchronization\TestCrossLangSync.java src\test\java\jep\test\types\TestFieldTypes.java src\test\java\jep\test\types\TestMethodTypes.java src\test\java\jep\test\types\TestStaticFieldTypes.java src\test\java\jep\test\types\TestStaticMethodTypes.java
copying src\main\java\jep\AbstractNDArray.java to build\java\jep.src\main\java\jep\AbstractNDArray.java
copying src\main\java\jep\ClassEnquirer.java to build\java\jep.src\main\java\jep\ClassEnquirer.java
copying src\main\java\jep\ClassList.java to build\java\jep.src\main\java\jep\ClassList.java
copying src\main\java\jep\DirectNDArray.java to build\java\jep.src\main\java\jep\DirectNDArray.java
copying src\main\java\jep\Interpreter.java to build\java\jep.src\main\java\jep\Interpreter.java
copying src\main\java\jep\Jep.java to build\java\jep.src\main\java\jep\Jep.java
copying src\main\java\jep\JepAccess.java to build\java\jep.src\main\java\jep\JepAccess.java
copying src\main\java\jep\JepConfig.java to build\java\jep.src\main\java\jep\JepConfig.java
copying src\main\java\jep\JepException.java to build\java\jep.src\main\java\jep\JepException.java
copying src\main\java\jep\LibraryLocator.java to build\java\jep.src\main\java\jep\LibraryLocator.java
copying src\main\java\jep\MainInterpreter.java to build\java\jep.src\main\java\jep\MainInterpreter.java
copying src\main\java\jep\NamingConventionClassEnquirer.java to build\java\jep.src\main\java\jep\NamingConventionClassEnquirer.java
copying src\main\java\jep\NDArray.java to build\java\jep.src\main\java\jep\NDArray.java
copying src\main\java\jep\Proxy.java to build\java\jep.src\main\java\jep\Proxy.java
copying src\main\java\jep\PyConfig.java to build\java\jep.src\main\java\jep\PyConfig.java
copying src\main\java\jep\PyMethod.java to build\java\jep.src\main\java\jep\PyMethod.java
copying src\main\java\jep\Run.java to build\java\jep.src\main\java\jep\Run.java
copying src\main\java\jep\SharedInterpreter.java to build\java\jep.src\main\java\jep\SharedInterpreter.java
copying src\main\java\jep\SubInterpreter.java to build\java\jep.src\main\java\jep\SubInterpreter.java
copying src\main\java\jep\SubInterpreterOptions.java to build\java\jep.src\main\java\jep\SubInterpreterOptions.java
copying src\main\java\jep\python\InvocationHandler.java to build\java\jep.src\main\java\jep\python\InvocationHandler.java
copying src\main\java\jep\python\MemoryManager.java to build\java\jep.src\main\java\jep\python\MemoryManager.java
copying src\main\java\jep\python\PyBuiltins.java to build\java\jep.src\main\java\jep\python\PyBuiltins.java
copying src\main\java\jep\python\PyCallable.java to build\java\jep.src\main\java\jep\python\PyCallable.java
copying src\main\java\jep\python\PyObject.java to build\java\jep.src\main\java\jep\python\PyObject.java
copying src\main\java\jep\python\PyPointer.java to build\java\jep.src\main\java\jep\python\PyPointer.java
copying src\test\java\jep\test\Test.java to build\java\jep.test.src\test\java\jep\test\Test.java
copying src\test\java\jep\test\TestCloseWithThreads.java to build\java\jep.test.src\test\java\jep\test\TestCloseWithThreads.java
copying src\test\java\jep\test\TestCompiledScript.java to build\java\jep.test.src\test\java\jep\test\TestCompiledScript.java
copying src\test\java\jep\test\TestDefaultMethods.java to build\java\jep.test.src\test\java\jep\test\TestDefaultMethods.java
copying src\test\java\jep\test\TestExceptionCause.java to build\java\jep.test.src\test\java\jep\test\TestExceptionCause.java
copying src\test\java\jep\test\TestExec.java to build\java\jep.test.src\test\java\jep\test\TestExec.java
copying src\test\java\jep\test\TestGetByteArray.java to build\java\jep.test.src\test\java\jep\test\TestGetByteArray.java
copying src\test\java\jep\test\TestGetCollectionBoxing.java to build\java\jep.test.src\test\java\jep\test\TestGetCollectionBoxing.java
copying src\test\java\jep\test\TestGetJPyObject.java to build\java\jep.test.src\test\java\jep\test\TestGetJPyObject.java
copying src\test\java\jep\test\TestGetTempValue.java to build\java\jep.test.src\test\java\jep\test\TestGetTempValue.java
copying src\test\java\jep\test\TestGetWithClass.java to build\java\jep.test.src\test\java\jep\test\TestGetWithClass.java
copying src\test\java\jep\test\TestInvoke.java to build\java\jep.test.src\test\java\jep\test\TestInvoke.java
copying src\test\java\jep\test\TestIteratorable.java to build\java\jep.test.src\test\java\jep\test\TestIteratorable.java
copying src\test\java\jep\test\TestOverload.java to build\java\jep.test.src\test\java\jep\test\TestOverload.java
copying src\test\java\jep\test\TestPreInitVariables.java to build\java\jep.test.src\test\java\jep\test\TestPreInitVariables.java
copying src\test\java\jep\test\TestPyBuiltins.java to build\java\jep.test.src\test\java\jep\test\TestPyBuiltins.java
copying src\test\java\jep\test\TestPyJObject.java to build\java\jep.test.src\test\java\jep\test\TestPyJObject.java
copying src\test\java\jep\test\TestPyJType.java to build\java\jep.test.src\test\java\jep\test\TestPyJType.java
copying src\test\java\jep\test\TestRedirectStreams.java to build\java\jep.test.src\test\java\jep\test\TestRedirectStreams.java
copying src\test\java\jep\test\TestSharedArgv.java to build\java\jep.test.src\test\java\jep\test\TestSharedArgv.java
copying src\test\java\jep\test\TestSharedInterpreter.java to build\java\jep.test.src\test\java\jep\test\TestSharedInterpreter.java
copying src\test\java\jep\test\TestSharedModules.java to build\java\jep.test.src\test\java\jep\test\TestSharedModules.java
copying src\test\java\jep\test\TestSharedModulesThreads.java to build\java\jep.test.src\test\java\jep\test\TestSharedModulesThreads.java
copying src\test\java\jep\test\TestSubInterpOptions.java to build\java\jep.test.src\test\java\jep\test\TestSubInterpOptions.java
copying src\test\java\jep\test\closeable\TestAutoCloseable.java to build\java\jep.test.src\test\java\jep\test\closeable\TestAutoCloseable.java
copying src\test\java\jep\test\numpy\TestNumpy.java to build\java\jep.test.src\test\java\jep\test\numpy\TestNumpy.java
copying src\test\java\jep\test\numpy\TestNumpyArrayToString.java to build\java\jep.test.src\test\java\jep\test\numpy\TestNumpyArrayToString.java
copying src\test\java\jep\test\numpy\TestNumpyProdShared.java to build\java\jep.test.src\test\java\jep\test\numpy\TestNumpyProdShared.java
copying src\test\java\jep\test\synchronization\TestCrossLangSync.java to build\java\jep.test.src\test\java\jep\test\synchronization\TestCrossLangSync.java
copying src\test\java\jep\test\types\TestFieldTypes.java to build\java\jep.test.src\test\java\jep\test\types\TestFieldTypes.java
copying src\test\java\jep\test\types\TestMethodTypes.java to build\java\jep.test.src\test\java\jep\test\types\TestMethodTypes.java
copying src\test\java\jep\test\types\TestStaticFieldTypes.java to build\java\jep.test.src\test\java\jep\test\types\TestStaticFieldTypes.java
copying src\test\java\jep\test\types\TestStaticMethodTypes.java to build\java\jep.test.src\test\java\jep\test\types\TestStaticMethodTypes.java
running build_jar
copying src/main/resources/jep/classlist_8.txt to build/java/jep
copying src/main/resources/jep/classlist_9.txt to build/java/jep
copying src/main/resources/jep/classlist_10.txt to build/java/jep
copying src/main/resources/jep/classlist_11.txt to build/java/jep
E:\Java\JDK\jdk17\bin\jar -cf build/java/jep-4.2.0-sources.jar -C build/java/jep.src/main/java jep -C build/java META-INF
E:\Java\JDK\jdk17\bin\jar -cfe build/java/jep-4.2.0.jar jep.Run -C build/java jep -C build/java META-INF
E:\Java\JDK\jdk17\bin\jar -cf build/java/jep-4.2.0-test-sources.jar -C build/java/jep.test.src/test/java jep -C build/java META-INF
E:\Java\JDK\jdk17\bin\jar -cfe build/java/jep-4.2.0-test.jar test.jep.Test -C build/java/test jep -C build/java META-INF
running build_py
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\jep
copying src\main\python\jep\console.py -> build\lib.win-amd64-cpython-310\jep
copying src\main\python\jep\java_import_hook.py -> build\lib.win-amd64-cpython-310\jep
copying src\main\python\jep\jdbc.py -> build\lib.win-amd64-cpython-310\jep
copying src\main\python\jep\redirect_streams.py -> build\lib.win-amd64-cpython-310\jep
copying src\main\python\jep\shared_modules_hook.py -> build\lib.win-amd64-cpython-310\jep
copying src\main\python\jep\version.py -> build\lib.win-amd64-cpython-310\jep
copying src\main\python\jep_init_.py -> build\lib.win-amd64-cpython-310\jep
running build_ext
building 'jep' extension
creating build\temp.win-amd64-cpython-310
creating build\temp.win-amd64-cpython-310\Release
creating build\temp.win-amd64-cpython-310\Release\src
creating build\temp.win-amd64-cpython-310\Release\src\main
creating build\temp.win-amd64-cpython-310\Release\src\main\c
creating build\temp.win-amd64-cpython-310\Release\src\main\c\Jep
creating build\temp.win-amd64-cpython-310\Release\src\main\c\Jep\java_access
creating build\temp.win-amd64-cpython-310\Release\src\main\c\Jep\python
creating build\temp.win-amd64-cpython-310\Release\src\main\c\Objects
E:\AI\BuildTools\VC\Tools\MSVC\14.39.33519\bin\HostX86\x64\cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DPACKAGE=jep -DUSE_DEALLOC=1 -DJEP_NUMPY_ENABLED=1 -DVERSION="4.2.0" -DWIN32=1 -D_CRT_SECURE_NO_WARNINGS=1 -IE:\Java\JDK\jdk17\include -IE:\Java\JDK\jdk17\include\win32 -Isrc/main/c/Include -Ibuild
/include -IE:\Python3.10.4\lib\site-packages\numpy\core\include -IE:\Python3.10.4\include -IE:\Python3.10.4\Include -IE:\AI\BuildTools\VC\Tools\MSVC\14.39.33519\include -IE:\AI\BuildTools\VC\Auxiliary\VS\include /Tcsrc\main\c\Jep\convert_j2p.c /Fobuild\temp.win-amd64-cpython-310\Release\src\main\c\Jep\convert_j2p.obj
convert_j2p.c
E:\Python3.10.4\include\pyconfig.h(59): fatal error C1083: 无法打开包括文件: “io.h”: No such file or directory
error: command 'E:\AI\BuildTools\VC\Tools\MSVC\14.39.33519\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for jep
Running setup.py clean for jep
Failed to build jep
ERROR: Could not build wheels for jep, which is required to install pyproject.toml-based projects

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

No branches or pull requests

2 participants