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

Error with "make README.rst": "TypeError: Got secondary option for non boolean flag." #58

Closed
tcal-x opened this issue Oct 13, 2020 · 3 comments

Comments

@tcal-x
Copy link
Contributor

tcal-x commented Oct 13, 2020

This only affects you if you're updating README.rst.

To reproduce, remove README.rst (rm README.rst), then run make README.rst. After packages are downloaded and the conda env is entered, I see this:

touch /home/tim/symbiflow/symbiflow-examples/env/conda/envs/symbiflow-examples/bin/python
source /home/tim/symbiflow/symbiflow-examples/env/conda/bin/activate && conda activate symbiflow-examples && rst_include include README.src.rst - > README.rst
Traceback (most recent call last):
  File "/home/tim/symbiflow/symbiflow-examples/env/conda/envs/symbiflow-examples/bin/rst_include", line 5, in <module>
    from rst_include.rst_include_cli import cli_main
  File "/home/tim/symbiflow/symbiflow-examples/env/conda/envs/symbiflow-examples/lib/python3.8/site-packages/rst_include/rst_include_cli.py", line 38, in <module>
    def cli_main(traceback: Optional[bool] = None) -> None:
  File "/home/tim/.local/lib/python3.8/site-packages/click/decorators.py", line 170, in decorator
    _param_memo(f, OptionClass(param_decls, **attrs))
  File "/home/tim/.local/lib/python3.8/site-packages/click/core.py", line 1511, in __init__
    raise TypeError('Got secondary option for non boolean flag.')
TypeError: Got secondary option for non boolean flag.
make: *** [Makefile:5: README.rst] Error 1

I'm running Ubuntu 20.04.1 LTS.

@tcal-x
Copy link
Contributor Author

tcal-x commented Oct 13, 2020

I don't see the issue using the GCP Ubuntu 18.04 platform, so it must be something with my laptop configuration and/or Ubuntu 20.04.

I'll investigate...

@tcal-x
Copy link
Contributor Author

tcal-x commented Oct 13, 2020

After cleaning out symbiflow-examples, then manually going through the toolchain installation steps again, and activating the conda 'xc7' environment, I was able to make README.rst without seeing the same error.

So, I'll close this. However, the make README.rst flow seems strange. Even when I just installed and entered a brand new conda environment, doing make README.rst redoes the entire conda environment again.

@tcal-x tcal-x closed this as completed Oct 13, 2020
@mithro
Copy link
Contributor

mithro commented Oct 13, 2020

@tcal-x - Can you log a bug to investigate that?

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

2 participants