Giter Club home page Giter Club logo

Comments (10)

ravigumm avatar ravigumm commented on August 29, 2024 1

Commenting out pxi files in setup.py works for me. Thanks

from pyjnius.

cmacdonald avatar cmacdonald commented on August 29, 2024 1

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.

cmacdonald avatar cmacdonald commented on August 29, 2024

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.

Cheaterman avatar Cheaterman commented on August 29, 2024

The above should work, alternatively you can use Cython 0.29.36.

from pyjnius.

ravigumm avatar ravigumm commented on August 29, 2024

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.

pratapkishorevarma avatar pratapkishorevarma commented on August 29, 2024

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.

Cheaterman avatar Cheaterman commented on August 29, 2024

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.

cmacdonald avatar cmacdonald commented on August 29, 2024

I think this is now addressed by #669.
Would you be able to try to install the current Git please @ravigumm?

from pyjnius.

misl6 avatar misl6 commented on August 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.