> Have you rebuilt gem5?

I have rebuilt after installing pydot, but I don't remember if I did after 
changing the "dot_writer.py" file.
I will rebuild again just to be sure.
Thanks much for your help with this.

Cheers,
~Aaron Vose

-----Original Message-----
From: Boris Shingarov <shinga...@labware.com> 
Sent: Tuesday, June 27, 2023 6:58 PM
To: Aaron Vose <av...@maxlinear.com>; The gem5 Users mailing list 
<gem5-users@gem5.org>
Subject: Re: [gem5-users] Gem5 with pydot

This email was sent from outside of MaxLinear.


Have you rebuilt gem5?

On 6/27/23 18:52, Aaron Vose wrote:
> Boris,
>
> Thanks much for your suggestion! It's very interesting, because I've done as 
> you suggested, and it doesn't seem to drop me into a debug shell at all. I 
> even changed those lines in "dot_writer.py" to be the following, and I don't 
> see any of the print messages I added. It doesn't print any of my new 
> additions at all:
> try:
>      import pydot
>      print("!!avose: Have PyDot!");
> except:
>      print("!!avose: Miss PyDot!");
>      pydot = False
>
> I wonder if support for pydot is somehow disabled elsewhere? When I try the 
> above code in a new file called "test_pydot.py", I do see what I would 
> expect: "!!avose: Have PyDot!".
>
> Thanks again,
> ~Aaron Vose
>
> -----Original Message-----
> From: Boris Shingarov <shinga...@labware.com>
> Sent: Monday, June 26, 2023 3:22 PM
> To: The gem5 Users mailing list <gem5-users@gem5.org>
> Cc: Aaron Vose <av...@maxlinear.com>
> Subject: Re: [gem5-users] Gem5 with pydot
>
> This email was sent from outside of MaxLinear.
>
>
> I would debug it like this:
>
> Near the beginning of dot_writer.py, there is:
>
> try:
>       import pydot
> except:
>       pydot = False
>
> Replace the "pydot = False" with "import pdb; pdb.set_trace()".
> This will drop you into a debug shell where you can investigate why "import 
> pydot" failed.
>
> On 6/26/23 14:30, Aaron Vose via gem5-users wrote:
>> All my runs (and many, many examples I see online) have the following 
>> warning message:
>>
>> “warn: No dot file generated. Please install pydot to generate the 
>> dot file and pdf.”
>>
>> However, I know I have pydot installed; see the following:
>>
>> prompt> pip install pydot
>>
>> Requirement already satisfied: pydot in 
>> /home/avose/pyenv396/lib/python3.9/site-packages (1.4.2)
>>
>> Requirement already satisfied: pyparsing>=2.1.4 in 
>> /home/avose/pyenv396/lib/python3.9/site-packages (from pydot) (3.1.0)
>>
>> I even went back and rebuilt the entire Gem5 again from scratch after 
>> I made sure pydot was installed. I made sure I built Gem5 using the 
>> same environment (/home/avose/pyenv396) in which I installed pydot, 
>> and I still see this warning, and I don’t get any dot output.
>>
>> Does anyone else have a similar problem or any advice on how to fix this?
>>
>> Thanks much,
>>
>> ~Aaron Vose
>>
>>
>> _______________________________________________
>> gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an 
>> email to gem5-users-le...@gem5.org
>

_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to