I am having problem with installing the Mininet Wifi and miniedit.
I tried to install Mininet-Wifi with the following commands:
$ sudo apt-get install git
$ git clone https://github.com/intrig-unicamp/mininet-wifi
$ cd mininet-wifi
$ sudo util/install.sh -Wlnfv
but in the last command I get this following screen:
…
E: Package 'python-pip' has no installation candidate
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-pip-whl is already the newest version (20.0.2-5ubuntu1.6).
The following package was automatically installed and is no longer required:
libfwupdplugin1
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
pip 9.0.3 from /usr/local/lib/python2.7/dist-packages (python 2.7)
Reading package lists... Done
Building dependency tree
Reading state information... Done
iproute2 is already the newest version (5.5.0-1ubuntu1).
The following package was automatically installed and is no longer required:
libfwupdplugin1
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
cgroup-tools is already the newest version (0.41-10).
The following package was automatically installed and is no longer required:
libfwupdplugin1
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
Installing Mininet-WiFi dependencies
Reading package lists... Done
Building dependency tree Reading state information... Done
Package python-matplotlib is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'python-matplotlib' has no installation candidate'''
I have already installed matplotlib and for sure python3, pip3 etc.
I have also a problem with miniEdit.
I took this code from:
https://github.com/intrig-unicamp/mininet-wifi/blob/master/examples/miniedit.py
and when I try to run it, it gives me this error:
'''Traceback (most recent call last): File "miniedit.py", line 59, in <module> from mininet.log import info, debug, warn, setLogLevel ModuleNotFoundError: No module named 'mininet' line 59 is: rom mininet.log import info, debug, warn, setLogLevel from mininet.net import VERSION'''
....
What am I missing?
Thanks!
Related
I am setting flutter in my parrot os. when i run the command "flutter doctor". It shows
GTK 3.0 development libraries are required for Linux development They are likely available from your distribution (e.g.: apt install libgtk-3-dev)
But when I try to install it , it shows
sudo apt install libgtk-3-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libatk-bridge2.0-dev : Depends: libatk-bridge2.0-0 (= 2.38.0-1) but 2.38.0-4~bpo11+1 is to be installed
Depends: libatspi2.0-dev but it is not going to be installed
libatk1.0-dev : Depends: libatk1.0-0 (= 2.36.0-2) but 2.38.0-1~bpo11+1 is to be installed
Depends: gir1.2-atk-1.0 (= 2.36.0-2) but 2.38.0-1~bpo11+1 is to be installed
libepoxy-dev : Depends: libepoxy0 (= 1.5.5-1) but 1.5.8-1~bpo11+1 is to be installed
E: Unable to correct problems, you have held broken packages.
I also tried to download each dependency separately but the problem still persist.
sudo apt install libepoxy0=1.5.8-1~bpo11+1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libepoxy0 is already the newest version (1.5.8-1~bpo11+1).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
sudo apt install gir1.2-atk-1.0=2.38.0-1~bpo11+1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
gir1.2-atk-1.0 is already the newest version (2.38.0-1~bpo11+1).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
sudo apt install libatk1.0-0=2.38.0-1~bpo11+1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libatk1.0-0 is already the newest version (2.38.0-1~bpo11+1).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
sudo apt install libatk-bridge2.0-0=2.38.0-4~bpo11+1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libatk-bridge2.0-0 is already the newest version (2.38.0-4~bpo11+1).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
please help me
First off I am using Linux operating system.
The problem is that I am stuck at "Do you want to continue [Y/n]". This will not allow me to download the remaining files because I am having trouble figuring out how to insert a "y" to continue downloading the files.
Here is a snippet of the code where I think the problem lays:
if os.name=='posix':
!apt-get install protobuf-compiler
!cd Tensorflow/models/research && protoc object_detection/protos/*.proto --python_out=. && cp object_detection/packages/tf2/setup.py . && python -m pip install .
The output that appears is this:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
systemd-hwe-hwdb
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
libprotobuf-dev libprotobuf-lite23 libprotoc23
Suggested packages:
protobuf-mode-el
The following NEW packages will be installed:
libprotobuf-dev libprotobuf-lite23 libprotoc23 protobuf-compiler
0 upgraded, 4 newly installed, 0 to remove and 96 not upgraded.
Need to get 2,246 kB of archives.
After this operation, 14.6 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Here we can see that I am stuck at Do you want to continue [Y/n].
The first thing I tried was running jupyter notbook as a root user which helped for a little until I reached this part.
The second thing I tried was adding a "y" underneath the snippet of the code in jupyter notebook hoping that it will continue downloading the files.
I figured it out it was missing something after doing some research.
If anyone is stuck here please change your code to something like this:
!yes | apt-get install
protobuf-compiler
I have successfully Installed EdgeTPU and Coral according to GoogleCoral https://coral.ai/docs/accelerator/get-started/#2-install-the-pycoral-library
But somehow there is still error: no module named 'edgetpu'
Yes, I've also tried this.
sudo apt-get update
sudo apt-get install python3-edgetpu...
Please see the result below.
######pycoral result##############3
pi#raspy:~/coral/pycoral $ python3
examples/classify_image.py \
--model test_data/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite \
--labels test_data/inat_bird_labels.txt \
--input test_data/parrot.jpg
----INFERENCE TIME----
Note: The first inference on Edge TPU is slow because it includes loading the model into Edge TPU memory.
18.4ms
5.1ms
6.1ms
5.6ms
5.3ms
-------RESULTS--------
Ara macao (Scarlet Macaw): 0.75781
#################################
pi#raspy:~/DeepPiCar/models/object_detection $ python3
code/coco_object_detection.py
**Traceback (most recent call last):
File "/home/pi/DeepPiCar/models/object_detection/code/coco_object_detection.py", line 9, in <module>
import edgetpu.detection.engine
ModuleNotFoundError: No module named 'edgetpu'**
###############################
pi#raspy:~ $ sudo apt-get install python3-edgetpu
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python3-edgetpu : Depends: python3 (< 3.9) but 3.9.2-3 is to be installed
E: Unable to correct problems, you have held broken packages.
I am trying to install Pipewire in my Ubuntu 16.04 x86 amd64 machine using instructions found here : https://pipewire.org/#getting
./autogen.sh --prefix=$PREFIX
On running the above command, I get this error
spa/meson.build:29:4: ERROR: Dependency "bluez" not found, tried pkgconfig and cmake
I have installed bluez already. This is the output for running
**sudo apt-get install bluez**
Reading package lists... Done
Building dependency tree
Reading state information... Done
bluez is already the newest version (5.37-0ubuntu5.3).
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.
The files that are required to do development on top of a package are often separate (since this is really only needed by developers, and would take up too much size for no reason otherwise).
In your case, the package you're looking for is libbluetooth-dev. So you can do sudo apt install libbluetooth-dev
I am on php7 but I have a legacy program using:
imagecreatefromjpeg($filename)
So I tried to install:
$ sudo apt-get install php5-gd
No result:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php5-gd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'php5-gd' has no installation candidate
What should I install then instead for php7?
Or better, what should I replace imagecreatefromjpeg with?
Any ideas?
I have enabled extension=php_gd2.dll in my php.ini.
But I still get this error:
Uncaught Error: Call to undefined function imagecreatefromjpeg() in
/var/w
According to PHP.nethttp://php.net/manual/en/image.installation.php#120116
sudo apt-get install php7.0-gd