Comments (5)
Thanks @BAntonellini ! I am using the latest version (1.7.7
at the time of writing) and this has resolved the issue. Appreciate the fix and explanation!
from dbt-coves.
Hey @mjkanji , could you provide us the steps to reproduce such ModuleNotFoundError
using dbt-coves?
from dbt-coves.
I'm having the same issue; our requirements.txt
is simply:
dbt_coves
As of 3 weeks ago, we started seeing ModuleNotFoundError: No module named 'sqlalchemy'
; seemingly, dbt_coves used to import this for you
specifically, we are using your fivetran extractor:
dbt-coves extract fivetran --api-key <API_KEY> --api-secret <API_SECRET> --path <PATH>
This seems to be something introduced from 1.7.3 -> 1.7.4; in our case, this is such a minor usecase, we might just pin down for the time being
from dbt-coves.
Update: Pinning down does not work either. Using 1.7.2 or 1.7.3 comes up with a new issue:
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.9.19/x64/bin/dbt-coves", line 5, in <module>
from dbt_coves.core.main import main
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/dbt_coves/core/main.py", line 21, in <module>
from dbt_coves.tasks.setup.main import SetupTask
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/dbt_coves/tasks/setup/main.py", line 7, in <module>
from .pre_commit import SetupPrecommitTask
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/dbt_coves/tasks/setup/pre_commit.py", line 3, in <module>
import copier
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/copier/__init__.py", line 6, in <module>
from .main import * # noqa: F401,F403
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/copier/main.py", line 28, in <module>
from .subproject import Subproject
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/copier/subproject.py", line [15](https://github.com/ArcadiaPower/fivetran/actions/runs/8743474427/job/23994085442#step:5:16), in <module>
from .template import Template
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/copier/template.py", line 18, in <module>
from yamlinclude import YamlIncludeConstructor
ModuleNotFoundError: No module named 'yamlinclude'Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.9.19/x64/bin/dbt-coves", line 5, in <module>
from dbt_coves.core.main import main
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/dbt_coves/core/main.py", line 21, in <module>
from dbt_coves.tasks.setup.main import SetupTask
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/dbt_coves/tasks/setup/main.py", line 7, in <module>
from .pre_commit import SetupPrecommitTask
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/dbt_coves/tasks/setup/pre_commit.py", line 3, in <module>
import copier
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/copier/__init__.py", line 6, in <module>
from .main import * # noqa: F401,F403
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/copier/main.py", line 28, in <module>
from .subproject import Subproject
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/copier/subproject.py", line [15](https://github.com/ArcadiaPower/fivetran/actions/runs/8743474427/job/23994085442#step:5:16), in <module>
from .template import Template
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/copier/template.py", line 18, in <module>
from yamlinclude import YamlIncludeConstructor
ModuleNotFoundError: No module named 'yamlinclude'
from dbt-coves.
@jakedave Copier had a critical issue some weeks ago by "blindly" upgrading pyyaml-include: copier-org/copier#1568
It was fixed in 1.7.4 by pinning pyyaml-include down, and if you're having issues in 1.7.4 because you don't have SQLAlchemy it'll be solved in #456
It should be released today. For the time being, if you urgently need to run dbt-coves==1.7.3
please add pyyaml-include==1.3.2
as a dependency
from dbt-coves.
Related Issues (20)
- Feature request: For automation, add more defaults (and ideally, an `all` option for some) for `generate sources` HOT 3
- Feature Request: Snowflake: Multithreading for performance? HOT 5
- Question: Should `generate sources` remove sources/staging models that are no longer in the database? HOT 2
- [BUG] (question) `generate sources` doesn't pick up new columns HOT 1
- Request:`generate sources`: Quote columns that use SQL keywords (such as `GROUP`) HOT 3
- [feat] Setup task expansion to cover lifecycle of dbt-coves vendored components
- Feature: Generate docs.md files with link to schema.yml columns
- Feature: Get source descriptions from OpenAPI specifications
- [BUG] Arrays are casted as string or record HOT 4
- [BUG] Unable to install v1.3 via PyPI/pip HOT 2
- Feature request: `generate sources` "update" mode also update staging models (rather than overwrite or leave unchanged) HOT 2
- Allow custom model naming HOT 1
- [BUG] dbt-coves fails to detect columns in schema HOT 8
- Option to not generate source.yml by default HOT 1
- Support for dbt 1.5 HOT 1
- [BUG][bigquery] --schema not working for underscore on bigquery
- [BUG] Precommit config installed in `['.']` folder
- Support Pydantic v2.0
- Make the settings path configurable
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 dbt-coves.