Drulex / ghsplit

Automatically split large files that exceed a certain limit.
1 stars 0 forks source link

Issues while installing #4

Open jcohenadad opened 3 years ago

jcohenadad commented 3 years ago

i followed the instructions and got this:

julien-macbook:~/code/ghsplit $ make install
rm -rf ./*.egg-info
rm -rf tmp
pip install --user -e .
Obtaining file:///Users/julien/code/ghsplit
WARNING: Error parsing requirements for alabaster: [Errno 2] No such file or directory: '/Users/julien/miniconda3/lib/python3.7/site-packages/alabaster-0.7.12.dist-info/METADATA'
Installing collected packages: ghsplit
  Running setup.py develop for ghsplit
Successfully installed ghsplit
julien-macbook:~/code/ghsplit $ 
julien-macbook:~/code/ghsplit $ ghsplit
-bash: ghsplit: command not found
julien-macbook:~/code/ghsplit $ make test
rm -rf tmp
mkdir tmp
Generating some large files..
dd if=/dev/random of=tmp/large_binary.bin bs=1M count=122
dd: bs: illegal numeric value
make: *** [test] Error 1

Maybe related to the fact that i'm using conda's python by default?

Drulex commented 3 years ago

dd: bs: illegal numeric value

That probably has to do with the version of dd. It's not critical

$  dd --version
dd (coreutils) 8.32
Packaged by Gentoo (8.32-r1 (p0))
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Paul Rubin, David MacKenzie, and Stuart Kemp.

WARNING: Error parsing requirements for alabaster: [Errno 2] No such file or directory: '/Users/julien/miniconda3/lib/python3.7/site-packages/alabaster-0.7.12.dist-info/METADATA'

?? I think this is some kind of unrelated environment issue.

Maybe related to the fact that i'm using conda's python by default?

Maybe. Is this how you pip install stuff usually?

julien-macbook:~/code/ghsplit $ ghsplit -bash: ghsplit: command not found

Can you try pip install -e . (instead of pip install --user -e . which is what the Makefile does). Maybe there is some macos magic that I don't understand.

jcohenadad commented 3 years ago

👍

julien-macbook:~/code/ghsplit $ pip install -e .
Obtaining file:///Users/julien/code/ghsplit
WARNING: Error parsing requirements for alabaster: [Errno 2] No such file or directory: '/Users/julien/miniconda3/lib/python3.7/site-packages/alabaster-0.7.12.dist-info/METADATA'
Installing collected packages: ghsplit
  Attempting uninstall: ghsplit
    Found existing installation: ghsplit 0.1
    Uninstalling ghsplit-0.1:
      Successfully uninstalled ghsplit-0.1
  Running setup.py develop for ghsplit
Successfully installed ghsplit
julien-macbook:~/code/ghsplit $ ghsplit
usage: ghsplit [-h] [--log-level LOG_LEVEL] [--root ROOT] {split,merge} ...

Manipulate large files to avoid exceeding Github quotas

positional arguments:
  {split,merge}         the command; type "ghsplit COMMAND -h" for command-
                        specific help
    split               Split large files into chunks
    merge               Merge chunks into large files

optional arguments:
  -h, --help            show this help message and exit
  --log-level LOG_LEVEL
                        Logging level (eg. INFO, see Python logging docs)
  --root ROOT           Root dir to look for large files (recursively). $CWD
                        if None.
julien-macbook:~/code/ghsplit $ 
Drulex commented 3 years ago

Ok I will tweak the instructions + Makefile to let user decide their installation type. --user is usually a good practice to separate system installed packages from user installed packages.