Giter Site home page Giter Site logo

Comments (4)

jeremyherbert avatar jeremyherbert commented on May 31, 2024

If I install amaranth separately using pip3 install --user --upgrade 'amaranth[builtin-yosys]', then the install succeeds:

$ python3 setup.py develop --user
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
  warnings.warn(
/usr/lib/python3/dist-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
  warnings.warn(
running develop
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
  warnings.warn(
running egg_info
writing glasgow.egg-info/PKG-INFO
writing dependency_links to glasgow.egg-info/dependency_links.txt
writing entry points to glasgow.egg-info/entry_points.txt
writing requirements to glasgow.egg-info/requires.txt
writing top-level names to glasgow.egg-info/top_level.txt
writing manifest file 'glasgow.egg-info/SOURCES.txt'
running build_ext
Creating /home/jeremy/.local/lib/python3.10/site-packages/glasgow.egg-link (link to .)
glasgow 0.1.dev1687+ga283e8f is already the active version in easy-install.pth
Installing glasgow script to /home/jeremy/.local/bin

Installed /home/jeremy/Downloads/glasgow/software
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning:  is an invalid version and will not be supported in a future release
  warnings.warn(
Processing dependencies for glasgow==0.1.dev1687+ga283e8f
Searching for pyvcd==0.2.4
Best match: pyvcd 0.2.4
Adding pyvcd 0.2.4 to easy-install.pth file

Using /home/jeremy/.local/lib/python3.10/site-packages
Searching for libusb1==2.0.1
Best match: libusb1 2.0.1
Adding libusb1 2.0.1 to easy-install.pth file

Using /usr/lib/python3/dist-packages
Searching for fx2==0.9
Best match: fx2 0.9
Processing fx2-0.9-py3.10.egg
fx2 0.9 is already the active version in easy-install.pth
Installing fx2tool script to /home/jeremy/.local/bin

Using /home/jeremy/.local/lib/python3.10/site-packages/fx2-0.9-py3.10.egg
Searching for crcmod==1.7
Best match: crcmod 1.7
Adding crcmod 1.7 to easy-install.pth file

Using /usr/lib/python3/dist-packages
Searching for bitarray==1.6.3
Best match: bitarray 1.6.3
Adding bitarray 1.6.3 to easy-install.pth file

Using /usr/lib/python3/dist-packages
Searching for amaranth==0.3
Best match: amaranth 0.3
Adding amaranth 0.3 to easy-install.pth file
Installing amaranth-rpc script to /home/jeremy/.local/bin
Installing nmigen-rpc script to /home/jeremy/.local/bin

Using /home/jeremy/.local/lib/python3.10/site-packages
Searching for aiohttp==3.8.1
Best match: aiohttp 3.8.1
Adding aiohttp 3.8.1 to easy-install.pth file

Using /usr/lib/python3/dist-packages
Searching for Jinja2==2.11.3
Best match: Jinja2 2.11.3
Adding Jinja2 2.11.3 to easy-install.pth file

Using /home/jeremy/.local/lib/python3.10/site-packages
Searching for MarkupSafe==2.1.2
Best match: MarkupSafe 2.1.2
Adding MarkupSafe 2.1.2 to easy-install.pth file

Using /home/jeremy/.local/lib/python3.10/site-packages
Finished processing dependencies for glasgow==0.1.dev1687+ga283e8f

from glasgow.

jeremyherbert avatar jeremyherbert commented on May 31, 2024

Hmm, this may still be broken somehow, it seems that amaranth cannot find yosys:

$ glasgow run jtag-pinout --port A --pins-jtag 0,1,2,3 -M
I: g.device.hardware: building bitstream ID ea730248c9c25e0238b730da3a476f61
build_top.sh: 8: yosys: not found
Traceback (most recent call last):
  File "/home/jeremy/.local/bin/glasgow", line 33, in <module>
    sys.exit(load_entry_point('glasgow', 'console_scripts', 'glasgow')())
  File "/home/jeremy/Downloads/glasgow/software/glasgow/cli.py", line 857, in main
    exit(loop.run_until_complete(_main()))
  File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
    return future.result()
  File "/home/jeremy/Downloads/glasgow/software/glasgow/cli.py", line 526, in _main
    await device.download_target(plan, rebuild=args.rebuild)
  File "/home/jeremy/Downloads/glasgow/software/glasgow/device/hardware.py", line 427, in download_target
    await self.download_bitstream(plan.execute(), plan.bitstream_id)
  File "/home/jeremy/Downloads/glasgow/software/glasgow/target/hardware.py", line 118, in execute
    products  = self.lower.execute_local(build_dir)
  File "/home/jeremy/.local/lib/python3.10/site-packages/amaranth/build/run.py", line 98, in execute_local
    subprocess.check_call(["sh", "{}.sh".format(self.script)])
  File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['sh', 'build_top.sh']' returned non-zero exit status 127.

If I install https://github.com/YosysHQ/oss-cad-suite-build#installation it can find yosys and it works correctly.

from glasgow.

whitequark avatar whitequark commented on May 31, 2024

When I run the setup.py command as per the readme, I receive the following error:

error: The 'amaranth' distribution was not found and is required by glasgow

I think what's happening here is that I converted amaranth-lang/amaranth to use pyproject.toml and Glasgow isn't there yet. I'll take a look.

Hmm, this may still be broken somehow, it seems that amaranth cannot find yosys:

Glasgow requires two different versions of Yosys (one for Verilog export, one for synthesis); this is a different issue that I've filed as #302.

from glasgow.

whitequark avatar whitequark commented on May 31, 2024

I think this should be fixed in 386a7b8.

from glasgow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.