Ubuntu 24.04.1 LTS | Lataa ja asenna | Tutustu yhteisöön | Blogi | Yritysten tarjoamat palvelutLiity Ubuntu Suomen seuraan muualla: Discourse, Facebook, Mastodon, Matrix, Telegram, X
- sudo apt-get install python gcc python-dev libusb-dev- sudo apt-get install python-urwid (0.9.8.1)cd urwid-folder- wget http://scott.weston.id.au/software/pymissile/missile.py
samsunix@nuxlappis:~/urwid-0.9.8.1$ ./missile.pyTraceback (most recent call last): File "./missile.py", line 82, in <module> import usbImportError: No module named usbsamsunix@nuxlappis:~/urwid-0.9.8.1$
tulos:Koodia: [Valitse]samsunix@nuxlappis:~/urwid-0.9.8.1$ ./missile.pyTraceback (most recent call last): File "./missile.py", line 82, in <module> import usbImportError: No module named usbsamsunix@nuxlappis:~/urwid-0.9.8.1$ OS ei näyttäisi tunnistavan tuota usb-laitetta
Kiva, mäkin haluun tollasen. Tosin hintaa on 29.153605 € siis noin kolmekymppiä. No jaa...
samsunix@nuxlappis:~/pyusb-0.4.0$ sudo python setup.py install
samsunix@nuxlappis:~/libusb-0.1.12$ sudo ./configurechecking how to run the C++ preprocessor... /lib/cppconfigure: error: C++ preprocessor "/lib/cpp" fails sanity checkSee `config.log' for more details.
configure:2952: $? = 0configure:2955: test -s conftest.oconfigure:2958: $? = 0configure:2976: result: none neededconfigure:2994: gcc -c -g -O2 conftest.c >&5conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'm$configure:3000: $? = 1configure: failed program was:| #ifndef __cplusplus| choke me
libusbin kanssa tulikin sitten ongelmia Koodia: [Valitse]samsunix@nuxlappis:~/libusb-0.1.12$ sudo ./configurechecking how to run the C++ preprocessor... /lib/cppconfigure: error: C++ preprocessor "/lib/cpp" fails sanity checkSee `config.log' for more details.
sudo apt-get install g++
samsunix@nuxlappis:/usr/share/python-support/python-urwid/urwid$ ./missile.pyNo WMDs found.samsunix@nuxlappis:/usr/share/python-support/python-urwid/urwid$
if opts: for o, a in opts: if o in ("-h", "--help"): usage() elif o in ("-v", "--version"): version() elif o in ("-n", "--network"): try: MissileNetwork().main() except NoMissilesError, e: print "No WMDs found." return else: try: MissileDisplay().main() except NoMissilesError, e: print "No WMDs found." return else: try: MissileDisplay().main() except NoMissilesError, e: print "No WMDs found." return
toi varoitus kertoo vain, että tuettua laitetta ei löydy.