python3 your-python-script.py
. Now to the requests package: You could install it via the Debian package management: sudo apt-get install python-requests
for python 2 or sudo apt-get install python3-requests
for python 3.
urequests
a micropythen implementation of a subset of the requests
funcionality. But I guess that's not the problem here. I don't use VSCode myself, but the problen might be, that requests
is not installed in the environment VSCode uses.
requests
package localy. But I am not sure if te EV3 plugin brings it own virtual environment. In this case you have to install the library in this environment.
8188eu
with the appropriate info
lsusb | grep '7392'
Bus 001 Device 023: ID 7392:a611 Edimax Technology Co., Ltd Edimax Wi-Fi N150 Bluetooth4.0 USB Adapter
lsusb | grep '0bda'
Bus 004 Device 007: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
sudo FK_MACHINE="LEGO MINDSTORMS EV3 + lms2012-compat" flash-kernel
. I also checked that cat /proc/device-tree/model; echo
and the line Machine
in db.all match. My lms2012-compat version is 1.99.7. On this Release i did the sudo apt get update && apt get install lms2012-compat
now I'll try also the sudo apt get upgrade
but I'm not confident that this is it. I would really appreciate any help as I need lms2012 getting to work. Because I want a connection to Matlab for my university project. Alternatives for connecting Matlab with EV3 and Third-Party Equip (motor multiplexer and wifi-dongle in this case) are also very welcome :D
...
update: while upgrading with sudo apt get upgrade
there was a proplem with the initramfs-tools package (once again, had this also in previous try with the R3-release) and it exited with 1 error.
So I did it again and it showed me:
update-initramfs: Generating /boot/initrd.img-4.14.117-ev3dev-2.3.5-ev3
I: The initramfs will attempt to resume from /dev/zram0
I: (UUID=60cb656d-5ecf-4c02-8861-9d17285de579)
I: Set the RESUME variable to override this.
...
...
Taking backup of boot.scr.
Installing new boot.scr.
W: APT had planned for dpkg to do more than it reported back (0 vs 4).
Affected packages: initramfs-tools:armel
I did
` sudo apt-get install initramfs-tools:armel
Reading package lists... Done
Building dependency tree
Reading state information... Done
initramfs-tools is already the newest version (0.130).
initramfs-tools set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.'
Now no more errors and everything upgraded. But still "Unsupported Platform." :(