Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

await archon.write_config(configFile) failed #36

Open
eh2006re opened this issue Apr 4, 2022 · 0 comments
Open

await archon.write_config(configFile) failed #36

eh2006re opened this issue Apr 4, 2022 · 0 comments

Comments

@eh2006re
Copy link

eh2006re commented Apr 4, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant