Closed dj0nes closed 2 years ago
@dj0nes Confirmed, thanks for finding this issue. I could reproduce it with
pyenv install 3.7.10
pyenv virtualenv 3.7.10 venv-3.7.10
pyenv activate venv-3.7.10
pip install emerge-viz
emerge
which gave me the same error. I'm not quite sure why exactly it's not working aas expected, since python 3.7 should have complete f-string support.
I've tested the same procedure with python 3.8, i.e.
pyenv install 3.8.12
pyenv virtualenv 3.8.12 venv-3.8.12
pyenv activate venv-3.8.12
pip install emerge-viz
emerge
and it starts up the way it should do:
(venv-3.8.12) grzegorz.lato@host ~ % emerge
usage: emerge [-h] [-c YAMLCONFIG] [-v] [-d] [-e] [-a LANGUAGE]
š Welcome to emerge 1.1.0 (2022-02-06 15:05:39)
optional arguments:
-h, --help show this help message and exit
-c YAMLCONFIG, --config YAMLCONFIG
set yaml config file
-v, --verbose set logging level to INFO
-d, --debug set logging level to DEBUG
-e, --error set logging level to ERROR
-a LANGUAGE, --add-config LANGUAGE
add a new config from a template, where LANGUAGE is one of [JAVA, SWIFT, C, CPP, GROOVY, JAVASCRIPT, TYPESCRIPT, KOTLIN, OBJC, RUBY, PY]
It seems that this is somehow specific to at least python 3.7.10. I will have a deeper look at it. As long as this is not fixed, I will (hopefully temporarily) remove the python 3.7
badge hint, to prevent more users running into this. A temporary solution for you @dj0nes could be to install and use a higher python version (as shown above). Keep you up to date if I can find the reason for this.
Thanks for looking into this! Using python 3.8.12 as suggested works.
Tangential, I did see fatal error: 'graphviz/cgraph.h' file not found
while pip tried installing emerge deps, fixed with:
brew install graphviz
pip install emerge-viz --global-option=build_ext --global-option="-I/usr/local/Cellar/graphviz/2.50.0/include/" --global-option="-L/usr/local/Cellar/graphviz/2.50.0/lib/" pygraphviz
Getting the following error when trying to start emerge:
Seems like python doesn't like this line? https://github.com/glato/emerge/blob/ac8adeb7144fef1c99e9ee9c1872551be9936cdc/emerge/languages/javaparser.py#L162
Describe your environment
Python 3.7.10 MacOS 11.6.2, intel cpu emerge-viz 1.1.0
To Reproduce Steps to reproduce the behavior: Install emerge. I had to
brew install graphviz
and then run the following to avoid a wheel issuerun emerge
Expected behavior emerge starts