Code Monkey home page Code Monkey logo

mcafee2cash's People

Contributors

stephancill avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mcafee2cash's Issues

cant test the bot using test.py

I have been trying to check the bot response using test.py file and getting this error but when I run the main.py this error never appears.

C:\Users\DeathStar\Dropbox\Server keys\Monitors & Traders\Git Files\mcafee2cash>pipenv run python test.py
Test: get_coins_bittrex passed
Test: extract_symbols passed
Test: get_sentiment_analysis passed
Test: get_verdict passed
Test: analyze passed
482598433
Running bot...
Test: telegram_summary passed
482598433
Running bot...
Traceback (most recent call last):
File "C:\Users\DeathStar.virtualenvs\mcafee2cash-8uNjmB4s\lib\site-packages\telepot\loop.py", line 60, in run_forever
allowed_updates=allowed_updates)
File "C:\Users\DeathStar.virtualenvs\mcafee2cash-8uNjmB4s\lib\site-packages\telepot_init_.py", line 993, in getUpdates
return self._api_request('getUpdates', rectify(p))
File "C:\Users\DeathStar.virtualenvs\mcafee2cash-8uNjmB4s\lib\site-packages\telepot_init
.py", line 491, in _api_request
return api.request((self._token, method, params, files), **kwargs)
File "C:\Users\DeathStar.virtualenvs\mcafee2cash-8uNjmB4s\lib\site-packages\telepot\api.py", line 155, in request
return _parse(r)
File "C:\Users\DeathStar.virtualenvs\mcafee2cash-8uNjmB4s\lib\site-packages\telepot\api.py", line 150, in parse
raise exception.TelegramError(description, error_code, data)
telepot.exception.TelegramError: ('Conflict: terminated by other long poll or webhook', 409, {'ok': False, 'error_code': 409, 'description': 'Conflict: terminated by other long poll or webhook'})
Traceback (most recent call last):
File "C:\Users\DeathStar.virtualenvs\mcafee2cash-8uNjmB4s\lib\site-packages\telepot\loop.py", line 60, in run_forever
allowed_updates=allowed_updates)
File "C:\Users\DeathStar.virtualenvs\mcafee2cash-8uNjmB4s\lib\site-packages\telepot_init
.py", line 993, in getUpdates
return self._api_request('getUpdates', rectify(p))
File "C:\Users\DeathStar.virtualenvs\mcafee2cash-8uNjmB4s\lib\site-packages\telepot_init
.py", line 491, in _api_request
return api.request((self._token, method, params, files), **kwargs)
Test: telegram_buy failed
File "C:\Users\DeathStar.virtualenvs\mcafee2cash-8uNjmB4s\lib\site-packages\telepot\api.py", line 155, in request
return _parse(r)
File "C:\Users\DeathStar.virtualenvs\mcafee2cash-8uNjmB4s\lib\site-packages\telepot\api.py", line 150, in _parse
raise exception.TelegramError(description, error_code, data)
Traceback (most recent call last):
telepot.exception.TelegramError: ('Conflict: terminated by other long poll or webhook', 409, {'ok': False, 'error_code': 409, 'description': 'Conflict: terminated by other long poll or webhook'})
File "test.py", line 118, in test_telegram_buy
replies = main.bot.get_query_replies(query_data)
File "C:\Users\DeathStar\Dropbox\Server keys\Monitors & Traders\Git Files\mcafee2cash\telegram.py", line 158, in get_query_replies
replies.append((f'Send me an amount in BTC or /cancel ({self.bittrex_utils.get_available_balance("BTC")} BTC available)', None))
File "C:\Users\DeathStar\Dropbox\Server keys\Monitors & Traders\Git Files\mcafee2cash\bittrex_utils.py", line 37, in get_available_balance
return self.my_bittrex.get_balance(symbol)["result"]["Available"]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "test.py", line 195, in
raise e
File "test.py", line 192, in
test_queuetest_name
File "test.py", line 123, in test_telegram_buy
raise AssertionError(e)
AssertionError: 'NoneType' object is not subscriptable

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.