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.

Exception on /api/v1/orchestrations/pipeline-schedules AttributeError: 'NoneType' object has no attribute 'get'

See original GitHub issue

I get this error sometimes when strating meltano ui on a windows machine. The error also happens when I navigate between tabs in the UI. The error is associtated with the following API call in the log

Exception on /api/v1/orchestrations/pipeline-schedules [GET]

Here is the ending bit of the error

  File "C:\development\meltano\src\meltano\core\project_plugins_service.py", line 83, in current_plugins
    self._current_plugins = self.config_service.current_meltano_yml.plugins
  File "C:\development\meltano\src\meltano\core\config_service.py", line 35, in current_meltano_yml
    self._current_meltano_yml = self.project.meltano
  File "C:\development\meltano\src\meltano\core\project.py", line 230, in meltano
    return MeltanoFile.parse(self.project_files.load())
  File "C:\development\meltano\src\meltano\core\project_files.py", line 66, in load
    included_file_contents = self._load_included_files()
  File "C:\development\meltano\src\meltano\core\project_files.py", line 150, in _load_included_files
    for path in self.include_paths:
  File "C:\development\meltano\src\meltano\core\project_files.py", line 59, in include_paths
    include_path_patterns = self.meltano.get("include_paths", [])
AttributeError: 'NoneType' object has no attribute 'get'

It can’t find the attribute get which I think is suppose to be a function of the class ? I also have not been able to determine what the function get is suppose to do. It seems like it is reading the meltano.yaml for the include_paths entries and return all the paths in a list. In the project_files.py there are these back to back function you can see there is a meltano function.

    @property
    def meltano(self):
        """Return the contents of this projects `meltano.yml`."""
        if self._meltano is None:
            with open(self._meltano_file_path) as melt_f:
                self._meltano = yaml.safe_load(melt_f)
        return self._meltano

   @property
    def include_paths(self) -> List[Path]:
        """Return list of paths derived from glob patterns defined in the meltanofile."""
        include_path_patterns = self.meltano.get("include_paths", [])
        return self._resolve_include_paths(include_path_patterns)

In project.py there is a meltano function that returns a MeltanoFile class

    @property
    def meltano(self) -> MeltanoFile:
        """Return a copy of the current meltano config.

        Returns:
            the current meltano config
        """
        with self._meltano_rw_lock.read_lock():
            return MeltanoFile.parse(self.project_files.load())

The MeltanoFile class that is in meltano_file.py has a get_plugins_for_mappings.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
vischcommented, Jun 27, 2022

I can verify that I get this on Meltano with the Uvicorn feature flag enabled. I can’t replicate this on Linux.

1reaction
BuzzCutNormancommented, Jun 23, 2022

@tayloramurphy sure thing. I have python 3.9.12 installed. Meltano was installed using pipx and is meltano, version 2.1.0 . I get the error message even when I start meltano ui in a freshly initialized test project with the default meltano.yml file.

cc @visch @kgpayne @alexmarple

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why do I get AttributeError: 'NoneType' object has no attribute ...
NoneType means that instead of an instance of whatever Class or Object you think you're working with, you've actually got None .
Read more >
AttributeError: 'NoneType' object has no attribute 'getReleases'
Hi there, I am currently trying to get my experiment to integrate with our Biopac shock hardware via parallel port. I am running...
Read more >
AttributeError: 'NoneType' object has no attribute 'get' #286
Been trying to fix this for a few days now. Error: [api] Internal Server Error: /api/social/azuread-tenant-oauth2/ [api] Traceback (most ...
Read more >
AttributeError: 'NoneType' object has no attribute 'get' - Ray Tune
When I run my code I get the following error: any help please? Function checkpointing is disabled. This may result in unexpected behavior ......
Read more >
Deforum AttributeError: 'NoneType' object has no attribute 'get ...
I have a few people asking me about the AttributeError: 'NoneType' object has no attribute 'get' error when running 3D mode in deforum...
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