Code Monkey home page Code Monkey logo

Comments (4)

timfel avatar timfel commented on June 13, 2024

@CptGummiball very simple scripts may work, but these warnings tell you that many more complex things will not. Try using the struct module, email or xml parser for example. You can change the warnings using log.python.level if you want to ignore this.

from graal.

timfel avatar timfel commented on June 13, 2024

@CptGummiball the proper way to fix this for you is to fix your dependency: https://github.com/CptGummiball/Spython/blob/4b2c2bf426014bf1cd7f55dfab13151d1366ac15/pom.xml#L87

You have

      <dependency>
          <groupId>org.graalvm.python</groupId>
          <artifactId>python-language</artifactId>
          <version>23.1.2</version>
      </dependency>

It should be

      <dependency>
          <groupId>org.graalvm.polyglot</groupId>
          <artifactId>python</artifactId>
          <version>23.1.2</version>
      </dependency>

To elaborate a bit: python-language is really just the language, without most of the standard library. In fact, that there's any library in that at all (like e.g. the re module) is just an implementation detail and may change without notice. The python artifact pulls in both the language and the standard library as dependencies.

from graal.

CptGummiball avatar CptGummiball commented on June 13, 2024

@timfel Thx, the polyglot dependency not worked for me before but i think this was just a problem with the IDE.

from graal.

CptGummiball avatar CptGummiball commented on June 13, 2024

I will close this issue. its working now but i had to add "type"

  <dependency>
      <groupId>org.graalvm.polyglot</groupId>
      <artifactId>python</artifactId>
      <version>23.1.2</version>
      <type>pom</type>
  </dependency>

from graal.

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.