Giter Club home page Giter Club logo

Comments (12)

RaSan147 avatar RaSan147 commented on June 16, 2024 1

It seems using global package (for any Linux) causes some compatibility issue. So @charlesCXK I'll need to keep the sudo for now (required only once) to call apt/pkg/yum

And keeping this issue open

from pyrobox.

RaSan147 avatar RaSan147 commented on June 16, 2024 1

@charlesCXK now sudo is required only if you want to download the requirement (sudo apt-get install p7zip-full)
otherwise that specific feature won't work (download folder as zip)

from pyrobox.

RaSan147 avatar RaSan147 commented on June 16, 2024

can you please elaborate the issue?

This program doesn't need root permission AFAIK unless you don't have p7zip-full installed on your machine, then it only calls sudo apt install p7zip-full
If you don't want it to be called, manually install it so that the program can call 7z from console.
I don't have any Linux (except my phone) at this moment. So your info may help me improve it

from pyrobox.

charlesCXK avatar charlesCXK commented on June 16, 2024

Thanks!

from pyrobox.

RaSan147 avatar RaSan147 commented on June 16, 2024

can you please tell me if it runs fine without sudo ?? if not, I'll have to test and modify (waiting for your response 😅)

from pyrobox.

rexackermann avatar rexackermann commented on June 16, 2024

Using os.system instead of subprocess.call might work

from pyrobox.

RaSan147 avatar RaSan147 commented on June 16, 2024

Using os.system instead of subprocess.call might work

subprocess.call is safer than os.system (and the issue is not here)

from pyrobox.

rexackermann avatar rexackermann commented on June 16, 2024

adding a prompt and avoiding the installation might work

from pyrobox.

RaSan147 avatar RaSan147 commented on June 16, 2024

Working on it.... (Mannnn linux uses too many ways to download package, figuring out how to make them work at once)

from pyrobox.

rexackermann avatar rexackermann commented on June 16, 2024

7zip-promt-install branch should work

from pyrobox.

RaSan147 avatar RaSan147 commented on June 16, 2024

Nevermind, found a way to download and use it without installing ✌️ (@rexackermann will need your help to check)

@charlesCXK in a day or 2 sudo/root will no longer be necessary

from pyrobox.

RaSan147 avatar RaSan147 commented on June 16, 2024

@charlesCXK now this project no longer needs sudo

unless you want to run it as command
like $./local_server.py instead of python3 local_server.py
check readme

from pyrobox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.