cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #amaranth-lang
nyanotech has quit [Remote host closed the connection]
nyanotech has joined #amaranth-lang
balrog has quit [Ping timeout: 252 seconds]
balrog has joined #amaranth-lang
Degi has quit [Ping timeout: 276 seconds]
Degi has joined #amaranth-lang
conventia[m] has quit [Quit: Idle timeout reached: 172800s]
frgo has quit [Ping timeout: 248 seconds]
<benny2366[m]>
ok next question I installed amaranth via the command line on macos , now when I do from amaranth import * it trows an error that it can is not installed , so asume that i need to add it to the PATH?
<galibert[m]>
to PYTHONPATH iirc
<benny2366[m]>
and how does one do that ?
<galibert[m]>
dunno, not using macos
<whitequark[cis]>
how exactly did you install it?
<whitequark[cis]>
"via the command line" is not specific enough
<whitequark[cis]>
if that succeeded, you shouldn't need to do anything special to do from amaranth import *
<benny2366[m]>
ok weirdly enough in VSC it does work but not in pycharm
<whitequark[cis]>
ah, pycharm uses a virtualenv. so you'll have to install it in the virtualenv
<whitequark[cis]>
refer to the pycharm manual for that
<jeanthomas>
looks like a pythonpath issue or python environment issue
<benny2366[m]>
aaah ok so everytime i do a new project i have to install the package ?
<jeanthomas>
I am running Amaranth on macOS just fine
<whitequark[cis]>
generally yes, this is the modern workflow: you install the package once per project
<whitequark[cis]>
not exclusive to python, most new languages work that way
<whitequark[cis]>
the advantage is that you can use e.g. amaranth 0.6+git for one project without breaking another that works on amaranth 0.5 only
<benny2366[m]>
hmmm ok intresting.
<whitequark[cis]>
in this case, pycharm seems to assume that this is what you want
<benny2366[m]>
ok another question , how did you add yosys to the PATH?
<whitequark[cis]>
i don't understand the question
<whitequark[cis]>
amaranth doesn't mess with your PATH
<benny2366[m]>
"amaranth._toolchain.ToolNotFound: Could not find required tool yosys in PATH. Place it directly in PATH or specify path explicitly via the YOSYS environment variable" getting this error...
<benny2366[m]>
so either I did a whoepsie or something else is wrong ?
<whitequark[cis]>
so, the builtin-yosys business installs only the copy of yosys required for amaranth-to-verilog conversion
<benny2366[m]>
ok so that means ?
<whitequark[cis]>
it's not usable for general synthesis tasks (the reason it exists is so that people who e.g. synthesize with vivado don't have to install yosys on top of that)
<benny2366[m]>
ok the thing is , yes wanted to say oss-cad-suite i have installed, i can run it seperatly via the command :"source /Users/ben/Documents/oss-cad-suite/environment"
<whitequark[cis]>
then you should run the amaranth code you're running in a shell where you first ran the source ... command