pedroelbanquero / torahcodespython

Torah Codes Python - Atbash / Equidistant Letter Sequence Python Library (ELS)
23 stars 7 forks source link

Can't properly run the program on my own #12

Open AbieMiracle opened 5 months ago

AbieMiracle commented 5 months ago

hello, pls im having an issue running the program and ive been on it for the past two weeks now. its most likely my lack of knowlegde of how python works. i'v tried tutorials but everything i had tried doesn't work. pls can anyone give me a detailed walkthrough on how to properly install it.

bartman081523 commented 5 months ago

Hi @AbieMiracle, please let me know if that helped you.

Setup Instructions for Both Windows and Linux

1. Install Python

2. Set Up a Virtual Environment

Navigate to your project directory and create a virtual environment:

python3 -m venv venv  # Use 'python' instead of 'python3' on Windows if necessary

Activate the virtual environment:

3. Install the 'torahcodespython' Package

With the virtual environment activated, install the package:

pip install git+https://github.com/pedroelbanquero/torahcodespython

4. Use tbc-cli

After installation, you can run tbc-cli directly:

tbc-cli

Note: Ensure the virtual environment is activated (indicated by (venv) before your command prompt) before running pip install and tbc-cli.

AbieMiracle commented 5 months ago

hi, thanks for reply and instructions. they were very useful. i was able to activate my venv by activating powershell scripts on my windows but anytime i try to run the tbc-cli i get this error

(venv) C:\Users\HP\Desktop\Python310\torahcodespython-master>tbc-cli ←[1;91m [!] Module crashed.←[0m ←[1;91m[!] Debug info: ' Traceback (most recent call last): File "C:\Users\HP\Desktop\Python310\torahcodespython-master\venv\lib\site-packages\torahcodes\TBC.py", line 18, in import readline ModuleNotFoundError: No module named 'readline'

how do you think i can fix the problem

bartman081523 commented 5 months ago

Hi @AbieMiracle

the readline module is a dependency of torahcodespython, if you dont have it, some step in the install failed. I think you are missing git and could not install from git

you can install git for Windows and try again the above insructions, or you can do this:

-activate venv .\venv\Scripts\activate

if you have git: git clone https://github.com/pedroelbanquero/torahcodespython

if you dont have git, download, unzip and rename folder to torahcodespython https://github.com/pedroelbanquero/torahcodespython/archive/refs/heads/master.zip

pip install .\torahcodespython
tbc-cli

please let me know if this works for you.

AbieMiracle commented 5 months ago

hi @bartman081523 so far it hasn't been able to work. but ill keep trying. i keep installing and uninstalling python but still dosen't works. do you have an idea how i can start over again. anytime i try to download from git or install torah codes. its like files are already there

bartman081523 commented 4 months ago

Hi @AbieMiracle please copy the error message and the full log from the Terminal and paste it here.

AbieMiracle commented 4 months ago

here is the full log. i first created a folder in the python directory i installed version 12.1 then input the following commands on cmd

Microsoft Windows [Version 10.0.19045.2965] (c) Microsoft Corporation. All rights reserved.

C:\Users\HP\Desktop\Python312\Python>python -m venv venv

C:\Users\HP\Desktop\Python312\Python>python -m venv venv

C:\Users\HP\Desktop\Python312\Python>.\venv\Scripts\activate

(venv) C:\Users\HP\Desktop\Python312\Python>pip install git+https://github.com/pedroelbanquero/torahcodespython Collecting git+https://github.com/pedroelbanquero/torahcodespython Cloning https://github.com/pedroelbanquero/torahcodespython to c:\users\hp\appdata\local\temp\pip-req-build-hv5l7egm Running command git clone --filter=blob:none --quiet https://github.com/pedroelbanquero/torahcodespython 'C:\Users\HP\AppData\Local\Temp\pip-req-build-hv5l7egm' Resolved https://github.com/pedroelbanquero/torahcodespython to commit ec1109871f8ecae4d8eb604a6cd8ac92f9b7d3fe Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting configparser (from torahcodes==1.0.7) Obtaining dependency information for configparser from https://files.pythonhosted.org/packages/81/a3/0e5ed11da4b7770c15f6f319abf053f46b5a06c7d4273c48469b7899bd89/configparser-6.0.0-py3-none-any.whl.metadata Using cached configparser-6.0.0-py3-none-any.whl.metadata (11 kB) Collecting lxml (from torahcodes==1.0.7) Obtaining dependency information for lxml from https://files.pythonhosted.org/packages/02/59/e1fbe2514d8ab39977b72e77f98d0fa49772f61e938049baf151b307a4f0/lxml-5.1.0-cp312-cp312-win_amd64.whl.metadata Using cached lxml-5.1.0-cp312-cp312-win_amd64.whl.metadata (3.6 kB) Collecting python-hebrew-numbers (from torahcodes==1.0.7) Using cached python_hebrew_numbers-0.2.3-py2.py3-none-any.whl (6.0 kB) Collecting textblob (from torahcodes==1.0.7) Using cached textblob-0.17.1-py2.py3-none-any.whl (636 kB) Collecting deep-translator (from torahcodes==1.0.7) Obtaining dependency information for deep-translator from https://files.pythonhosted.org/packages/38/3f/61a8ef73236dbea83a1a063a8af2f8e1e41a0df64f122233938391d0f175/deep_translator-1.11.4-py3-none-any.whl.metadata Using cached deep_translator-1.11.4-py3-none-any.whl.metadata (30 kB) Collecting requests (from torahcodes==1.0.7) Obtaining dependency information for requests from https://files.pythonhosted.org/packages/70/8e/0e2d847013cb52cd35b38c009bb167a1a26b2ce6cd6965bf26b47bc0bf44/requests-2.31.0-py3-none-any.whl.metadata Using cached requests-2.31.0-py3-none-any.whl.metadata (4.6 kB) Collecting pandas (from torahcodes==1.0.7) Obtaining dependency information for pandas from https://files.pythonhosted.org/packages/87/03/fe50521919aa981f6a1c197037da4623a267b0e5f42246d69ba048e86da3/pandas-2.2.0-cp312-cp312-win_amd64.whl.metadata Downloading pandas-2.2.0-cp312-cp312-win_amd64.whl.metadata (19 kB) Collecting xgboost (from torahcodes==1.0.7) Obtaining dependency information for xgboost from https://files.pythonhosted.org/packages/24/ec/ad387100fa3cc2b9b81af0829b5ecfe75ec5bb19dd7c19d4fea06fb81802/xgboost-2.0.3-py3-none-win_amd64.whl.metadata Downloading xgboost-2.0.3-py3-none-win_amd64.whl.metadata (2.0 kB) Collecting elasticsearch (from torahcodes==1.0.7) Obtaining dependency information for elasticsearch from https://files.pythonhosted.org/packages/6f/2f/211f6bfac4c1dff4daffc9f27a641cb1d113bd170e6d4ca724045de8ee41/elasticsearch-8.12.0-py3-none-any.whl.metadata Downloading elasticsearch-8.12.0-py3-none-any.whl.metadata (5.3 kB) Collecting python-telegram-bot (from torahcodes==1.0.7) Obtaining dependency information for python-telegram-bot from https://files.pythonhosted.org/packages/6f/8e/4e4ed06986557fce0c41c3dfc60c5495b1095cf8a552bdc4c56e96aefdac/python_telegram_bot-20.8-py3-none-any.whl.metadata Downloading python_telegram_bot-20.8-py3-none-any.whl.metadata (15 kB) Collecting beautifulsoup4<5.0.0,>=4.9.1 (from deep-translator->torahcodes==1.0.7) Obtaining dependency information for beautifulsoup4<5.0.0,>=4.9.1 from https://files.pythonhosted.org/packages/b1/fe/e8c672695b37eecc5cbf43e1d0638d88d66ba3a44c4d321c796f4e59167f/beautifulsoup4-4.12.3-py3-none-any.whl.metadata Using cached beautifulsoup4-4.12.3-py3-none-any.whl.metadata (3.8 kB) Collecting charset-normalizer<4,>=2 (from requests->torahcodes==1.0.7) Obtaining dependency information for charset-normalizer<4,>=2 from https://files.pythonhosted.org/packages/b6/7c/8debebb4f90174074b827c63242c23851bdf00a532489fba57fef3416e40/charset_normalizer-3.3.2-cp312-cp312-win_amd64.whl.metadata Using cached charset_normalizer-3.3.2-cp312-cp312-win_amd64.whl.metadata (34 kB) Collecting idna<4,>=2.5 (from requests->torahcodes==1.0.7) Obtaining dependency information for idna<4,>=2.5 from https://files.pythonhosted.org/packages/c2/e7/a82b05cf63a603df6e68d59ae6a68bf5064484a0718ea5033660af4b54a9/idna-3.6-py3-none-any.whl.metadata Using cached idna-3.6-py3-none-any.whl.metadata (9.9 kB) Collecting urllib3<3,>=1.21.1 (from requests->torahcodes==1.0.7) Obtaining dependency information for urllib3<3,>=1.21.1 from https://files.pythonhosted.org/packages/88/75/311454fd3317aefe18415f04568edc20218453b709c63c58b9292c71be17/urllib3-2.2.0-py3-none-any.whl.metadata Using cached urllib3-2.2.0-py3-none-any.whl.metadata (6.4 kB) Collecting certifi>=2017.4.17 (from requests->torahcodes==1.0.7) Obtaining dependency information for certifi>=2017.4.17 from https://files.pythonhosted.org/packages/ba/06/a07f096c664aeb9f01624f858c3add0a4e913d6c96257acb4fce61e7de14/certifi-2024.2.2-py3-none-any.whl.metadata Downloading certifi-2024.2.2-py3-none-any.whl.metadata (2.2 kB) Collecting elastic-transport<9,>=8 (from elasticsearch->torahcodes==1.0.7) Obtaining dependency information for elastic-transport<9,>=8 from https://files.pythonhosted.org/packages/d6/35/94475b9a18eec053ebce144ff1e28c175772ce82244ada6ffc10b1a65bcc/elastic_transport-8.12.0-py3-none-any.whl.metadata Downloading elastic_transport-8.12.0-py3-none-any.whl.metadata (3.5 kB) Collecting numpy<2,>=1.26.0 (from pandas->torahcodes==1.0.7) Obtaining dependency information for numpy<2,>=1.26.0 from https://files.pythonhosted.org/packages/16/2e/86f24451c2d530c88daf997cb8d6ac622c1d40d19f5a031ed68a4b73a374/numpy-1.26.4-cp312-cp312-win_amd64.whl.metadata Downloading numpy-1.26.4-cp312-cp312-win_amd64.whl.metadata (61 kB) ---------------------------------------- 61.0/61.0 kB 232.0 kB/s eta 0:00:00 Collecting python-dateutil>=2.8.2 (from pandas->torahcodes==1.0.7) Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB) Collecting pytz>=2020.1 (from pandas->torahcodes==1.0.7) Obtaining dependency information for pytz>=2020.1 from https://files.pythonhosted.org/packages/9c/3d/a121f284241f08268b21359bd425f7d4825cffc5ac5cd0e1b3d82ffd2b10/pytz-2024.1-py2.py3-none-any.whl.metadata Downloading pytz-2024.1-py2.py3-none-any.whl.metadata (22 kB) Collecting tzdata>=2022.7 (from pandas->torahcodes==1.0.7) Obtaining dependency information for tzdata>=2022.7 from https://files.pythonhosted.org/packages/a3/fb/52b62131e21b24ee297e4e95ed41eba29647dad0e0051a92bb66b43c70ff/tzdata-2023.4-py2.py3-none-any.whl.metadata Downloading tzdata-2023.4-py2.py3-none-any.whl.metadata (1.4 kB) Collecting PyYaml (from python-hebrew-numbers->torahcodes==1.0.7) Obtaining dependency information for PyYaml from https://files.pythonhosted.org/packages/2b/9f/fbade56564ad486809c27b322d0f7e6a89c01f6b4fe208402e90d4443a99/PyYAML-6.0.1-cp312-cp312-win_amd64.whl.metadata Using cached PyYAML-6.0.1-cp312-cp312-win_amd64.whl.metadata (2.1 kB) Collecting httpx~=0.26.0 (from python-telegram-bot->torahcodes==1.0.7) Obtaining dependency information for httpx~=0.26.0 from https://files.pythonhosted.org/packages/39/9b/4937d841aee9c2c8102d9a4eeb800c7dad25386caabb4a1bf5010df81a57/httpx-0.26.0-py3-none-any.whl.metadata Downloading httpx-0.26.0-py3-none-any.whl.metadata (7.6 kB) Collecting nltk>=3.1 (from textblob->torahcodes==1.0.7) Using cached nltk-3.8.1-py3-none-any.whl (1.5 MB) Collecting scipy (from xgboost->torahcodes==1.0.7) Obtaining dependency information for scipy from https://files.pythonhosted.org/packages/f3/31/91a2a3c5eb85d2bfa86d7c98f2df5d77dcdefb3d80ca9f9037ad04393acf/scipy-1.12.0-cp312-cp312-win_amd64.whl.metadata Downloading scipy-1.12.0-cp312-cp312-win_amd64.whl.metadata (60 kB) ---------------------------------------- 60.4/60.4 kB 267.0 kB/s eta 0:00:00 Collecting soupsieve>1.2 (from beautifulsoup4<5.0.0,>=4.9.1->deep-translator->torahcodes==1.0.7) Obtaining dependency information for soupsieve>1.2 from https://files.pythonhosted.org/packages/4c/f3/038b302fdfbe3be7da016777069f26ceefe11a681055ea1f7817546508e3/soupsieve-2.5-py3-none-any.whl.metadata Using cached soupsieve-2.5-py3-none-any.whl.metadata (4.7 kB) Collecting anyio (from httpx~=0.26.0->python-telegram-bot->torahcodes==1.0.7) Obtaining dependency information for anyio from https://files.pythonhosted.org/packages/bf/cd/d6d9bb1dadf73e7af02d18225cbd2c93f8552e13130484f1c8dcfece292b/anyio-4.2.0-py3-none-any.whl.metadata Downloading anyio-4.2.0-py3-none-any.whl.metadata (4.6 kB) Collecting httpcore==1. (from httpx~=0.26.0->python-telegram-bot->torahcodes==1.0.7) Obtaining dependency information for httpcore==1. from https://files.pythonhosted.org/packages/56/ba/78b0a99c4da0ff8b0f59defa2f13ca4668189b134bd9840b6202a93d9a0f/httpcore-1.0.2-py3-none-any.whl.metadata Downloading httpcore-1.0.2-py3-none-any.whl.metadata (20 kB) Collecting sniffio (from httpx~=0.26.0->python-telegram-bot->torahcodes==1.0.7) Using cached sniffio-1.3.0-py3-none-any.whl (10 kB) Collecting h11<0.15,>=0.13 (from httpcore==1.*->httpx~=0.26.0->python-telegram-bot->torahcodes==1.0.7) Using cached h11-0.14.0-py3-none-any.whl (58 kB) Collecting click (from nltk>=3.1->textblob->torahcodes==1.0.7) Obtaining dependency information for click from https://files.pythonhosted.org/packages/00/2e/d53fa4befbf2cfa713304affc7ca780ce4fc1fd8710527771b58311a3229/click-8.1.7-py3-none-any.whl.metadata Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB) Collecting joblib (from nltk>=3.1->textblob->torahcodes==1.0.7) Obtaining dependency information for joblib from https://files.pythonhosted.org/packages/10/40/d551139c85db202f1f384ba8bcf96aca2f329440a844f924c8a0040b6d02/joblib-1.3.2-py3-none-any.whl.metadata Using cached joblib-1.3.2-py3-none-any.whl.metadata (5.4 kB) Collecting regex>=2021.8.3 (from nltk>=3.1->textblob->torahcodes==1.0.7) Obtaining dependency information for regex>=2021.8.3 from https://files.pythonhosted.org/packages/1d/af/4bd17254cdda1d8092460ee5561f013c4ca9c33ecf1aab81b44280327cab/regex-2023.12.25-cp312-cp312-win_amd64.whl.metadata Using cached regex-2023.12.25-cp312-cp312-win_amd64.whl.metadata (41 kB) Collecting tqdm (from nltk>=3.1->textblob->torahcodes==1.0.7) Obtaining dependency information for tqdm from https://files.pythonhosted.org/packages/2a/14/e75e52d521442e2fcc9f1df3c5e456aead034203d4797867980de558ab34/tqdm-4.66.2-py3-none-any.whl.metadata Downloading tqdm-4.66.2-py3-none-any.whl.metadata (57 kB) ---------------------------------------- 57.6/57.6 kB 607.0 kB/s eta 0:00:00 Collecting six>=1.5 (from python-dateutil>=2.8.2->pandas->torahcodes==1.0.7) Using cached six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting colorama (from click->nltk>=3.1->textblob->torahcodes==1.0.7) Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB) Using cached configparser-6.0.0-py3-none-any.whl (19 kB) Using cached deep_translator-1.11.4-py3-none-any.whl (42 kB) Using cached requests-2.31.0-py3-none-any.whl (62 kB) Using cached elasticsearch-8.12.0-py3-none-any.whl (431 kB) Using cached lxml-5.1.0-cp312-cp312-win_amd64.whl (3.9 MB) Downloading pandas-2.2.0-cp312-cp312-win_amd64.whl (11.5 MB) ---------------------------------------- 11.5/11.5 MB 1.3 MB/s eta 0:00:00 Using cached python_telegram_bot-20.8-py3-none-any.whl (604 kB) Using cached xgboost-2.0.3-py3-none-win_amd64.whl (99.8 MB) Using cached beautifulsoup4-4.12.3-py3-none-any.whl (147 kB) Using cached certifi-2024.2.2-py3-none-any.whl (163 kB) Using cached charset_normalizer-3.3.2-cp312-cp312-win_amd64.whl (100 kB) Using cached elastic_transport-8.12.0-py3-none-any.whl (59 kB) Using cached httpx-0.26.0-py3-none-any.whl (75 kB) Using cached httpcore-1.0.2-py3-none-any.whl (76 kB) Using cached idna-3.6-py3-none-any.whl (61 kB) Downloading numpy-1.26.4-cp312-cp312-win_amd64.whl (15.5 MB) ---------------------------------------- 15.5/15.5 MB 1.6 MB/s eta 0:00:00 Using cached pytz-2024.1-py2.py3-none-any.whl (505 kB) Using cached tzdata-2023.4-py2.py3-none-any.whl (346 kB) Using cached urllib3-2.2.0-py3-none-any.whl (120 kB) Using cached PyYAML-6.0.1-cp312-cp312-win_amd64.whl (138 kB) Downloading scipy-1.12.0-cp312-cp312-win_amd64.whl (45.8 MB) ---------------------------------------- 45.8/45.8 MB 1.7 MB/s eta 0:00:00 Using cached regex-2023.12.25-cp312-cp312-win_amd64.whl (268 kB) Using cached soupsieve-2.5-py3-none-any.whl (36 kB) Using cached anyio-4.2.0-py3-none-any.whl (85 kB) Using cached click-8.1.7-py3-none-any.whl (97 kB) Using cached joblib-1.3.2-py3-none-any.whl (302 kB) Downloading tqdm-4.66.2-py3-none-any.whl (78 kB) ---------------------------------------- 78.3/78.3 kB 140.6 kB/s eta 0:00:00 Building wheels for collected packages: torahcodes Building wheel for torahcodes (pyproject.toml) ... done Created wheel for torahcodes: filename=torahcodes-1.0.7-py3-none-any.whl size=2208326 sha256=91e90f21eca0d6af32d4d2a50180b65591dda7328b8a1ac723a24311034914b3 Stored in directory: C:\Users\HP\AppData\Local\Temp\pip-ephem-wheel-cache-uaf7hmem\wheels\ba\28\65\020c75d966d583f51225b9b214d5aaf3f10f5a4636b0c7ef7c Successfully built torahcodes Installing collected packages: pytz, urllib3, tzdata, soupsieve, sniffio, six, regex, PyYaml, numpy, lxml, joblib, idna, h11, configparser, colorama, charset-normalizer, certifi, tqdm, scipy, requests, python-hebrew-numbers, python-dateutil, httpcore, elastic-transport, click, beautifulsoup4, anyio, xgboost, pandas, nltk, httpx, elasticsearch, deep-translator, textblob, python-telegram-bot, torahcodes Successfully installed PyYaml-6.0.1 anyio-4.2.0 beautifulsoup4-4.12.3 certifi-2024.2.2 charset-normalizer-3.3.2 click-8.1.7 colorama-0.4.6 configparser-6.0.0 deep-translator-1.11.4 elastic-transport-8.12.0 elasticsearch-8.12.0 h11-0.14.0 httpcore-1.0.2 httpx-0.26.0 idna-3.6 joblib-1.3.2 lxml-5.1.0 nltk-3.8.1 numpy-1.26.4 pandas-2.2.0 python-dateutil-2.8.2 python-hebrew-numbers-0.2.3 python-telegram-bot-20.8 pytz-2024.1 regex-2023.12.25 requests-2.31.0 scipy-1.12.0 six-1.16.0 sniffio-1.3.0 soupsieve-2.5 textblob-0.17.1 torahcodes-1.0.7 tqdm-4.66.2 tzdata-2023.4 urllib3-2.2.0 xgboost-2.0.3

[notice] A new release of pip is available: 23.2.1 -> 24.0 [notice] To update, run: python.exe -m pip install --upgrade pip

(venv) C:\Users\HP\Desktop\Python312\Python>python.exe -m pip install --upgrade pip Requirement already satisfied: pip in c:\users\hp\desktop\python312\python\venv\lib\site-packages (23.2.1) Collecting pip Obtaining dependency information for pip from https://files.pythonhosted.org/packages/8a/6a/19e9fe04fca059ccf770861c7d5721ab4c2aebc539889e97c7977528a53b/pip-24.0-py3-none-any.whl.metadata Downloading pip-24.0-py3-none-any.whl.metadata (3.6 kB) Using cached pip-24.0-py3-none-any.whl (2.1 MB) Installing collected packages: pip Attempting uninstall: pip Found existing installation: pip 23.2.1 Uninstalling pip-23.2.1: Successfully uninstalled pip-23.2.1 Successfully installed pip-24.0

(venv) C:\Users\HP\Desktop\Python312\Python>tbc-cli ←[1;91m [!] Module crashed.←[0m ←[1;91m[!] Debug info: ' Traceback (most recent call last): File "C:\Users\HP\Desktop\Python312\Python\venv\Lib\site-packages\torahcodes\TBC.py", line 18, in import readline ModuleNotFoundError: No module named 'readline'

←[0m ←[1;91m [!] Module input failed. Please make sure to install the dependencies.←[0m

(venv) C:\Users\HP\Desktop\Python312\Python>git clone https://github.com/pedroelbanquero/torahcodespython Cloning into 'torahcodespython'... remote: Enumerating objects: 1633, done. remote: Counting objects: 100% (101/101), done. remote: Compressing objects: 100% (69/69), done. remote: Total 1633 (delta 51), reused 66 (delta 27), pack-reused 1532 eceiving objects: 96% (1584/1633), 8.82 MiB | 1.4Receiving objects: 100% (1633/1633), 9.07 MiB | 1.26 MiB/s, done.

Resolving deltas: 100% (957/957), done.

(venv) C:\Users\HP\Desktop\Python312\Python>pip install .\torahcodespython Processing c:\users\hp\desktop\python312\python\torahcodespython Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: configparser in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from torahcodes==1.0.7) (6.0.0) Requirement already satisfied: lxml in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from torahcodes==1.0.7) (5.1.0) Requirement already satisfied: python-hebrew-numbers in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from torahcodes==1.0.7) (0.2.3) Requirement already satisfied: textblob in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from torahcodes==1.0.7) (0.17.1) Requirement already satisfied: deep-translator in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from torahcodes==1.0.7) (1.11.4) Requirement already satisfied: requests in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from torahcodes==1.0.7) (2.31.0) Requirement already satisfied: pandas in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from torahcodes==1.0.7) (2.2.0) Requirement already satisfied: xgboost in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from torahcodes==1.0.7) (2.0.3) Requirement already satisfied: elasticsearch in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from torahcodes==1.0.7) (8.12.0) Requirement already satisfied: python-telegram-bot in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from torahcodes==1.0.7) (20.8) Requirement already satisfied: beautifulsoup4<5.0.0,>=4.9.1 in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from deep-translator->torahcodes==1.0.7) (4.12.3) Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from requests->torahcodes==1.0.7) (3.3.2) Requirement already satisfied: idna<4,>=2.5 in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from requests->torahcodes==1.0.7) (3.6) Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from requests->torahcodes==1.0.7) (2.2.0) Requirement already satisfied: certifi>=2017.4.17 in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from requests->torahcodes==1.0.7) (2024.2.2) Requirement already satisfied: elastic-transport<9,>=8 in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from elasticsearch->torahcodes==1.0.7) (8.12.0) Requirement already satisfied: numpy<2,>=1.26.0 in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from pandas->torahcodes==1.0.7) (1.26.4) Requirement already satisfied: python-dateutil>=2.8.2 in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from pandas->torahcodes==1.0.7) (2.8.2) Requirement already satisfied: pytz>=2020.1 in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from pandas->torahcodes==1.0.7) (2024.1) Requirement already satisfied: tzdata>=2022.7 in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from pandas->torahcodes==1.0.7) (2023.4) Requirement already satisfied: PyYaml in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from python-hebrew-numbers->torahcodes==1.0.7) (6.0.1) Requirement already satisfied: httpx~=0.26.0 in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from python-telegram-bot->torahcodes==1.0.7) (0.26.0) Requirement already satisfied: nltk>=3.1 in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from textblob->torahcodes==1.0.7) (3.8.1) Requirement already satisfied: scipy in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from xgboost->torahcodes==1.0.7) (1.12.0) Requirement already satisfied: soupsieve>1.2 in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from beautifulsoup4<5.0.0,>=4.9.1->deep-translator->torahcodes==1.0.7) (2.5) Requirement already satisfied: anyio in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from httpx~=0.26.0->python-telegram-bot->torahcodes==1.0.7) (4.2.0) Requirement already satisfied: httpcore==1. in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from httpx~=0.26.0->python-telegram-bot->torahcodes==1.0.7) (1.0.2) Requirement already satisfied: sniffio in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from httpx~=0.26.0->python-telegram-bot->torahcodes==1.0.7) (1.3.0) Requirement already satisfied: h11<0.15,>=0.13 in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from httpcore==1.->httpx~=0.26.0->python-telegram-bot->torahcodes==1.0.7) (0.14.0) Requirement already satisfied: click in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from nltk>=3.1->textblob->torahcodes==1.0.7) (8.1.7) Requirement already satisfied: joblib in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from nltk>=3.1->textblob->torahcodes==1.0.7) (1.3.2) Requirement already satisfied: regex>=2021.8.3 in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from nltk>=3.1->textblob->torahcodes==1.0.7) (2023.12.25) Requirement already satisfied: tqdm in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from nltk>=3.1->textblob->torahcodes==1.0.7) (4.66.2) Requirement already satisfied: six>=1.5 in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from python-dateutil>=2.8.2->pandas->torahcodes==1.0.7) (1.16.0) Requirement already satisfied: colorama in c:\users\hp\desktop\python312\python\venv\lib\site-packages (from click->nltk>=3.1->textblob->torahcodes==1.0.7) (0.4.6) Building wheels for collected packages: torahcodes Building wheel for torahcodes (pyproject.toml) ... done Created wheel for torahcodes: filename=torahcodes-1.0.7-py3-none-any.whl size=2208326 sha256=bb58b8f1c020176063543160328cb39d4b64c67a4866cc0e96c2087f333a0bc7 Stored in directory: C:\Users\HP\AppData\Local\Temp\pip-ephem-wheel-cache-fuo42alc\wheels\96\55\5b\24cfd3fb5a55b55877d0792b3c1e14e1c18f9b54a1c91f3203 Successfully built torahcodes Installing collected packages: torahcodes Attempting uninstall: torahcodes Found existing installation: torahcodes 1.0.7 Uninstalling torahcodes-1.0.7: Successfully uninstalled torahcodes-1.0.7 Successfully installed torahcodes-1.0.7

(venv) C:\Users\HP\Desktop\Python312\Python>tbc-cli ←[1;91m [!] Module crashed.←[0m ←[1;91m[!] Debug info: ' Traceback (most recent call last): File "C:\Users\HP\Desktop\Python312\Python\venv\Lib\site-packages\torahcodes\TBC.py", line 18, in import readline ModuleNotFoundError: No module named 'readline'

←[0m ←[1;91m [!] Module input failed. Please make sure to install the dependencies.←[0m

(venv) C:\Users\HP\Desktop\Python312\Python>cd torahcodespython

(venv) C:\Users\HP\Desktop\Python312\Python\torahcodespython>tbc-cli ←[1;91m [!] Module crashed.←[0m ←[1;91m[!] Debug info: ' Traceback (most recent call last): File "C:\Users\HP\Desktop\Python312\Python\venv\Lib\site-packages\torahcodes\TBC.py", line 18, in import readline ModuleNotFoundError: No module named 'readline'

←[0m ←[1;91m [!] Module input failed. Please make sure to install the dependencies.←[0m

(venv) C:\Users\HP\Desktop\Python312\Python\torahcodespython>cd torahcodes

(venv) C:\Users\HP\Desktop\Python312\Python\torahcodespython\torahcodes>tbc-cli ←[1;91m [!] Module crashed.←[0m ←[1;91m[!] Debug info: ' Traceback (most recent call last): File "C:\Users\HP\Desktop\Python312\Python\venv\Lib\site-packages\torahcodes\TBC.py", line 18, in import readline ModuleNotFoundError: No module named 'readline'

←[0m ←[1;91m [!] Module input failed. Please make sure to install the dependencies.←[0m

(venv) C:\Users\HP\Desktop\Python312\Python\torahcodespython\torahcodes>

AbieMiracle commented 4 months ago

i am now seeing this message

PS C:\Users\HP\AppData\Local\Programs\Python> .\venv\Scripts\activate (venv) PS C:\Users\HP\AppData\Local\Programs\Python> tbc-cli Fatal error in launcher: Unable to create process using '"C:\Users\HP\Desktop\Python312\Python\venv\Scripts\python.exe" "C:\Users\HP\AppData\Local\Programs\Python\venv\Scripts\tbc-cli.exe" ': The system cannot find the file specified.

bartman081523 commented 4 months ago

@AbieMiracle

-activate venv .\venv\Scripts\activate

-install readline module pip install readline

tbc-cli

please let me know if this works for you. and if you have an error, give me the error message.

AbieMiracle commented 4 months ago

i got this error message when i tried it

Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users\HP\AppData\Local\Programs\Python\Python312\torahcodespython> .\venv\Scripts\activate (venv) PS C:\Users\HP\AppData\Local\Programs\Python\Python312\torahcodespython> pip install readline Fatal error in launcher: Unable to create process using '"C:\Users\HP\Desktop\Python312\Python\venv\Scripts\python.exe" "C:\Users\HP\AppData\Local\Programs\Python\Python312\torahcodespython\venv\Scripts\pip.exe" install readline': The system cannot find the file specified.

AbieMiracle commented 4 months ago

perhaps the files are not in the right place.

I'm trying to paste the pictures of the files on how they are arranged on my folder but it doesn't seem to be visible on this comment

Screenshot (15) Screenshot (17) Screenshot 2024-02-11 121136 Screenshot 2024-02-11 121207 Screenshot 2024-02-11 121228

AbieMiracle commented 4 months ago

On the pip install git package file. I installed it on my python downloaded directory. Then inside the torahcodespython file Build Torahcodes Torahcodes.egg-info Venv .gitignore .pypirc Manifest.in Readme Setup

Then inside the torahcodes file, it includes Modules Resources init Baphomet D Event_log Install Readme Requirements Tbc TBC Torah Wordsofselectedtexts_gematriavalues

These are the folders including the files in them in order

bartman081523 commented 4 months ago

Okay, I see. Let us start fresh.

-Go in your Downloads folder -Create a folder for your venv and project there, e.g. torah -Download the zip file from here https://github.com/pedroelbanquero/torahcodespython/archive/refs/heads/master.zip -unpack the folder from the master.zip file in the Downloads\torah folder, so you have Downloads\torah\torahcodespython-master folder -open cmd -cd to Downloads\torah folder cd %USERPROFILE%\Downloads\torah -create a venv in the Downloads\torah folder python -m venv .\venv -so you have Downloads\torah\venv -activate the venv .\venv\Scripts\activate -ensure pip is installed python -m ensurepip --upgrade -use pip to install toracodespython-master pip install .\toracodespython-master -install pyreadline3 (you need it for the program to run on Windows) pip install pyreadline3 -start tbc-cli tbc-cli

if you do it exactly like that, you should have the program started now.

if you want to start the program at a later time, you would activate the venv in Downloads\torah folder cmd.exe %USERPROFILE%\torah\venv\Scripts\activate and run tbc-cli please let me know if this works this time, and paste your errors, if you get them.

AbieMiracle commented 4 months ago

It worked. Thank you so much, i really needed this. All that's left is me learning how to efficiently use the program. Looks like i also learnt some basics of python also

Does the telegram bot also work

bartman081523 commented 4 months ago

see edit history

bartman081523 commented 4 months ago

see edit history

AbieMiracle commented 4 months ago

see edit history

I'll try it. Is it a command

AbieMiracle commented 4 months ago

i was able to search for my name and date using the conversion module and generate text. although they are some test that i cant read so i go to google to convert the english into hebrew then convert the hebrew to english and sometimes it gives me the real english word that is supposed to be there

bartman081523 commented 4 months ago

Yes, the output is not great in Windows.

What you can do is install WSL (Linux Subsystem for Windows) wsl command is already integrated into Windows 10+11, you dont need to download wsl yourself.

Install WSL + tbc-cli

cmd.exe (start as Admin) wsl --install -wait -restart Windows -wait until Ubuntu (WSL) is installed (console window will pop up) -put in a username and password for Ubuntu when you asked for it (console window) -wait until the console window of Ubuntu is ready (green prompt) -put in these commands (if you do sudo (admin rights), you will be asked for your password after)

sudo apt update
sudo apt upgrade -y

-wait for Ubuntu updates

sudo apt install python3.10-venv -y
cd ~
pwd
mkdir torahcodes
cd torahcodes
python3 -m venv ./venv
./venv/bin/pip install git+https://github.com/pedroelbanquero/torahcodespython
./venv/bin/tbc-cli

-or ~/torahcodes/venv/bin/tbc-cli -or

source ~/torahcodes/venv/bin/activate
tbc-cli

-you can start WSL (Ubuntu bash) if you search for “wsl” in the Start Menu -there you can do this command to directly start torahcodes: ~/torahcodes/venv/bin/tbc-cli -in Ubuntu bash (commandline) try also up and down arrows (command history), and try Tab command completion (1x or 2x -> key) to complete commands or file/dir names