No such file or directory: 'rebaler/rebaler.py' error during installation with pip3
I receive the following error when trying to install
Collecting git+https://github.com/rrwick/Rebaler.git
Cloning https://github.com/rrwick/Rebaler.git to /tmp/pip-req-build-uznp9bpv
Running command git clone -q https://github.com/rrwick/Rebaler.git /tmp/pip-req-build-uznp9bpv
ERROR: Command errored out with exit status 1:
command: /home/s953272/sw/REBALAR_ENV/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-uznp9bpv/setup.py'"'"'; file='"'"'/tmp/pip-req-build-uznp9bpv/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-req-build-uznp9bpv/pip-egg-info
cwd: /tmp/pip-req-build-uznp9bpv/
Complete output (5 lines):
Traceback (most recent call last):
File "
Here is the command I used pip3 install git+https://github.com/rrwick/Rebaler.git
I have also tried installing from source but get a si python3 setup.py install
Traceback (most recent call last):
File "setup.py", line 16, in
Here is the in the install command git clone https://github.com/rrwick/Rebaler.git cd Rebaler python3 setup.py
I could solve this by installing earlier version of Rebaler
Got the same error with the newest version, but could run it by using the rebaler-runner.py
Thanks @shmenolin! This saved me a lot of time. Anyways, I found the problem and a solution for all the curious out there: There are two small problems which hinder the installation of v0.2.0.
- The meta information wandered from
rebaler/rebaler.pytorebaler/__main__.pybut wasn't altered accordingly in 'setup.py' - The version number in
rebaler/__main__.pyis surrounded by single instead of double quotes (as in previous versions) SOLUTION:
- Change the quotes in 'rebaler/main.py' to double quotes
- Change 'rebaler/reabler.py' to 'rebaler/main.py' in line 16 and 18 in the file 'setup.py'
OR as a script:
git clone https://github.com/rrwick/Rebaler.gitcd Rebalersed -i "s/__version__ = '\([[:digit:]].[[:digit:]].[[:digit:]]\)'/__version__ = \"\1\"/" rebaler/__main__.pysed -i "s#rebaler/rebaler.py#rebaler/__main__.py#g" setup.pypython3 setup.py # or via pip