naina singhal
03/19/2024, 9:27 PMsky130_ef_ip_instramp
. When I use command ../cace/cace_gui.py
I get the following error : Traceback (most recent call last):
File "../cace/cace_gui.py", line 52, in <module>
from .gui.tksimpledialog import *
ImportError: attempted relative import with no known parent package
. Can you please tell me what am I doing wrong?aquiles viza
03/19/2024, 9:30 PMCOMMIT=b6b0b4c173a9b40a9274ba138792e6152aea59dd
python -m pip install git+<https://github.com/efabless/cace.git@$COMMIT>
This will install acording to the COMMIT (Which is the latests)aquiles viza
03/19/2024, 9:32 PMpip install cace
because sometimes it won't install the latest commit.
Then you use cace-gui
to open the toolnaina singhal
03/19/2024, 9:53 PMcace-gui
. But when I invoke it from sky130_ef_ip_instramp
folder using cace_gui.py
file, I get the same error.naina singhal
03/19/2024, 9:54 PMnaina singhal
03/19/2024, 9:56 PMsky130_ef_ip_instramp
folder worked. Thank you :)Tim Edwards
03/19/2024, 11:53 PMpip
and called directly from the command line as cace-gui
(or cace-cli
). Overall, it works much better this way, except for the confusion caused by changing the installation method right after I introduced the tool.naina singhal
03/20/2024, 12:20 AMInderjit Singh Dhanjal
03/20/2024, 4:38 PMTim Edwards
03/20/2024, 4:44 PMpip install tk
but apparently that didn't work. @Inderjit Singh Dhanjal: Can you post the error message you got when you did pip install tk
?Lucas Daudt Franck
03/20/2024, 4:47 PMsudo apt install python3-tk
?Inderjit Singh Dhanjal
03/20/2024, 4:56 PMInderjit Singh Dhanjal
03/20/2024, 4:56 PMInderjit Singh Dhanjal
03/20/2024, 4:59 PMPhạm Thế Hùng
03/22/2024, 3:41 AMnaina singhal
03/22/2024, 3:51 AMcace-gui
command from sky130_ef_ip... folder to open CACE.Phạm Thế Hùng
03/22/2024, 4:17 AMcace-gui
command. However, it is not true in bash shell.naina singhal
03/22/2024, 4:19 AMnaina singhal
03/22/2024, 4:20 AMCOMMIT=b6b0b4c173a9b40a9274ba138792e6152aea59dd
python -m pip install git+<https://github.com/efabless/cace.git@$COMMIT>
Phạm Thế Hùng
03/22/2024, 4:28 AMnaina singhal
03/22/2024, 4:37 AMTim Edwards
03/22/2024, 4:18 PMpip install
command, the tool had to be configured a bit differently from the description I gave in the workshop.
The current version of CACE installs with pip install cace --upgrade
and runs from the Linux command line as simply cace-gui
. Do not run it as python
and give the full path to cace-gui.py
. There is some way to do that but I don't know what it is off the top of my head.
For the error with cace-gui: command not found
: You can find a discussion of the problem and solution here:
https://stackoverflow.com/questions/35898734/pip-installs-packages-successfully-but-executables-not-found-from-command-line
In short, pip install
installs the executable into ~/.local/bin/
, and this is often not in the $PATH
environment variable and so is not found. The best thing to do is to make sure this path is added to $PATH
in your login shell, although you can also add it manually with export PATH=$PATH:~/.local/bin
, and you can also call ~/.local/bin/cace-gui
directly from the command line.Tim Edwards
03/22/2024, 4:19 PMexport PATH=$PATH:~/.local/bin
Phạm Thế Hùng
03/23/2024, 12:50 AMexport PATH=$PATH:~/.local/bin
. After that, I run the command: pip install cace --upgrade
. Finally, I opened Cace tool successfully using : cace-gui