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.

dvc status -c: confusing message when remote is unspecified

See original GitHub issue

Current behavior

→ dvc status -c
WARNING: using obsoleted config format. Consider updating.
ERROR: failed to obtain data status - 'NoneType' object has no attribute 'path_info'

Having any troubles?. Hit us up at https://dvc.org/support, we are always happy to help!

Config contains just a single ssh remote section with an URL. There is no core section options defined in my config.

It couldn’t find the remote option in missing [core] and -r remotename option was not specified.

Expected behaviour

→ dvc status -c
ERROR: you should specify default remote in [core] config section or pass its name via `-r` argument

dvc version

DVC version: 0.50.1+cc9411
Python version: 3.7.3
Platform: Linux-5.1.3-arch1-1-ARCH-x86_64-with-arch-Arch-Linux
Binary: False
Cache: reflink - False, hardlink - True, symlink - True
Filesystem type (cache directory): ('ext4', '/dev/nvme0n1p5')
Filesystem type (workspace): ('ext4', '/dev/nvme0n1p5')

I use dvc from master.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
ei-gradcommented, Jul 18, 2019

This is solving the issue for me:

diff --git a/dvc/config.py b/dvc/config.py
index b0d280b8..787e8998 100644
--- a/dvc/config.py
+++ b/dvc/config.py
@@ -205,7 +205,7 @@ class Config(object):  # pylint: disable=too-many-instance-attributes
             SECTION_CORE_CHECKSUM_JOBS, default=None
         ): SECTION_CORE_CHECKSUM_JOBS_SCHEMA,
         # backward compatibility
-        Optional(SECTION_CORE_CLOUD, default=""): SECTION_CORE_CLOUD_SCHEMA,
+        Optional(SECTION_CORE_CLOUD): SECTION_CORE_CLOUD_SCHEMA,
         Optional(SECTION_CORE_STORAGEPATH, default=""): str,
     }
1reaction
ei-gradcommented, Jul 17, 2019

@pared in my case there is no core.cloud specified in the config file. Just an empty [core] section is enough to reproduce. Or core.analytics as it was in debug session some comments before.

But anyway I like the solution with dropping the legacy checks 😃. So never mind.

Read more comments on GitHub >

github_iconTop Results From Across the Web

status | Data Version Control - DVC
If no differences are detected, dvc status prints Data and pipelines are up to date , or Cache and remote 'myremote' are in...
Read more >
Debugging with GDB - sourceware.org
Tracepoints: Debugging remote targets non-intrusively ... Exit with nonzero status if an error occurs in executing the GDB commands in the command files....
Read more >
The DataLad Handbook
datalad status untracked: books/progit.pdf (file). Let's give datalad save precisely this file by specifying its path after the commit message:.
Read more >
Fisher™ FIELDVUE™ DVC6200p Digital Valve Controller
The 6 scfh requirement can be met by low bleed relay B and C when used with up to 5.2 ... binary messages...
Read more >
US7085814B1 - Data driven remote device control model with ...
The adapter maps application calls to the interface into network data messages according to service protocols of the controlled device.
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