Comments (8)
can you paste the output please?
from fsqio.
Are you suuuuuure you want to drop your mongo data? Type "yes" to continue: yes
./pants run src/jvm/io/fsq/twofishes/indexer/importers/geonames:geonames-parser --jvm-run-jvm-options=-Dlogback.configurationFile=src/jvm/io/fsq/twofishes/indexer/data/logback.xml --jvm-run-jvm-program-args=--parse_world --jvm-run-jvm-program-args=true --jvm-run-jvm-program-args=--output_revgeo_index --jvm-run-jvm-program-args=false --jvm-run-jvm-program-args=--output_s2_covering_index --jvm-run-jvm-program-args=false --jvm-run-jvm-program-args=--output_s2_interior_index --jvm-run-jvm-program-args=false --jvm-run-jvm-program-args=--output_prefix_index --jvm-run-jvm-program-args=true --jvm-run-jvm-program-args=--reload_data --jvm-run-jvm-program-args=true --jvm-run-jvm-program-args=--hfile_basepath --jvm-run-jvm-program-args=output/dir
Traceback (most recent call last):
File "/Users/kuroshhashemi/.cache/pants/setup/bootstrap-Darwin-x86_64/1.0.1/lib/python2.7/site-packages/pants/bin/extension_loader.py", line 138, in load_backend
module = importlib.import_module(backend_module)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named contrib.node.register
Exception caught: (<class 'pants.base.exceptions.BackendConfigurationError'>)
File "/Users/kuroshhashemi/.cache/pants/setup/bootstrap-Darwin-x86_64/1.0.1/bin/pants", line 11, in <module>
sys.exit(main())
File "/Users/kuroshhashemi/.cache/pants/setup/bootstrap-Darwin-x86_64/1.0.1/lib/python2.7/site-packages/pants/bin/pants_exe.py", line 44, in main
PantsRunner(exiter).run()
File "/Users/kuroshhashemi/.cache/pants/setup/bootstrap-Darwin-x86_64/1.0.1/lib/python2.7/site-packages/pants/bin/pants_runner.py", line 53, in run
options_bootstrapper=options_bootstrapper)
File "/Users/kuroshhashemi/.cache/pants/setup/bootstrap-Darwin-x86_64/1.0.1/lib/python2.7/site-packages/pants/bin/pants_runner.py", line 43, in _run
return LocalPantsRunner(exiter, args, env, options_bootstrapper=options_bootstrapper).run()
File "/Users/kuroshhashemi/.cache/pants/setup/bootstrap-Darwin-x86_64/1.0.1/lib/python2.7/site-packages/pants/bin/local_pants_runner.py", line 49, in run
self._maybe_profiled(self._run)
File "/Users/kuroshhashemi/.cache/pants/setup/bootstrap-Darwin-x86_64/1.0.1/lib/python2.7/site-packages/pants/bin/local_pants_runner.py", line 46, in _maybe_profiled
runner()
File "/Users/kuroshhashemi/.cache/pants/setup/bootstrap-Darwin-x86_64/1.0.1/lib/python2.7/site-packages/pants/bin/local_pants_runner.py", line 55, in _run
options, build_config = OptionsInitializer(options_bootstrapper, exiter=self._exiter).setup()
File "/Users/kuroshhashemi/.cache/pants/setup/bootstrap-Darwin-x86_64/1.0.1/lib/python2.7/site-packages/pants/bin/goal_runner.py", line 129, in setup
return self._setup_options(self._options_bootstrapper, self._working_set)
File "/Users/kuroshhashemi/.cache/pants/setup/bootstrap-Darwin-x86_64/1.0.1/lib/python2.7/site-packages/pants/bin/goal_runner.py", line 103, in _setup_options
build_configuration = load_plugins_and_backends(plugins, working_set, backend_packages)
File "/Users/kuroshhashemi/.cache/pants/setup/bootstrap-Darwin-x86_64/1.0.1/lib/python2.7/site-packages/pants/bin/extension_loader.py", line 36, in load_plugins_and_backends
load_build_configuration_from_source(build_configuration, additional_backends=backends or [])
File "/Users/kuroshhashemi/.cache/pants/setup/bootstrap-Darwin-x86_64/1.0.1/lib/python2.7/site-packages/pants/bin/extension_loader.py", line 124, in load_build_configuration_from_source
load_backend(build_configuration, backend_package)
File "/Users/kuroshhashemi/.cache/pants/setup/bootstrap-Darwin-x86_64/1.0.1/lib/python2.7/site-packages/pants/bin/extension_loader.py", line 142, in load_backend
.format(backend=backend_module, error=e))
Exception message: Failed to load the pants.contrib.node.register backend: No module named contrib.node.register```
from fsqio.
Hmmm...so your output says it is running from the ~/.cache/pants directory. I suppose that these scripts could be bypassing some of our config by being run in this manner, they are pretty old.
Although I do not see that when I run the scripts locally, even after deleting the pants directory. Let's try the optimistic thing and delete them both.
rm -rf ~/.cache/pants/ && rm -rf ~/.cache/fsqio
One way or another, when you delete these Pant needs to rebootstrap. If it fails, paste the fullput and the results of:
git log -1
git diff HEAD~1
from fsqio.
Output uploaded here:
log.txt
from fsqio.
So - why did you change the pants script?
If you return it to the state of Fsq.io's master branch, you should get different results: https://github.com/foursquare/fsqio/blob/master/pants
That uses our config and builds a fsq.io virtualenv with Fsq.io dependencies. You are missing dependencies because you are not installing them.
from fsqio.
closing since the issue appears clear. Feel free to reopen as needed.
from fsqio.
from fsqio.
It appeared to me that they tried to install Pants into the repo, which isn't needed. A fresh clone of fsqio, installing the deps listed in the README, and running the script appears to work.
Troubleshooting would be:
- wipe your existing ~/.cache/pants and ~/.cache/fsqio directories
- if on OSX also running the commands listed here
- can be needed if upgraded to Sierra or new homebrew
Feel free to open a new issue if you have a new problem, and best of luck.
from fsqio.
Related Issues (20)
- Content Issues
- Twofishes: ConnectionError building index HOT 9
- twofishes: export polygons HOT 2
- twofishes website is offline HOT 1
- Spindle doesn't support i64 consts? HOT 2
- Cannot build when Postgres 10+ is present HOT 2
- Twofishes does not seem to recognize streets nor housenumbers at all HOT 1
- Buildgen doesn't work on Spindle? HOT 10
- Build failure HOT 4
- Twofishes indexer does not handle MongoDB query failures properly. HOT 2
- Twofishes reliance on twofishes.net HOT 1
- thrift map parser incorrectly parsing values with string literal `:` HOT 1
- hadoop-lzo jar resolution HOT 4
- Pants buildgen plugin out of date HOT 1
- build is failing according to the readme note for twofishes HOT 2
- http://twofishes.net/ appears to be down HOT 6
- Autocomplete search giving weird results for places with space.
- Delete legacy branches and use "main" for canonical git branch
- An updated prebuilt ? HOT 5
- Autocomplete does not work before 6 characters are typed
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 fsqio.