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

Cannot Define config.ini Path #30

Open
hexadecimalDinosaur opened this issue Jan 27, 2023 Discussed in #29 · 0 comments
Open

Cannot Define config.ini Path #30

hexadecimalDinosaur opened this issue Jan 27, 2023 Discussed in #29 · 0 comments

Comments

@hexadecimalDinosaur
Copy link
Owner

Discussed in #29

Originally posted by Brettem January 27, 2023
Describe the bug:
I am unable to get octoprint-cli to recognize it's own config file. I created a new directory on my local device and created a config.ini file within it using the template provided. However, no matter how I try to call the -c command I cannot define the config path so no other function will run.

To Reproduce
Steps to reproduce the behavior:

pip install octoprint-cli

octoprint-cli -c .\config.ini
>>>Invalid or Missing Arguments

octoprint-cli -c ".\config.ini"
>>>Invalid or Missing Arguments

octoprint-cli -c=.\config.ini
>>>usage: octoprint-cli [-h] [-c CONFIG_PATH] [-v]
                     {version,continuous,layers,gcode,print,connection,temp,system,files}
                     ...
>>>octoprint-cli: error: invalid choice: '.\\config.ini' (choose from 'version', 'continuous', 'layers', 'gcode', 'print', 'connection', 'temp', 'system', 'file
s')

octoprint-cli version
>>>Configuration file is not complete or does not exist

No matter what I try I am unable to get the app to recognize the config file I created. It appears that the octoprint-cli doesn't like my argument format but I'm not sure how else to configure it if I am just trying to define the path to the config file required for all positional arguments.

Expected behavior:
After cd into directory where created config file is located, run >octoprint-cli -c ".\config.ini" and config path is redefined.

Environment Information:

OS: [e.g. iOS] both OctoPi and Windows 11
Version 3.3.2 (cuurent)
Python Version: 3,8,8
Dependency versions
OctoPrint version: current
3D Printer Model: Prusa i3 Mk3S+

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