Hi <@U016EM8L91B>, I downloaded CACE from the git ...
# chipalooza
n
Hi @Tim Edwards, I downloaded CACE from the git repository. I am trying to run it on
sky130_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?
a
Maybe you did not install cace as a pip package. Run this command instead
Copy code
COMMIT=b6b0b4c173a9b40a9274ba138792e6152aea59dd
python -m pip install git+<https://github.com/efabless/cace.git@$COMMIT>
This will install acording to the COMMIT (Which is the latests)
I'm not using
pip install cace
because sometimes it won't install the latest commit. Then you use
cace-gui
to open the tool
👍 1
n
Hi @aquiles viza. Thank you so much for your reply. I did as you suggested. gui opens when I use
cace-gui
. But when I invoke it from
sky130_ef_ip_instramp
folder using
cace_gui.py
file, I get the same error.
Is that not a correct way to invoke cace for a perticular schematic?
simply using cace-gui from
sky130_ef_ip_instramp
folder worked. Thank you :)
🙌 1
t
Yes, sorry, this is a change from what I said in my presentation, because after that I got Leo Moser to package it up properly, and in just a day or so he had it registered with PiPI as a package, which allows it now to be installed with
pip
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.
n
Ok. Thank you so much for explanation @Tim Edwards
i
Hello, i cannot open cace, can someone help
t
Per the above: I suggested
pip 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
?
l
Maybe
sudo apt install python3-tk
?
i
Yes, I tried sudo apt installpython3-tk, its working now,
Thanks @Lucas Daudt Franck and Tim
👍 1
Also, one more question, I cloned local work on PC into GitHub just as shown in Video, how to push the changes in PC back to GitHub?
p
Hi Guys, I tried using the commands above, but I cannot open Cace-gui. Can someone help me?
n
@Phạm Thế Hùng Just use
cace-gui
command from sky130_ef_ip... folder to open CACE.
p
@naina singhal I also used
cace-gui
command. However, it is not true in bash shell.
n
@Phạm Thế Hùng If CACE is installed, cace-gui should be present there.
I used following commands for cace installation :
COMMIT=b6b0b4c173a9b40a9274ba138792e6152aea59dd
python -m pip install git+<https://github.com/efabless/cace.git@$COMMIT>
p
@naina singhal I tried them and got the same errors.
n
Sorry I have no idea why the CACE is not installing properly. @Tim Edwards can help you with the issue.
❤️ 1
t
I think there are two different types of errors that are now mixed together in this slack thread. For people who are getting the error "attempted relative import with no known parent package": In order to make CACE accessible through PiPI with a simple
pip 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.
The short version of the post above is just do this:
export PATH=$PATH:~/.local/bin
p
Thanks @Tim Edwards and @naina singhal for supporting me. I tried configuring the .bashrc file in my linux system by adding the following command:
export PATH=$PATH:~/.local/bin
. After that, I run the command:
pip install cace --upgrade
. Finally, I opened Cace tool successfully using :
cace-gui
👍 1