gustavo-iniguez-goya / opensnitch

OpenSnitch is a GNU/Linux application firewall

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed building wheel for grpcio-tools

horvjoe9 opened this issue · comments

Hi,
I have tried to install opensnitch on mx linux 19.2 - but failed. Tried to find solution in the topics - but failed - and I am a newbie here in Linux :D

I have problem with the opensnitch service and the grpico-tools as well :/

I attached a copy from terminal - but its a reinstalling not the original, but the problem is the same.

So i have tried to install:

sudo dpkg -i opensnitch_1.0.1-1_amd64.deb python3-opensnitch-ui_1.0.1-1_all.deb; sudo apt -f install

and got:
...
Created symlink /etc/systemd/system/multi-user.target.wants/opensnitch.service → /lib/systemd/system/opensnitch.service.
opensnitch: unrecognized service
dpkg: error processing package opensnitch (--install):
installed opensnitch package post-installation script subprocess returned error exit status 1
Setting up python3-opensnitch-ui (1.0.1-1) ...
ln: failed to create symbolic link '/home/Joe/.config/autostart/opensnitch_ui.desktop': File exists
gtk-update-icon-cache: Cache file created successfully.
Installing grpcio-tools...
Collecting grpcio-tools
Using cached https://files.pythonhosted.org/packages/78/f6/3817a1682319aea1d5fede62796ff75d529bbd0f01ab5fd164df3d01fe1b/grpcio-tools-1.33.2.tar.gz
Collecting grpcio>=1.33.2 (from grpcio-tools)
Using cached https://files.pythonhosted.org/packages/cc/1e/5d65ae830536fdb67f10f4bcedca6eb59190ad60d20d796ef3ccdfda4797/grpcio-1.33.2.tar.gz
Requirement already satisfied: protobuf<4.0dev,>=3.5.0.post1 in /usr/lib/python3/dist-packages (from grpcio-tools) (3.6.1)
Requirement already satisfied: six>=1.5.2 in /usr/lib/python3/dist-packages (from grpcio>=1.33.2->grpcio-tools) (1.12.0)
Building wheels for collected packages: grpcio-tools, grpcio
Running setup.py bdist_wheel for grpcio-tools ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-i2_o3fh2/grpcio-tools/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/pip-wheel-3cw8us1f --python-tag cp37:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help

error: invalid command 'bdist_wheel'


Failed building wheel for grpcio-tools
Running setup.py clean for grpcio-tools
Running setup.py bdist_wheel for grpcio ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-i2_o3fh2/grpcio/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/pip-wheel-ql5ct9d6 --python-tag cp37:
Found cython-generated files...
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help

error: invalid command 'bdist_wheel'


Failed building wheel for grpcio
Running setup.py clean for grpcio
Failed to build grpcio-tools grpcio
Installing collected packages: grpcio, grpcio-tools
Found existing installation: grpcio 1.16.1
Not uninstalling grpcio at /usr/lib/python3/dist-packages, outside environment /usr
Can't uninstall 'grpcio'. No files were found to uninstall.

Thank you :)

Joe

Hi @horvjoe9 ! can you install python3-wheel if it's available on mx linux, or pip3 install wheel and try the installation again?

Hi,
I have installed python3-wheel from Mx synaptic. Then followed your Install instruction. As far as I see the "opensnitch_1.0.1-1_amd64.deb has some service problems.

"(Reading database ... 347682 files and directories currently installed.)
Preparing to unpack .../opensnitch_1.0.1-1_amd64.deb ...
opensnitch: unrecognized service
Removed /etc/systemd/system/multi-user.target.wants/opensnitch.service.
Unpacking opensnitch (1.0.1-1) over (1.0.1-1) ...
Setting up opensnitch (1.0.1-1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/opensnitch.service → /lib/systemd/system/opensnitch.service.
opensnitch: unrecognized service
dpkg: error processing package opensnitch (--install):
installed opensnitch package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
opensnitch"

The "python3-opensnitch-ui_1.0.1-1_all.deb" went through as far as I understood.

I can run opensnitch but the "status" is not running.
I cannot make it through terminal as well with sudo systemctl enable opensnitchd.

Thank you for your help :)

Created symlink /etc/systemd/system/multi-user.target.wants/opensnitch.service → /lib/systemd/system/opensnitch.service.
opensnitch: unrecognized service

This is the problem:
"MX Linux ships with systemd present but disabled by default. "
https://mxlinux.org/wiki/system/systemd/#Enabling%20systemd

Copy the attached sysv init script to /etc/init.d/opensnitchd and execute /etc/init.d/opensnitchd start

opensnitchd.txt

Dear Gustavo,

I copied it, and it works like charm. :)
An little add-on for any newbie or windows user guy:

Save the linked opensnitchd.txt anywhere. Open the /etc/init.d directory (there is no opensnitchd directory), as root. Copy the opensnitchd.txt there - rename it - just delete the .txt argument. From that directory as root run the file as Gustavo wrote above.

Thank you for your help ant time :)

Best regards
j :)

I'll add it to the deb package.