psurply / ReGAL

A set of scripts used to assist reverse engineering of old-school Programmable Array Logic devices.
MIT License
66 stars 7 forks source link

fresh install doesn't work #5

Closed ladmanj closed 1 year ago

ladmanj commented 1 year ago

Hi I installed the package according to instructions and trying to build the examples attached.

examples/reg$ regal build -o test.jed device.yaml reg.v 
Traceback (most recent call last):
  File "/home/ladmanj/.local/bin/regal", line 5, in <module>
    from regal.__main__ import main
ModuleNotFoundError: No module named 'regal'

Can you help me? What did I wrong? Many thanks J.

psurply commented 1 year ago

Hi @ladmanj

I am not 100% sure but this error sometimes happens when the package is not installed in the same python version used to run the entry point. You can try these steps:

$ which python

This will give you the path to your default python installation. You can then re-run the pip command with the same Python version:

/path/to/python -m pip install . --user --upgrade

Let me know if that helps. Thank you

ladmanj commented 1 year ago

Yes it helped. It was incompatible with python and/or pip bundled with https://github.com/YosysHQ/oss-cad-suite-build. Also their yosys version is somehow incompatible or inaccessible.

If installed after sudo apt install python3-pip and sudo apt install yosys then everything seemingly works. I don't know yet, whether the output makes sense or not.

Unfortunately I'm not as familiar with python and with GALs. I'm ok with verilog and FPGAs thou. I need to implement some glue logic to a retro system with GAL chip ...