Giter Club home page Giter Club logo

Comments (7)

lorcalhost avatar lorcalhost commented on June 10, 2024 2

There seem to be some problems with your installation.
Running on Windows is a bit buggy in general, if you can I strongly recommend running it through Linux or Windows WSL

from btb-manager-telegram.

lorcalhost avatar lorcalhost commented on June 10, 2024

Hi @KINOTheProducer ,
as discussed in #54, BTB-manager-telegram currently has some problems with read/write/execute permissions on Windows.

Although it is an experimental feature you can try running the bot via docker.

To do so run the command

$ python3 docker_setup.py

to set up the environment and Docker image.

After the setup you can run the bot using the --docker flag:

$ python3 -m btb_manager_telegram --docker

Let me know if this helps :)

from btb-manager-telegram.

KINOTheProducer avatar KINOTheProducer commented on June 10, 2024

Hi @lorcalhost - grazie mille per la risposta!

I'm trying to install the Docker image as you said, but have come across this error, even though these files exist in the binance-trade-bot filesystem already:

[*] Is a Binance Trade Bot installation already present on your filesystem (y/n)?: y
[*] Enter path to your previous Binance Trade bot installation (e.g. ../binance-trade-bot/): ../binance-trade-bot
[+] Path ../binance-trade-bot found on the filesystem.
[-] Unable to find file ../binance-trade-bot\user.cfg
        Please manually create it at ./binance-trade-bot/user.cfg
[-] Unable to find file ../binance-trade-bot\supported_coin_list
        Please manually create it at ./binance-trade-bot/supported_coin_list
[-] Unable to find file ../binance-trade-bot\config/apprise.yml
        Please manually create it at ./binance-trade-bot/config/apprise.yml
[*] Would you like to run the setup script for running the bot in a docker container (y/n)?:

Is it fine to continue the setup, or should I fix something first?

from btb-manager-telegram.

lorcalhost avatar lorcalhost commented on June 10, 2024

Manually copy those 3 files into BTB-manager-telegram/binance-trade-bot.
Then run the docker_setup.py script again selection n as option when asked Is a Binance Trade Bot installation already present on your filesystem (y/n)?

from btb-manager-telegram.

KINOTheProducer avatar KINOTheProducer commented on June 10, 2024

Strange, I'm now getting this, even though those exact files have been copied into the directory you mentioned:

←[33m[*] Is a Binance Trade Bot installation already present on your filesystem (y/n)?: ←[39mn
←[33m[*] Please manually create/edit the following files:
        - ./binance-trade-bot/user.cfg
        - ./binance-trade-bot/supported_coin_list
        - ./binance-trade-bot/config/apprise.yml
←[33m[*] Would you like to run the setup script for running the bot in a docker container (y/n)?:

from btb-manager-telegram.

lorcalhost avatar lorcalhost commented on June 10, 2024

That's the intended behavior, you can proceed.

from btb-manager-telegram.

KINOTheProducer avatar KINOTheProducer commented on June 10, 2024

Upon proceeding, I get this:

←[33m[*] Setting things up for docker...←[39m
Traceback (most recent call last):
  File "C:\Users\Anthony\Desktop\Binance Trade Bot\BTB-manager-telegram\docker_setup.py", line 71, in docker_setup
    process = subprocess.Popen(
  File "C:\Users\Anthony\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\Anthony\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1420, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Anthony\Desktop\Binance Trade Bot\BTB-manager-telegram\docker_setup.py", line 80, in docker_setup
    make_image()
  File "C:\Users\Anthony\Desktop\Binance Trade Bot\BTB-manager-telegram\docker_setup.py", line 36, in make_image
    check_process = subprocess.Popen(
  File "C:\Users\Anthony\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\Anthony\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1420, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Anthony\Desktop\Binance Trade Bot\BTB-manager-telegram\docker_setup.py", line 195, in <module>
    main()
  File "C:\Users\Anthony\Desktop\Binance Trade Bot\BTB-manager-telegram\docker_setup.py", line 182, in main
    default()
  File "C:\Users\Anthony\Desktop\Binance Trade Bot\BTB-manager-telegram\docker_setup.py", line 148, in default
    docker_setup()
  File "C:\Users\Anthony\Desktop\Binance Trade Bot\BTB-manager-telegram\docker_setup.py", line 83, in docker_setup
    update_image()
  File "C:\Users\Anthony\Desktop\Binance Trade Bot\BTB-manager-telegram\docker_setup.py", line 62, in update_image
    delete_image()
  File "C:\Users\Anthony\Desktop\Binance Trade Bot\BTB-manager-telegram\docker_setup.py", line 25, in delete_image
    process = subprocess.Popen(command, stderr=SUBPIPE, stdin=SUBPIPE)
  File "C:\Users\Anthony\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\Anthony\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1420, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

from btb-manager-telegram.

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.