raysalemi / Python4RTLVerification

MIT License
120 stars 28 forks source link

Terminal gets stuck when running tox #5

Closed Chaitanyavedula18 closed 2 years ago

Chaitanyavedula18 commented 2 years ago

Hi @raysalemi , My terminal gets stuck when running tox. Please find the attachment below.

Screenshot 2022-09-18 at 2 52 28 AM

The following steps I have followed.

  1. Dowloaded Anaconda.
  2. Downloaded icarus verilog.
  3. pip install pyuvm
  4. git clone https://github.com/raysalemi/Python4RTLVerification.git
  5. cd Python4RTLVerification/
  6. pip install pytest tox
  7. tox

This is when the terminal gets stuck with the above snapshot.

my PATH environment variable contains the following. (base) chintu@Aarthis-MacBook-Air ~ % echo $PATH /opt/homebrew/bin:/Users/chintu/opt/anaconda3/bin:/Users/chintu/opt/anaconda3/condabin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

I am running on -zsh shell which is a default one for Mac.

Am I missing something here? Do I have to add the path of cocoon and pyuvm to my PATH env variable?

-Chaitanya

raysalemi commented 2 years ago

Hi @raysalemi ,

My terminal gets stuck when running tox. Please find the attachment below.

Screenshot 2022-09-18 at 2 52 28 AM

The following steps I have followed.

  1. Dowloaded Anaconda.

  2. Downloaded icarus verilog.

  3. pip install pyuvm

  4. git clone https://github.com/raysalemi/Python4RTLVerification.git

  5. cd Python4RTLVerification/

  6. pip install pytest tox

  7. tox

This is when the terminal gets stuck with the above snapshot.

my PATH environment variable contains the following.

(base) chintu@Aarthis-MacBook-Air ~ % echo $PATH

/opt/homebrew/bin:/Users/chintu/opt/anaconda3/bin:/Users/chintu/opt/anaconda3/condabin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

I am running on -zsh shell which is a default one for Mac.

Am I missing something here? Do I have to add the path of cocoon and pyuvm to my PATH env variable?

-Chaitanya

It looks like cocotb needs to be recompiled for your Mac. Notice that it's looking for Intel, but finding ARM (M5).

Try completely deleting the .tox directory.

Chaitanyavedula18 commented 2 years ago

Hi @raysalemi , Any idea how do we recompile cocotb for Mac? I tried removing the .tox folder in Python4RTLVerification, but still the same issue.

-Chaitanya

raysalemi commented 2 years ago

I would ask on the cocotb Issues forum (https://github.com/cocotb/cocotb/issues) or the cocotb Gitter channel. ( https://gitter.im/cocotb/Lobby)

I had no problem running with Icarus on my M5 Mac.

Ray

Chaitanyavedula18 commented 2 years ago

Hi @raysalemi , Thank you. The following article helps.

Title of the Issue :M1 Architecture Incompatibility #2986

Resolution : Dowloading Anaconda package for Mac M1 resolved the issue.

Screenshot 2022-09-19 at 10 00 25 AM
raysalemi commented 2 years ago

Aha! Nice solution.

On Mon, Sep 19, 2022 at 1:02 PM Chaitanya @.***> wrote:

Hi @raysalemi https://github.com/raysalemi , Thank you. The following article helps.

https://github.com/cocotb/cocotb/issues/2986#issue-1244362405

Title of the Issue :M1 Architecture Incompatibility #2986

Resolution : Dowloading Anaconda package for Mac M1 resolved the issue. [image: Screenshot 2022-09-19 at 10 00 25 AM] https://user-images.githubusercontent.com/42914168/191072811-e8ae274f-8ce7-4a5c-a345-2370e2cb7d46.png

— Reply to this email directly, view it on GitHub https://github.com/raysalemi/Python4RTLVerification/issues/5#issuecomment-1251296896, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYFXWTSJYOAWDS5TMOJKU3V7CMCLANCNFSM6AAAAAAQPMGBBM . You are receiving this because you were mentioned.Message ID: @.***>