Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uniqueid.id empty on linux. #114

Closed
tshirtman opened this issue Mar 1, 2015 · 2 comments · Fixed by #115
Closed

uniqueid.id empty on linux. #114

tshirtman opened this issue Mar 1, 2015 · 2 comments · Fixed by #115

Comments

@tshirtman
Copy link
Member

seems lshw doesn't return the expected string, so result is empty for me.

lshw output:

    description: Computer
    bits: 64 bits
    fonctionnalités: vsyscall32
  *-core
       description: Motherboard
       identifiant matériel: 0
     *-memory
          description: Mémoire système
          identifiant matériel: 0
          taille: 7732MiB
     *-cpu
          produit: AMD Phenom(tm) II X6 1100T Processor
          fabriquant: Advanced Micro Devices [AMD]
          identifiant matériel: 1
          information bus: cpu@0
          taille: 800MHz
          capacité: 800MHz
          bits: 64 bits
          fonctionnalités: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp x86-64 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt nodeid_msr cpb hw_pstate npt lbrv svm_lock nrip_save pausefilter vmmcall cpufreq
     *-pci:0
          description: Host bridge
          produit: RS880 Host Bridge
          fabriquant: Advanced Micro Devices, Inc. [AMD]
          identifiant matériel: 100
          information bus: pci@0000:00:00.0
          version: 00
          bits: 32 bits
          horloge: 66MHz
        *-pci:0
             description: PCI bridge
             produit: AMD RS780/RS880 PCI to PCI bridge (int gfx)
             fabriquant: ASUSTeK Computer Inc.
             identifiant matériel: 1
             information bus: pci@0000:00:01.0
             version: 00
             bits: 32 bits
             horloge: 66MHz
             fonctionnalités: pci normal_decode bus_master cap_list
             ressources: portE/S:c000(taille=4096) mémoire:fe800000-fe9fffff portE/S:d0000000(taille=268435456)
           *-display
                description: VGA compatible controller
                produit: RS880 [Radeon HD 4250]
                fabriquant: Advanced Micro Devices, Inc. [AMD/ATI]
                identifiant matériel: 5
                information bus: pci@0000:01:05.0
                version: 00
                bits: 32 bits
                horloge: 33MHz
                fonctionnalités: vga_controller bus_master cap_list rom
                configuration: driver=radeon latency=0
                ressources: irq:18 mémoire:d0000000-dfffffff portE/S:c000(taille=256) mémoire:fe9f0000-fe9fffff mémoire:fe800000-fe8fffff
           *-multimedia
                description: Audio device
                produit: RS880 HDMI Audio [Radeon HD 4200 Series]
                fabriquant: Advanced Micro Devices, Inc. [AMD/ATI]
                identifiant matériel: 5.1
                information bus: pci@0000:01:05.1
                version: 00
                bits: 32 bits
                horloge: 33MHz
                fonctionnalités: bus_master cap_list
                configuration: driver=snd_hda_intel latency=0
                ressources: irq:19 mémoire:fe9e8000-fe9ebfff
        *-pci:1
             description: PCI bridge
             produit: RS780/RS880 PCI to PCI bridge (PCIE port 4)
             fabriquant: Advanced Micro Devices, Inc. [AMD]
             identifiant matériel: 9
             information bus: pci@0000:00:09.0
             version: 00
             bits: 32 bits
             horloge: 33MHz
             fonctionnalités: pci normal_decode bus_master cap_list
             configuration: driver=pcieport
             ressources: irq:40 mémoire:fea00000-feafffff
           *-usb
                description: USB controller
                produit: ASM1042 SuperSpeed USB Host Controller
                fabriquant: ASMedia Technology Inc.
                identifiant matériel: 0
                information bus: pci@0000:02:00.0
                version: 00
                bits: 64 bits
                horloge: 33MHz
                fonctionnalités: xhci bus_master cap_list
                configuration: driver=xhci_hcd latency=0
                ressources: irq:17 mémoire:feaf0000-feaf7fff
        *-pci:2
             description: PCI bridge
             produit: RS780/RS880 PCI to PCI bridge (PCIE port 5)
             fabriquant: Advanced Micro Devices, Inc. [AMD]
             identifiant matériel: a
             information bus: pci@0000:00:0a.0
             version: 00
             bits: 32 bits
             horloge: 33MHz
             fonctionnalités: pci normal_decode bus_master cap_list
             configuration: driver=pcieport
             ressources: irq:41 portE/S:d000(taille=4096) portE/S:fdf00000(taille=1048576)
           *-network
                description: Ethernet interface
                produit: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
                fabriquant: Realtek Semiconductor Co., Ltd.
                identifiant matériel: 0
                information bus: pci@0000:03:00.0
                nom logique: eth0
                version: 06
                numéro de série: f4:6d:04:4f:06:33
                taille: 100Mbit/s
                capacité: 1Gbit/s
                bits: 64 bits
                horloge: 33MHz
                fonctionnalités: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
                configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168e-3_0.0.4 03/27/12 ip=192.168.0.10 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
                ressources: irq:49 portE/S:d800(taille=256) mémoire:fdfff000-fdffffff mémoire:fdff8000-fdffbfff
        *-storage
             description: SATA controller
             produit: SB7x0/SB8x0/SB9x0 SATA Controller [IDE mode]
             fabriquant: Advanced Micro Devices, Inc. [AMD/ATI]
             identifiant matériel: 11
             information bus: pci@0000:00:11.0
             version: 40
             bits: 32 bits
             horloge: 66MHz
             fonctionnalités: storage ahci_1.0 bus_master cap_list
             configuration: driver=ahci latency=64
             ressources: irq:19 portE/S:b000(taille=8) portE/S:a000(taille=4) portE/S:9000(taille=8) portE/S:8000(taille=4) portE/S:7000(taille=16) mémoire:fe7ffc00-fe7fffff
        *-usb:0
             description: USB controller
             produit: SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
             fabriquant: Advanced Micro Devices, Inc. [AMD/ATI]
             identifiant matériel: 12
             information bus: pci@0000:00:12.0
             version: 00
             bits: 32 bits
             horloge: 66MHz
             fonctionnalités: ohci bus_master
             configuration: driver=ohci-pci latency=64
             ressources: irq:18 mémoire:fe7fe000-fe7fefff
        *-usb:1
             description: USB controller
             produit: SB7x0/SB8x0/SB9x0 USB EHCI Controller
             fabriquant: Advanced Micro Devices, Inc. [AMD/ATI]
             identifiant matériel: 12.2
             information bus: pci@0000:00:12.2
             version: 00
             bits: 32 bits
             horloge: 66MHz
             fonctionnalités: ehci bus_master cap_list
             configuration: driver=ehci-pci latency=64
             ressources: irq:17 mémoire:fe7ff800-fe7ff8ff
        *-usb:2
             description: USB controller
             produit: SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
             fabriquant: Advanced Micro Devices, Inc. [AMD/ATI]
             identifiant matériel: 13
             information bus: pci@0000:00:13.0
             version: 00
             bits: 32 bits
             horloge: 66MHz
             fonctionnalités: ohci bus_master
             configuration: driver=ohci-pci latency=64
             ressources: irq:18 mémoire:fe7fd000-fe7fdfff
        *-usb:3
             description: USB controller
             produit: SB7x0/SB8x0/SB9x0 USB EHCI Controller
             fabriquant: Advanced Micro Devices, Inc. [AMD/ATI]
             identifiant matériel: 13.2
             information bus: pci@0000:00:13.2
             version: 00
             bits: 32 bits
             horloge: 66MHz
             fonctionnalités: ehci bus_master cap_list
             configuration: driver=ehci-pci latency=64
             ressources: irq:17 mémoire:fe7ff400-fe7ff4ff
        *-serial NON-RÉCLAMÉ
             description: SMBus
             produit: SBx00 SMBus Controller
             fabriquant: Advanced Micro Devices, Inc. [AMD/ATI]
             identifiant matériel: 14
             information bus: pci@0000:00:14.0
             version: 42
             bits: 32 bits
             horloge: 66MHz
             configuration: latency=0
        *-ide
             description: IDE interface
             produit: SB7x0/SB8x0/SB9x0 IDE Controller
             fabriquant: Advanced Micro Devices, Inc. [AMD/ATI]
             identifiant matériel: 14.1
             information bus: pci@0000:00:14.1
             version: 40
             bits: 32 bits
             horloge: 66MHz
             fonctionnalités: ide bus_master
             configuration: driver=pata_atiixp latency=64
             ressources: irq:17 portE/S:1f0(taille=8) portE/S:3f6 portE/S:170(taille=8) portE/S:376 portE/S:ff00(taille=16)
        *-multimedia
             description: Audio device
             produit: SBx00 Azalia (Intel HDA)
             fabriquant: Advanced Micro Devices, Inc. [AMD/ATI]
             identifiant matériel: 14.2
             information bus: pci@0000:00:14.2
             version: 40
             bits: 64 bits
             horloge: 33MHz
             fonctionnalités: bus_master cap_list
             configuration: driver=snd_hda_intel latency=64
             ressources: irq:16 mémoire:fe7f8000-fe7fbfff
        *-isa
             description: ISA bridge
             produit: SB7x0/SB8x0/SB9x0 LPC host controller
             fabriquant: Advanced Micro Devices, Inc. [AMD/ATI]
             identifiant matériel: 14.3
             information bus: pci@0000:00:14.3
             version: 40
             bits: 32 bits
             horloge: 66MHz
             fonctionnalités: isa bus_master
             configuration: latency=0
        *-pci:3
             description: PCI bridge
             produit: SBx00 PCI to PCI Bridge
             fabriquant: Advanced Micro Devices, Inc. [AMD/ATI]
             identifiant matériel: 14.4
             information bus: pci@0000:00:14.4
             version: 40
             bits: 32 bits
             horloge: 66MHz
             fonctionnalités: pci subtractive_decode bus_master
             ressources: portE/S:e000(taille=4096) mémoire:feb00000-febfffff
           *-usb:0
                description: USB controller
                produit: VT82xxxxx UHCI USB 1.1 Controller
                fabriquant: VIA Technologies, Inc.
                identifiant matériel: 5
                information bus: pci@0000:04:05.0
                version: 61
                bits: 32 bits
                horloge: 33MHz
                fonctionnalités: uhci bus_master cap_list
                configuration: driver=uhci_hcd latency=64
                ressources: irq:20 portE/S:ec00(taille=32)
           *-usb:1
                description: USB controller
                produit: VT82xxxxx UHCI USB 1.1 Controller
                fabriquant: VIA Technologies, Inc.
                identifiant matériel: 5.1
                information bus: pci@0000:04:05.1
                version: 61
                bits: 32 bits
                horloge: 33MHz
                fonctionnalités: uhci bus_master cap_list
                configuration: driver=uhci_hcd latency=64
                ressources: irq:21 portE/S:e880(taille=32)
           *-usb:2
                description: USB controller
                produit: USB 2.0
                fabriquant: VIA Technologies, Inc.
                identifiant matériel: 5.2
                information bus: pci@0000:04:05.2
                version: 63
                bits: 32 bits
                horloge: 33MHz
                fonctionnalités: ehci bus_master cap_list
                configuration: driver=ehci-pci latency=64
                ressources: irq:22 mémoire:febffc00-febffcff
        *-usb:4
             description: USB controller
             produit: SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
             fabriquant: Advanced Micro Devices, Inc. [AMD/ATI]
             identifiant matériel: 14.5
             information bus: pci@0000:00:14.5
             version: 00
             bits: 32 bits
             horloge: 66MHz
             fonctionnalités: ohci bus_master
             configuration: driver=ohci-pci latency=64
             ressources: irq:18 mémoire:fe7fc000-fe7fcfff
        *-usb:5
             description: USB controller
             produit: SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
             fabriquant: Advanced Micro Devices, Inc. [AMD/ATI]
             identifiant matériel: 16
             information bus: pci@0000:00:16.0
             version: 00
             bits: 32 bits
             horloge: 66MHz
             fonctionnalités: ohci bus_master
             configuration: driver=ohci-pci latency=64
             ressources: irq:18 mémoire:fe7f7000-fe7f7fff
        *-usb:6
             description: USB controller
             produit: SB7x0/SB8x0/SB9x0 USB EHCI Controller
             fabriquant: Advanced Micro Devices, Inc. [AMD/ATI]
             identifiant matériel: 16.2
             information bus: pci@0000:00:16.2
             version: 00
             bits: 32 bits
             horloge: 66MHz
             fonctionnalités: ehci bus_master cap_list
             configuration: driver=ehci-pci latency=64
             ressources: irq:17 mémoire:fe7ff000-fe7ff0ff
     *-pci:1
          description: Host bridge
          produit: Family 10h Processor HyperTransport Configuration
          fabriquant: Advanced Micro Devices, Inc. [AMD]
          identifiant matériel: 101
          information bus: pci@0000:00:18.0
          version: 00
          bits: 32 bits
          horloge: 33MHz
     *-pci:2
          description: Host bridge
          produit: Family 10h Processor Address Map
          fabriquant: Advanced Micro Devices, Inc. [AMD]
          identifiant matériel: 102
          information bus: pci@0000:00:18.1
          version: 00
          bits: 32 bits
          horloge: 33MHz
     *-pci:3
          description: Host bridge
          produit: Family 10h Processor DRAM Controller
          fabriquant: Advanced Micro Devices, Inc. [AMD]
          identifiant matériel: 103
          information bus: pci@0000:00:18.2
          version: 00
          bits: 32 bits
          horloge: 33MHz
     *-pci:4
          description: Host bridge
          produit: Family 10h Processor Miscellaneous Control
          fabriquant: Advanced Micro Devices, Inc. [AMD]
          identifiant matériel: 104
          information bus: pci@0000:00:18.3
          version: 00
          bits: 32 bits
          horloge: 33MHz
          configuration: driver=k10temp
          ressources: irq:0
     *-pci:5
          description: Host bridge
          produit: Family 10h Processor Link Control
          fabriquant: Advanced Micro Devices, Inc. [AMD]
          identifiant matériel: 105
          information bus: pci@0000:00:18.4
          version: 00
          bits: 32 bits
          horloge: 33MHz
@tshirtman
Copy link
Member Author

Ok, it works if i start python with LANG=C exported, i guess the lib should do this instead.

@trivedigaurav
Copy link
Member

How can we do this from the lib? I am not sure if I understand why that's an easy fix.
Would setting os.environ['LANG'] = 'C' work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants