Skip to content

await archon.write_config(configFile) failed  #36

@eh2006re

Description

@eh2006re

Hello, adss-archon developer
[after "pip install sdss-archon"]

I am looking at how to make use your sdsss-archon calls for our project. I created a simple standalone simulator to work with my testing program for some commands provided by controller.py. While I was testing write_config(configFile), it failed

confifFile = 'TOPATH/shortConfig.acf'
await archon.write_config(configFile)
[Errno 2] No such file or directory: '/home/marvel/.config/sdss/archon/archon.yaml'

I looked at ~/anaconda3/lib/python3.9/site-packages/archon/controller/controller.py,
in async def write_config():
if is_file:
self.acf_loaded = os.path.realpath(input)

I believe that this a typo or bug, shall this to be "self._acf_loaded = os.path.realpath(input)"?

once I changed to "self._acf_loaded = os.path.realpath(input)",
await archon.write_config(configFile) passed OK

Can you confirm this? if this is right, please update your code

By the way
can we copy TOPATH/anaconda3/lib/python3.9/site-packages/archon/etc/archon.yml to
$HOME/.config/sdss/archon/archon.yaml

Regards
Xiaofeng

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions