question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: Projects without `environments` nor `default_environment` see error where `dev` environment is not found

See original GitHub issue

Meltano Version

2.5.0

Python Version

NA

Bug scope

Configuration (settings parsing, validation, etc.)

Operating System

NA

Description

Users with projects created from scratch (not using meltano init) or started before Environments where introduced may not be using default_environment nor environments in their meltano.yml.

This causes an error because in 2.5.0 we made default_environment a project setting that defaults to dev. Any project without a dev environment, as those exemplified above, will see an error because Meltano will be looking for dev.

Code

$ meltano install
Environment 'dev' was not found

This is reproducible with the following meltano.yml:

plugins:
  loaders:
  - name: target-jsonl
    variant: andyh1203
    pip_url: target-jsonl

Workaround

From AJ:

There should be two ways to work around this issue.

Running meltano environment add dev as a one-time fix will resolve the issue, even if no other changes are made and no environment-specific settings are added.

Adding the --no-environment CLI arg will override the default dev environment name.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
aaronsteerscommented, Aug 30, 2022

@tayloramurphy - I’ve added a “Workarounds” section above in the description. Since the workarounds seem pretty clear, I’m not seeing this as a high urgency item - or at least not high enough urgency that we’d want to introduce new tech debt or promote unsupported execution paths.

1reaction
alanmcruickshankcommented, Oct 19, 2022

Upgrade to 2.8.0 has helped with this issue! (caused another - but I think solvable) 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG]: Developer Environments are not visible on Power BI ...
Describe the bug In Power Platform, I have two developers environments created by different users via"Power Apps Community Plan" plan, one trial environment...
Read more >
environment not found - Power Platform Community - Microsoft
I am trying to work on my application to add more functions but I am getting this error message (Failed to get authorized....
Read more >
AWS Elastic Beanstalk : the command eb list shows no ...
The error I am getting is ERROR: This branch does not have a default environment. You must either specify an environment by typing...
Read more >
Environments and deployments - GitLab Docs
Environments describe where code is deployed. Each time GitLab CI/CD deploys a version of code to an environment, a deployment is created. GitLab:....
Read more >
Using Python Environments in Visual Studio Code
If one is found, then no other interpreters are searched for or listed as pipenv ... For examples of using virtual environment in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found