Comments (5)
Python 2 --> 3: https://docs.python.org/2/howto/cporting.html
Python 2.7 'distutils' requires Visual Studio on Windows (for Python 3.3, jpy uses the Windows SDK 7.1):
- Visual Studio 2011: SET VS90COMNTOOLS=%VS100COMNTOOLS%
- Visual Studio 2012: SET VS90COMNTOOLS=%VS110COMNTOOLS%
--> As we use MS Visual Studio Express we can only compile for 32-bit target platforms
from jpy.
Here are the used functions that are either missing or incompatible in Python 2.7
- PyModule_Create() named Py_InitModule() with different parameters, easily fixed
- PyUnicode_AsUTF8(), PyUnicode_FromKindAndData(), PyUnicode_AsWideCharString() missing, must code a replacement which is not straight forward due to uncicode conversion
- Buffer.releasebufferproc() has different parameters, not checked effort yet
from jpy.
Done for 0.7.2
from jpy.
Hi Norman,
thanks a lot for the fast implementation. The installation is however not working properly for me jet. I installed all required dependencies.
If I then say
python setup.py install
I get:
(ipythondev)m300028@alexnotebook:jpy$ python setup.py install
Building a 64-bit library for a Linux system
Traceback (most recent call last):
File "setup.py", line 84, in
libraries = ['jvm', 'python' + sysconfig.get_config_var('VERSION') + sys.abiflags]
AttributeError: 'module' object has no attribute 'abiflags'
My understanding is that the 'abiflags' attribute is specific to python3.
However, if I do
sudo python setup.py install
I get ...
(ipythondev)m300028@alexnotebook:jpy$ sudo python setup.py install
[sudo] password for m300028:
Error: Environment variable "JDK_HOME" must be set to a JDK (>= v1.6) installation directory
(ipythondev)m300028@alexnotebook:jpy$ sudo python setup.py install
Error: Environment variable "JDK_HOME" must be set to a JDK (>= v1.6) installation directory
which is weird, as I have installed the most recent JDK and JDK_HOME is pointing to it ...
(ipythondev)m300028@alexnotebook:jpy$ echo $JDK_HOME
/usr/local/bin/jdk1.8.0_05
Any ideas?
Best,
Alex
from jpy.
Yes, the attribute sys.abiflags is a Python 3 feature. Fixed.
However, if you sudo, you loose your environment settings and this is why you don't have "JDK_HOME" anymore.
from jpy.
Related Issues (20)
- PyPI project iris: Does anyone here have access to the account that owns it? (Urgent) HOT 2
- Error: function or method not found
- Configure CI builds for Python 3.4-3.8
- Look into cibuildwheel for automated wheel builds
- Segfault when iterating through Python globals dictionary HOT 3
- Unable to build HOT 2
- macos catalina 10.15.6 (19G2005); gcc error HOT 1
- Python methods not being recongnized when calling them from a java object
- Request for input for JPype HOT 3
- Update readme to state that jpy is not under active development HOT 1
- macOS / Python 3.4 AppVeyor builds failing on openssl installation HOT 1
- Py_free' is invalid in C99 Error HOT 1
- Error in Python interpreter: Type: <class 'SyntaxError'> Value: EOL while scanning string literal (<string>, line 1) Line: <not available> Namespace: <not available> File: <not available> HOT 1
- Compilation error on MacOS and solution
- Java byte array has first 16 bytes incorrect when transformed with numpy.frombuffer in Python
- Error: environment variable "JAVA_HOME" must be set to a JDK (>= v1.7) installation directory HOT 2
- c1: fatal error C1083: Cannot open source file: 'src\main\c\jpy_module.c': No such file or directory HOT 2
- Remove Python 3.4 builds from AppVeyor configuration
- Mac builds failing due to compiler error HOT 2
- jpy not cleanly compiling; with moderate chgs to compile, jpy not passing its own test on MacOS - JAVA 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jpy.