GithubHelp home page GithubHelp logo

Comments (6)

ajnavarro avatar ajnavarro commented on June 1, 2024

Thanks for the report!

This bug is fixed on 0.7.0 version. You can check it executing: pyspark --packages "tech.sourced:engine:0.7.0"

from jgit-spark-connector.

alejandrosame avatar alejandrosame commented on June 1, 2024

Maybe I'm doing something wrong, but I still need to install bblfsh through pip to make it work.

With pyspark --packages "tech.sourced:engine:0.6.4":

>>> jars = [y for (x, y) in sc.getConf().getAll() if x == 'spark.jars']
>>> print([x.split("/")[-1] for x in jars[0].split(",") if 'sourced' in x or 'bblfsh' in x])
['tech.sourced_engine-0.6.4.jar', 'tech.sourced_siva-java-0.1.3.jar', 'org.bblfsh_bblfsh-client-1.8.2.jar', 'tech.sourced_enry-java-1.6.3.jar']

>>> from sourced.engine import Engine
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/alejandro/.local/lib/python3.6/site-packages/sourced/engine/__init__.py", line 3, in <module>
    from bblfsh.sdkversion import VERSION
ModuleNotFoundError: No module named 'bblfsh'

And with pyspark --packages "tech.sourced:engine:0.7.0":

>>> jars = [y for (x, y) in sc.getConf().getAll() if x == 'spark.jars']
>>> print([x.split("/")[-1] for x in jars[0].split(",") if 'sourced' in x or 'bblfsh' in x])
['tech.sourced_engine-0.7.0.jar', 'tech.sourced_siva-java-0.1.3.jar', 'org.bblfsh_bblfsh-client-1.9.1.jar', 'tech.sourced_enry-java-1.6.3.jar']

>>> from sourced.engine import Engine
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/alejandro/.local/lib/python3.6/site-packages/sourced/engine/__init__.py", line 3, in <module>
    from bblfsh.sdkversion import VERSION
ModuleNotFoundError: No module named 'bblfsh'

from jgit-spark-connector.

ajnavarro avatar ajnavarro commented on June 1, 2024

Thanks for the report @alejandrosame !, We are having a look.

from jgit-spark-connector.

erizocosmico avatar erizocosmico commented on June 1, 2024

@alejandrosame Did you install the latest sourced-engine python package? It should already install bblfsh without requiring you to manually install it.

from jgit-spark-connector.

alejandrosame avatar alejandrosame commented on June 1, 2024

@erizocosmico, @ajnavarro Indeed that worked! Thank you!

from jgit-spark-connector.

erizocosmico avatar erizocosmico commented on June 1, 2024

Great! I will add more detailed requirements for python to the README, anyway.

from jgit-spark-connector.

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.