Giter Club home page Giter Club logo

jdk4py's People

Contributors

baekdahl avatar bloussou avatar fabiencelier avatar gorgiastro avatar nathaneckert avatar tibdex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

jdk4py's Issues

In some Mac environment, jdk4py cannot install java runtime.

Hi,

I tried to install atoti-jupyterlab in Mac.

The case of homebrew -> pip is successful. But in the case of Conda and Docker, java runtime cannot be found.

FileNotFoundError: [Errno 2] No such file or directory: '/Users/morimasao/miniconda3/lib/python3.9/site-packages/jdk4py/java-runtime/bin/java'

Are there anything necessary to do before installing atoti and jdk4py?

[HELP NEEDED] EXCEPTION_ACCESS_VIOLATION on Windows 10 and 11

Premise

This issue was originally posted to the Jpype repo:
jpype-project/jpype#1151

Considerations

If JPype is used with openjdk installed from oracle it works fine on my machine.
If jdk4py is used by launching java from a terminal it works fine too.
But when jdk4py version 17 is launched by Jpype it raises the EXCEPTION_ACCESS_VIOLATION error with the stack dump you can see following the link above.

Note: jdk4py and jpype work fine together on any other os I tested, as well as on github actions windows runners.

Insight

The problem is related with the jimage.dll library but neither the Jpype author nor I cam explain what's happening. Maybe I can find some help here.

Factorise code in github workflows

All the jobs starts with the same set of steps to setup every thing:

      - uses: actions/checkout@v2

      - uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python }}
          architecture: "x64"

      - name: Set Java version
        run: python scripts/set_versions.py

      - uses: joschi/setup-jdk@v2 # We must use to the official action once https://github.com/actions/setup-java/pull/97 is closed
        with:
          java-version: ${{ env.MAJOR_JAVA_VERSION }}
          java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
          architecture: x64

      # Install Poetry
      - if: matrix.os == 'windows-latest'
        name: Install poetry [Windows]
        run: pip install poetry
      - if: matrix.os != 'windows-latest'
        name: Install poetry [Ubuntu/macOS]
        run: pip3 install poetry

      - name: Install python dependencies
        run: poetry install

      - name: Build JDK
        run: poetry run python scripts/build_jdk.py

We should factorize it to avoid changing the same thing multiple times.

I have tried putting them into a composite action but it doesn't support the uses steps

Support installation as a source distribution

I am looking for a way to use my forked jdk4py (for new features which are not merged in the main repo yet, for instance my pull request #65 ) in the project I am working on which depends on jdk4py. Cloning and building locally with pip install . works of course, but for deployment purposes I am looking for a way to have my project depend on my github fork and not on my local jdk4py installation.

The only way I found (except setting up my own test PyPi package with my forked jdk4py) to use my forked version is to tell pip to use my forked github repo: jdk4py @ git+https://github.com/GorgiAstro/jdk4py/. But this installs jdk4py as a source distribution and the java-runtime folder is missing because the build_jdk.py script is not called.

Is it possible to add an option to poetry to trigger build_jdk.py when the user installs jdk4py as a source distribution? I guess it's not hard but I have too little experience with poetry.

Support Python 3.10

Python 3.10 has been released

The wheel is cross Python versions so it only need to be tested in 3.10.
The conda package is still one per Python version so a package for 3.10 should be released

Build a cross Python version conda package

At the moment we release one Conda package per OS and per Python version (while we have one wheel per OS but cross Python versions.)

It would be nice to manage to release only one Conda package per OS so we don't have to do new releases when there are new Python versions.

The difficulties are in conda build. When building the package, the Python files always end up in the folder of a pinned Python version such as "lib/python3.8/site-packages".

Here is a discussion about it.

A possible solution would be to release 2 Conda packages:

  • jdk4py-bin which is OS dependent, containing all the java runtime without any Python code.
  • jdk4py which is a noarch package importing jdk4py-bin and exposing it as a Python library.

Diagnostic Commands MBean not available in JMC

When cnnecting with JMC to a JVM created by Jdk4py I have this error: "Diagnostic Commands MBean not available"

diagno

I don't have this message and the N/A if I run the same process with my Java, so there might be some missing modules in jdk4py

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.