Comments (4)
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.
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.
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.
I think this should be fixed in 386a7b8.
from glasgow.
Related Issues (20)
- Add a flag to `glasgow factory` which indicates that the device has been modified from the original design
- "glasgow --version" produces TypeError: entry_points() got an unexpected keyword argument 'group' HOT 10
- Calling `exit()` from script / REPL does not terminate glasgow HOT 1
- Mention cases (3d-printable as well) in the documentation HOT 2
- glasgow build also has importlib issues with python <3.10
- Add the very nice diagrams from CrowdSupply packaging on the website
- running Glasgow exectutable produces "TypeError: expected string or bytes-like object" in packaging\utils.py HOT 21
- Export BOM for revC3 and add whichever script generates it in the tree
- udev rules on Arch(-ish) systems HOT 7
- Extract test code from each applet to a separate `test.py` file HOT 1
- Python 3.12 is not supported
- Update bitstruct to use Python type annotations
- Documentation: REPL: suggestions for UART example HOT 1
- [RFC draft] New pin management system HOT 1
- Merge queue ignores failing tests and merges PRs anyway
- Reproducible builds for the firmware
- [RFC] Use Nix instead of Docker for reproducible firmware builds HOT 5
- Find a way to enable RAW_IO WinUSB policy when running on Windows
- A CLI command to create a directory tree for a new out of tree applet
- jtag-probe: JEDEC manufacturer lookup fails for bank 15 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glasgow.