Coder Social home page Coder Social logo

openxc7-snap's People

Contributors

hansfbaier avatar startforkiller avatar

Stargazers

Holiback avatar  avatar ludo avatar T. GARREL avatar François Galea avatar splinedrive avatar Masanori Ogino avatar Denis Denisov avatar Dien-Nhung Nguyen avatar Ryuta Suzuki avatar Chandler Klüser avatar  avatar  avatar  avatar a_p_u_r_o avatar Mark Johnson avatar Tobias avatar Jake Mercer avatar Jian Luo avatar Will Green avatar Victor Suarez Rovere avatar tyoc213 avatar Hansem Ro avatar Robert Valentine avatar Tommy Thorn avatar Vladimir Vishnevskii avatar

Watchers

 avatar Jake Mercer avatar  avatar

openxc7-snap's Issues

fasm falling back to slow python based parser

Currently building anything with the snap package will result in the following warning.

/snap/openxc7/current/usr/lib/python3/dist-packages/fasm/parser/__init__.py:30: RuntimeWarning: Unable to import fast Antlr4 parser implementation.
  ImportError: cannot import name 'antlr_to_tuple' from partially initialized module 'fasm.parser' (most likely due to a circular import) (/snap/openxc7/current/usr/lib/python3/dist-packages/fasm/parser/__init__.py)

  Falling back to the much slower pure Python textX based parser
  implementation.

As shown by mithro in chipsalliance/f4pga-examples#201 this can have a huge impact on build times and should be addressed.

Possible to update python?

I'm trying to use the snap install with oss-cad-suite + litex environments and I think I'm hitting a 3.8 vs 3.11 issue with a script crashing:

Python path configuration:
  PYTHONHOME = '/home/engin/oss-cad-suite'
  PYTHONPATH = (not set)
  program name = '/snap/openxc7/x1/usr/bin/nextpnr-xilinx'
  isolated = 0
  environment = 1
  user site = 0
  import site = 1
  sys._base_executable = '/snap/openxc7/x1/usr/bin/nextpnr-xilinx'
  sys.base_prefix = '/home/engin/oss-cad-suite'
  sys.base_exec_prefix = '/home/engin/oss-cad-suite'
  sys.executable = '/snap/openxc7/x1/usr/bin/nextpnr-xilinx'
  sys.prefix = '/home/engin/oss-cad-suite'
  sys.exec_prefix = '/home/engin/oss-cad-suite'
  sys.path = [
    '/home/engin/oss-cad-suite/lib/python38.zip',
    '/home/engin/oss-cad-suite/lib/python3.8',
    '/home/engin/oss-cad-suite/lib/python3.8/lib-dynload',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007f4c50fb1c00 (most recent call first):
<no Python frame>
Traceback (most recent call last):

Can the snap python version be updated to 3.11?

nextpnr-xilinx from the snap seems to be broken on Ubuntu 22.04 and derivatives

I'm attempting to build the blinky-qmtech project from the demo-projects repo, and while it works fine on my Mint 20.3 (Ubuntu 20.04 derivative), the build fails on Mint 21 (Ubuntu 22.04 derivative - and someone else had the same problem using Ubuntu 22.04 itself)

The problem seems to be python-related, and it's entirely possible I'm doing something wrong, but the error message I'm seeing is this:

nextpnr-xilinx --chipdb ../chipdb/xc7k325tffg676-1.bin --xdc blinky.xdc --json blinky.json --fasm blinky.fasm --verbose --debug
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python path configuration:
  PYTHONHOME = (not set)
  PYTHONPATH = (not set)
  program name = '/snap/nextpnr-kintex/x1/usr/bin/nextpnr-xilinx'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = '/snap/nextpnr-kintex/x1/usr/bin/nextpnr-xilinx'
  sys.base_prefix = '/usr'
  sys.base_exec_prefix = '/usr'
  sys.executable = '/snap/nextpnr-kintex/x1/usr/bin/nextpnr-xilinx'
  sys.prefix = '/usr'
  sys.exec_prefix = '/usr'
  sys.path = [
    '/usr/lib/python38.zip',
    '/usr/lib/python3.8',
    '/usr/lib/lib-dynload',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007f4b200f67c0 (most recent call first):
<no Python frame>
make: *** [Makefile:25: blinky.fasm] Error 1

Python is installed and working well enough to use litex, so I think the problem is related to the snap or its configuration.

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.