Cannot launch qabro on a platform without pci
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bugit |
Fix Released
|
High
|
Pierre Equoy |
Bug Description
I was trying to use qabro on my arm64 uc20 project. Our project does not have a PCI bus in design.
When launching qabro with the following command, it raises an error.
patliu@Ambarella:~$ snap install qabro --devmode
qabro 0.14 from Pierre Equoy (pieq) installed
patliu@Ambarella:~$ qabro
pcilib: Cannot open /proc/bus/pci
lspci: Cannot find any working access method.
Traceback (most recent call last):
File "/snap/
sys.
File "/snap/
tags=args.tags)
File "/snap/
tags=
File "/snap/
std_info = AttachmentAssis
File "/snap/
lspci_output = (subprocess.
File "/snap/
**kwargs)
File "/snap/
output=stdout, stderr=stderr)
subprocess.
[Failure rate]
100%
[Additional information]
Hardware: ARM 64
Image: uc20 for our project
CPU: 4 core, Cortex A53
RAM: 1GB DDR4
Kernel: 5.4
Related branches
- Patrick Liu (community): Approve
-
Diff: 76 lines (+19/-12)2 files modifiedqabro/bug_assistant.py (+15/-10)
qabro/utils.py (+4/-2)
Changed in qabro: | |
milestone: | none → 0.15 |
assignee: | nobody → Pierre Equoy (pieq) |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in qabro: | |
status: | Confirmed → Fix Committed |
Changed in qabro: | |
status: | Fix Committed → Fix Released |
According to OP, the device in question does not have a PCI Bus, which results to lspci not being able to run.
Indeed, if trying to run lspci from within the snap, we get the same error:
$ snap run --shell qabro /home/user$ lspci
user@hostname:
pcilib: Cannot open /proc/bus/pci
lspci: Cannot find any working access method.
QAbro has to be made more flexible and not fail if lspci returns an error.