CTCCI Problem? #82

Open
opened 2020-10-07 11:27:06 +00:00 by tigrrlily · 0 comments

Hi, I'm trying to build following the instructions but running into problems. At the step

Install dependencies (python3 -m pip install -Ur requirements.txt)

I get this message

ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'

I didn't see any file named requirements.txt either, but I tried to go forward anyway, not knowing what the dependencies were, using

python3.8 /home/<username>/Distok/CuttheCord/ctcci/ctcci.py <branchname> betterdmheader bettertm customtheme hideunusableemojis mutant nocamerabutton nonearby noprofilestrip profilemention supplemental tokenlogin

and am receiving this in response

python3.8 /home/<username>/Distok/CuttheCord/ctcci/ctcci.py <branchname> betterdmheader bettertm customtheme hideunusableemojis mutant nocamerabutton nonearby noprofilestrip profilemention supplemental tokenlogin
Welcome to CutTheCord CI :)
Branch: <branchname>, output name: /var/www/fdroid/seabear/repo/cutthecord-1290-<branchname>.apk
Already up-to-date.
Error: Unable to access jarfile /home/ave/apktool-cli-all.jar
Traceback (most recent call last):
  File "/home/<username>/Distok/CuttheCord/ctcci/ctcci.py", line 77, in <module>
    shutil.copytree(BASE_APK_PATH, WORK_APK_PATH)
  File "/usr/lib/python3.8/shutil.py", line 552, in copytree
    with os.scandir(src) as itr:
FileNotFoundError: [Errno 2] No such file or directory: '/home/<username>/Distok/CuttheCord_build/APK/discord-base-1290'

I searched for apktool-cli-all.jar but am not finding it anywhere, though I did find apktool-cli.jar, however replacing the path to that gives me Error: Unable to access jarfile /usr/share/apktool-cli.jar the same as above.

I think I set the variables correctly, as follows

DISTOK_FOLDER = "/home/<username>/Distok/android/com.discord_42.4-1287_minAPI21.apk"
REPO_FOLDER = "/home/<username>/Distok/CuttheCord"
# Keystore file, alias and pass. Required.
KEYSTORE_FILE = "/home/<username>/<keystorename>.keystore"
KEYSTORE_ALIAS = "<keystorealias>"
KEYSTORE_PASS = "<password>"
PYTHON_BIN = "python3.8"
WORK_FOLDER = "/home/<username>/Distok/CuttheCord_build/APK"
DISTOK_VERSION_LOGS="/home/<username>/Distok/CuttheCord_Build/versionlogs"
DISTOK_EMOJI_MUTANT="/home/<username>/Distok/CuttheCord_Build/mutant/72x72"

and left the rest of ctcconfig.py the same as ctcconfig.example.py.

I'm not sure what I'm doing wrong here, but on the off chance it's not me I thought I should let you know. If it matters, I'm using Linux Mint with Python 3.8.2, APKtool 2.4.0-dirty, and android-sdk-build-tools 27.0.1 from the software repo.

Hi, I'm trying to build following the instructions but running into problems. At the step > Install dependencies (`python3 -m pip install -Ur requirements.txt`) I get this message > ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt' I didn't see any file named requirements.txt either, but I tried to go forward anyway, not knowing what the dependencies were, using ``` python3.8 /home/<username>/Distok/CuttheCord/ctcci/ctcci.py <branchname> betterdmheader bettertm customtheme hideunusableemojis mutant nocamerabutton nonearby noprofilestrip profilemention supplemental tokenlogin ``` and am receiving this in response ``` python3.8 /home/<username>/Distok/CuttheCord/ctcci/ctcci.py <branchname> betterdmheader bettertm customtheme hideunusableemojis mutant nocamerabutton nonearby noprofilestrip profilemention supplemental tokenlogin Welcome to CutTheCord CI :) Branch: <branchname>, output name: /var/www/fdroid/seabear/repo/cutthecord-1290-<branchname>.apk Already up-to-date. Error: Unable to access jarfile /home/ave/apktool-cli-all.jar Traceback (most recent call last): File "/home/<username>/Distok/CuttheCord/ctcci/ctcci.py", line 77, in <module> shutil.copytree(BASE_APK_PATH, WORK_APK_PATH) File "/usr/lib/python3.8/shutil.py", line 552, in copytree with os.scandir(src) as itr: FileNotFoundError: [Errno 2] No such file or directory: '/home/<username>/Distok/CuttheCord_build/APK/discord-base-1290' ``` I searched for apktool-cli-all.jar but am not finding it anywhere, though I did find apktool-cli.jar, however replacing the path to that gives me `Error: Unable to access jarfile /usr/share/apktool-cli.jar` the same as above. I think I set the variables correctly, as follows ``` DISTOK_FOLDER = "/home/<username>/Distok/android/com.discord_42.4-1287_minAPI21.apk" REPO_FOLDER = "/home/<username>/Distok/CuttheCord" # Keystore file, alias and pass. Required. KEYSTORE_FILE = "/home/<username>/<keystorename>.keystore" KEYSTORE_ALIAS = "<keystorealias>" KEYSTORE_PASS = "<password>" PYTHON_BIN = "python3.8" WORK_FOLDER = "/home/<username>/Distok/CuttheCord_build/APK" DISTOK_VERSION_LOGS="/home/<username>/Distok/CuttheCord_Build/versionlogs" DISTOK_EMOJI_MUTANT="/home/<username>/Distok/CuttheCord_Build/mutant/72x72" ``` and left the rest of ctcconfig.py the same as ctcconfig.example.py. I'm not sure what I'm doing wrong here, but on the off chance it's not me I thought I should let you know. If it matters, I'm using Linux Mint with Python 3.8.2, APKtool 2.4.0-dirty, and android-sdk-build-tools 27.0.1 from the software repo.
This repo is archived. You cannot comment on issues.
No Milestone
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: distok/cutthecord#82
No description provided.