Giter VIP home page Giter VIP logo

Comments (12)

imLinguin avatar imLinguin commented on August 23, 2024 2

Updated the README. Thank you and enjoy!

from nile.

tripplehelix avatar tripplehelix commented on August 23, 2024 1

Looks like package in Ubuntu and Debian repos is in fact newer pycryptodomex. I added the fallback to use new Cryptodome package in latest commit. Please try it and let me know if that solved it.

EDIT: That should make workaround above obsolete.

That's fixed the crypto package, at least I think so?

Module Crypto not found, trying to use newer Cryptodome
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/tom/builds/nile/nile/cli.py", line 7, in <module>
    from nile.downloading import manager
  File "/home/tom/builds/nile/nile/downloading/manager.py", line 8, in <module>
    from nile.downloading.worker import DownloadWorker
  File "/home/tom/builds/nile/nile/downloading/worker.py", line 6, in <module>
    from nile.models.patcher import Patcher
  File "/home/tom/builds/nile/nile/models/patcher.py", line 4, in <module>
    import zstandard as zstd
ModuleNotFoundError: No module named 'zstandard'

Now complains about the zstandard module.

We have this package in apt as 'Package: zstd Version: 1.5.4+dfsg2-5'
or in python3 as 'Package: python3-zstd Version: 1.5.2.5-1+b3'
and 'Package: python3-zstandard Version: 0.20.0-3'

python3-zstandard is the important package to get this to work, you don't need either zstd or python3-zstd.

So, dependancies are:

sudo apt install python3-pycryptodome python3-requests python3-zstandard python3-protobuf
Runs fine with these changes.

from nile.

imLinguin avatar imLinguin commented on August 23, 2024

I'm not that experienced with Debian distros, however you may try installing pycyptodome using pip3

from nile.

tripplehelix avatar tripplehelix commented on August 23, 2024

"Debian Sid no longer allows installing packages via pip"

from nile.

imLinguin avatar imLinguin commented on August 23, 2024

oh, missed that sorry. I'm not sure what to do here tbh...

from nile.

tripplehelix avatar tripplehelix commented on August 23, 2024

Have you tried putting it on https://pypi.org/ ? Would then be able to install it via pipx. Currently the repo is missing required files to do this.

https://packaging.python.org/en/latest/

from nile.

REtroGeekery avatar REtroGeekery commented on August 23, 2024

Have you tried "sudo apt -y install python3-pycryptodome" in the terminal? That worked for me when I hit this issue.

from nile.

tripplehelix avatar tripplehelix commented on August 23, 2024

Have you tried "sudo apt -y install python3-pycryptodome" in the terminal? That worked for me when I hit this issue.

Unfortunately one of the first things I tried was reinstalling all dependencies.

from nile.

nebadon2025 avatar nebadon2025 commented on August 23, 2024

I am getting the same exact issue in Ubuntu 23.04 now, no longer able to use Nile.. and sadly I have already upgraded all my computers. pip has also stopped working in this version of ubuntu now as well..

from nile.

imLinguin avatar imLinguin commented on August 23, 2024

We found a workaround with @nebadon2025.

For now I recommend using virtual environment and install pip dependencies there

create the environment python3 -m venv env

enter the env source ./env/bin/activate

install deps pip3 install -r requirements.txt

Enjoy!

With this you need to enter env everytime you want to use Nile. Not ideal but allows you to use it while I look for other options 😄

from nile.

imLinguin avatar imLinguin commented on August 23, 2024

Looks like package in Ubuntu and Debian repos is in fact newer pycryptodomex. I added the fallback to use new Cryptodome package in latest commit. Please try it and let me know if that solved it.

EDIT: That should make workaround above obsolete.

from nile.

nebadon2025 avatar nebadon2025 commented on August 23, 2024

I also tested this and was missing python3-zstandard as well, installing it allowed nile to run again outside of the env! Thanks so much!!!

from nile.

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.