Comments (6)
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.
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.
Thanks for the report @alejandrosame !, We are having a look.
from jgit-spark-connector.
@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.
@erizocosmico, @ajnavarro Indeed that worked! Thank you!
from jgit-spark-connector.
Great! I will add more detailed requirements for python to the README, anyway.
from jgit-spark-connector.
Related Issues (20)
- Return of org.eclipse.jgit.errors.RevWalkException: Walk failure HOT 2
- [feature request] Handy handling of bad siva-files HOT 2
- Engine fails on UAST when run spark-shell with --packages argument in cluster mode HOT 6
- Modify requirements file, Pyspark version HOT 2
- Add a configuration flag to skip siva read errors
- [Change] Files not cleaned in /tmp folder on Spark Workers when using apollo HOT 2
- commits filtering counterintuitive behaviour HOT 1
- Engine fails to extract UASTs on actual Spark cluster HOT 5
- Latest version of Docker image engine-jupyter missing bblfsh HOT 6
- Expose Bblfsh UAST extraction errors in Engine
- Jupyter example notebook doesn't work out-of-the-box
- Docker Hub 'latest' image doesn't point to master Dockerfile. HOT 2
- Build and test process leave the repository in dirty state for git describe HOT 3
- Engine fails on siva files from pipeline-staging cluster HOT 14
- Update README with EOL
- "standard" repository format does not work HOT 7
- ReferencesDataFrame files property HOT 4
- WARN Repository: close() called when useCnt is already zero
- WARN CommitIterator: missing object HOT 1
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 jgit-spark-connector.