Could not find adapter type bigquery - dbt

Having trouble running dbt today... encountered this error message and cannot debug the issue. I did not have this issue yesterday and have not changed anything since.
Installed dbt with Homebrew
Running with dbt=0.18.0
dbt version: 0.18.0
...
Configuration:
profiles.yml file [ERROR invalid]
dbt_project.yml file [OK found and valid]
Profile loading failed for the following reason:
Runtime Error
Credentials in profile "dandelion-bq", target "dev" invalid: Runtime Error
Could not find adapter type bigquery!

Probably you installed a plugin or another version of dbt-core, try:
dbt --version
It should list the plugins installed, guess in your case there is no bigquery there:
dbt --version
installed version: 0.19.0
latest version: 1.0.0
Your version of dbt is out of date! You can find instructions for upgrading here:
https://docs.getdbt.com/docs/installation
Plugins:
- postgres: 0.19.0
- bigquery: 0.19.0
Install it, with pip or pip3
pip install dbt-bigquery
Same applies for any other plugin/adapter when you get the error Credentials in profile <profile>, target <target> invalid: Runtime Error Could not find adapter type <plugin>!

Related

DBT RecursionError

I've installed dbt on my Windows PC.
After creating the necessary configuration, I've executed dbt debug successfully.
I tried executing dbt run. I have a local Postgres installed, and I'm getting the following error:
RecursionError: maximum recursion depth exceeded while calling a Python object
Output of dbt --version
installed version: 1.0.4
latest version: 1.0.4
Up to date!
Plugins:
- postgres: 1.0.4 - Up to date!
Anything I can do?
This is a known issue using dbt with Python 3.10: https://github.com/dbt-labs/dbt-core/issues/4560
dbt supports Python versions up to 3.9: https://docs.getdbt.com/faqs/install-python-compatibility
The solution is to use Python 3.9 instead of 3.10.

configure: error: package not installed, but a package with the same name is installed

Introduction
I'm trying to build a repo I recently cloned.
I've run ./autogen.sh.
I try to run:
./configure --enable-project=my-proj --prefix=${HOME}/my-dir
configure then does lots of checks and then fails with the following output:
configure: error: miglayout not installed
If I do a yum install miglayout (I'm running RHEL7), I get the following:
Package miglayout-4.2-5.el7.myproj.7.10.noarch already installed and latest version
Nothing to do
Question
What would be causing configure to not see the miglayout-4.2-5.el7.myproj.7.10.noarch package I installed as fulfilling its requirement for miglayout?

problem building TensorFlow r1.13 from sources

I'm trying to build under Ubuntu 18.04 TensorFlow r1.13 from sources and whichever compatible version of bazel I use I get the same errors:
ERROR: /home/hamlatzis/.cache/bazel/_bazel_hamlatzis/bc20d0623a1a0c4eaa510688c26216cb/external/io_bazel_rules_closure/closure/protobuf/closure_proto_library.bzl:66:21: name 'ProtoInfo' is not defined (did you mean 'protos'?)
ERROR: error loading package '': Extension 'closure/protobuf/closure_proto_library.bzl' has errors
ERROR: error loading package '': Extension 'closure/protobuf/closure_proto_library.bzl' has errors
I need to be on r1.13, but to be on the safe side I've tried with other branches (r1.14 and master) and had no problems with those
Any idea?
Try a different Bazel version.
Bazel 0.21.0 worked for me for Tensorflow r1.13.

Error: Module administration/tfasettings not found

I'm busy working on developing some plugins and apps, and when i am running c8y server locally and i try to enter Administration, i keep getting the following error:
Error: Module administration/tfasettings not found
Any ideas?
We have already fixed the issue for versions >= 9.1.0. Please try to install version 9.1.0 (or higher) with c8y install command. If administration/tfasettings
is still missing use npm cache clean --force and then once again try to install version 9.1.0 (or higher) with c8y install command.
Best regards
Dawid

error in bazel/ tensorflow installation 'external:io_bazel_rules_closure: no such attribute 'urls' in 'http_archive' rule.'

Hi all I am trying to install tensor flow with GPU compatibility using this guide "guide 1" and guide 2 on ubuntu pc (cuda 8). I am stuck at installing tensorflow,
when I use ./configure, I getting this error
ERROR: /home/krishna/tensorflow/WORKSPACE:3:1: //external:io_bazel_rules_closure: no such attribute 'urls' in 'http_archive' rule.
ERROR: /home/krishna/tensorflow/WORKSPACE:3:1: //external:io_bazel_rules_closure: missing value for mandatory attribute 'url' in 'http_archive' rule.
ERROR: com.google.devtools.build.lib.packages.BuildFileContainsErrorsException: error loading package '': Encountered error while reading extension file 'closure/defs.bzl': no such package '#io_bazel_rules_closure//closure': error loading package 'external': Could not load //external package.
I am new to ubuntu, after reading a lot I understood that, the error has something to do with "version of bazel" (for version above 0.3.1 it does not apper).
When I use the command
$bazel version
Build label: 0.3.0
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Jun 10 11:38:23 2016 (1465558703)
Build timestamp: 1465558703
Build timestamp as int: 1465558703
when i use
$ sudo apt-get install bazel
Reading package lists... Done
Building dependency tree
Reading state information... Done
bazel is already the newest version (0.4.5).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
and
upgraded it using $ sudo apt-get upgrade bazel. Finally I tried
$ bazel version
Build label: 0.3.0
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Jun 10 11:38:23 2016 (1465558703)
Build timestamp: 1465558703
Build timestamp as int: 1465558703
which shows me that I am at version 0.3.0. I even tried compiling tensorflow again,which gave me the same above error.
It looks like you have two versions of Bazel on your system (0.3.0 and 0.4.5). You can see what the current binary is by running which bazel. You can find all of the bazels on your system by running:
$ updatedb # This will take a while.
$ slocate bazel
Assuming this returns something like:
/etc/bazel/bin/bazel
/usr/bin/bazel
you can figure out which bazel is the "right" one (0.4.5) by running /usr/bin/bazel version etc. for each bazel slocate finds.
Once you find the right bazel, you want that to be the default, so you have to make sure Linux searches for Bazel in that directory first. If the right bazel is /usr/local/bin/bazel, you'd run:
$ export PATH="/usr/local/bin:$PATH"
Then you should be able to call "bazel" normally and your system will find the "right" one (you can also delete any old ones you find).
Alternatively, you can install Bazel using the installer which will tell you what directory it got installed in.