Comments (10)
Commenting out pxi files in setup.py works for me. Thanks
from pyjnius.
I believe the plan might be to remove those lines from pyjnius itself
We should do this in a new release asap, as it may prevent jnius installation on platforms without prebuilt binaries.
I have worked building my own jnius in the past, but hadn't seen this problem before. I guess something changed in cython in the last year or two, but not that recently.
What is the long term solution for this issue instead of manually commenting the pxi files?
I only figured this out myself when I posted it, it's now clear that include files should not be compiled.
from pyjnius.
Can you try commenting out all the .pxi files in FILES in setup.py, i.e.:
FILES = [
# 'jni.pxi',
# 'jnius_compat.pxi',
# 'jnius_conversion.pxi',
# 'jnius_export_class.pxi',
# 'jnius_export_func.pxi',
# 'jnius_jvm_android.pxi',
# 'jnius_jvm_desktop.pxi',
# 'jnius_jvm_dlopen.pxi',
# 'jnius_localref.pxi',
# 'jnius_nativetypes3.pxi',
# 'jnius_proxy.pxi',
'jnius.pyx',
# 'jnius_utils.pxi',
]
from pyjnius.
The above should work, alternatively you can use Cython 0.29.36.
from pyjnius.
Just updating cython from 0.29.35 to 0.29.36 did not help surpass the error about pxi files. I had to comment out those lines in setup.py to surpass the error. Thanks
from pyjnius.
Can you try commenting out all the .pxi files in FILES in setup.py, i.e.:
FILES = [ # 'jni.pxi', # 'jnius_compat.pxi', # 'jnius_conversion.pxi', # 'jnius_export_class.pxi', # 'jnius_export_func.pxi', # 'jnius_jvm_android.pxi', # 'jnius_jvm_desktop.pxi', # 'jnius_jvm_dlopen.pxi', # 'jnius_localref.pxi', # 'jnius_nativetypes3.pxi', # 'jnius_proxy.pxi', 'jnius.pyx', # 'jnius_utils.pxi', ]
What is the long term solution for this issue instead of manually commenting the pxi files?
Is there a plan to fix this?
from pyjnius.
Just updating cython from 0.29.35 to 0.29.36 did not help surpass the error about pxi files. I had to comment out those lines in setup.py to surpass the error. Thanks
I'm surprised that didn't work, IMHO you perhaps had leftover .c files that you needed to get rid of?
What is the long term solution for this issue instead of manually commenting the pxi files? Is there a plan to fix this?
I believe the plan might be to remove those lines from pyjnius itself, probably ideally while getting rid of the preprocessor stuff (IF
and DEF
) causing warnings, because I suppose the need to list the pxi's here is (EDIT: or rather, was) related to that?
EDIT: "was" because I'm not entirely certain it causes issues to drop this with current-ish Cython versions, 3.0.0 and 0.29.36 ; at least it seems to build fine here but admittedly I didn't test the result.
from pyjnius.
I think this is now addressed by #669.
Would you be able to try to install the current Git please @ravigumm?
from pyjnius.
Fixed via #669 .
Please upgrade to 1.6.0
and open a new issue if the issue persists on your side.
from pyjnius.
Related Issues (20)
- `pypa/gh-action-pypi-publish@master`. The `master` branch of this project has been sunset and will not receive any updates. HOT 3
- Support for arm64(M1 Chip) arch in MACHINE2CPU HOT 2
- pyjnius 1.4.2 and Cython 3.0.0 HOT 4
- ClassNotFoundException for android.media.midi.MidiManager.OnDeviceOpenedListener HOT 3
- unexpected error for jdk17 HOT 4
- Crashes on Apple M1 HOT 27
- How to add everything under M2 repository to pyjnius classpath? HOT 2
- DeprecationWarning: pkg_resources is deprecated as an API
- pyjnius build error, still coming HOT 10
- Including a JAR on Android HOT 2
- Support mail address is broken HOT 2
- OverflowError: value too large to convert to jshort HOT 4
- How to create Webview with FileChooser HOT 1
- Moderinze `java` code? HOT 2
- installation documentation could be refreshed HOT 3
- Usage without JDK HOT 6
- AttributeError: 'Class' object has no attribute '_JavaClass__cls_storage' HOT 4
- Running python script on Android but in Docker container HOT 1
- Getting a pointer to JavaVM
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 pyjnius.