Closed enyan0 closed 1 year ago
It seems the stylesheet has changed once more. Thank you for reporting.
Although, I did find a broken fields (see release v3.13), selecting conditions isn't one of them.
Are you sure that strat_test1
is a valid value for the first field on the create alert dialog?
Updating to v3.13 didnt help unfortunately. I tried both linux and windows and got the same problem. I have been having this issue for some time with alerts since a change in tv and a consequent update some time ago.
Conditions are fine. In the screenshot, strat_test1 is the only condition used -- it is the strategy name as it appears in the condition and it used to work in the past, then it broke and I never figured out what that was, but...
I wonder if something is up with the dependencies because when I install, I always get:
error: urllib3 2.0.4 is installed but urllib3<2.0 is required by {'google-auth'}
and I have to uninstall urllib3 and install urlib3==1.26.16 or less, then reinstall kairos to solve remaning dependencies or manually install cachetools and requests-oauthlib as required by google-auth at that point
(and unless I am mistaken, the installation hiccup came up around the same time of the alerts issue).
This is my package list on windows in a conda environment, in case you spot anything out of the ordinary:
Package Version
------------------------ -----------
attrs 23.1.0
beautifulsoup4 4.12.2
cachetools 5.3.1
certifi 2023.7.22
cffi 1.15.1
charset-normalizer 3.2.0
colorama 0.4.6
coloredlogs 15.0.1
configparser 6.0.0
Cython 3.0.0
dill 0.3.7
dnspython 2.4.1
exceptiongroup 1.1.2
fastnumbers 5.0.1
google-api-core 2.12.0.dev0
google-api-python-client 2.95.0
google-auth 2.22.0
google-auth-httplib2 0.1.0
google-auth-oauthlib 1.0.0
googleapis-common-protos 1.59.1
gspread 5.10.0
h11 0.14.0
httplib2 0.22.0
humanfriendly 10.0
idna 3.4
Kairos 2.97
numpy 1.25.1
oauth2client 4.1.3
oauthlib 3.2.2
outcome 1.2.0
Pillow 10.0.0
pip 23.2.1
protobuf 4.24.0rc2
psutil 5.9.5
pyasn1 0.5.0
pyasn1-modules 0.3.0
pycparser 2.21
pymongo 4.4.1
pyparsing 3.1.0
pyreadline3 3.4.1
PySocks 1.7.1
PyYAML 6.0.1
requests 2.31.0
requests-oauthlib 1.3.1
rsa 4.9
selenium 4.10.0
selenium-stealth 1.0.6
setuptools 68.0.0
six 1.16.0
sniffio 1.3.0
sortedcontainers 2.4.0
soupsieve 2.4.1
tqdm 4.65.0
trio 0.22.2
trio-websocket 0.10.3
uritemplate 4.1.1
urllib3 1.26.16
wheel 0.41.0
wsproto 1.2.0
and this is the package list on ubuntu:
Package Version
------------------------ -------------
apturl 0.5.2
attrs 23.1.0
beautifulsoup4 4.12.2
blinker 1.4
Brlapi 0.8.3
cachetools 5.3.1
certifi 2023.5.7
chardet 4.0.0
click 8.0.3
colorama 0.4.4
coloredlogs 15.0.1
command-not-found 0.3
configparser 6.0.0
cryptography 3.4.8
cupshelpers 1.0
Cython 3.0.0rc1
dbus-python 1.2.18
defer 1.0.6
dill 0.3.6
distro 1.7.0
distro-info 1.1build1
dnspython 2.4.0rc1
exceptiongroup 1.1.2
fastnumbers 5.0.1
google-api-core 2.12.0.dev0
google-api-python-client 2.93.0
google-auth 2.22.0
google-auth-httplib2 0.1.0
google-auth-oauthlib 1.0.0
googleapis-common-protos 1.59.1
gspread 5.10.0
h11 0.14.0
httplib2 0.20.2
humanfriendly 10.0
idna 3.3
importlib-metadata 4.6.4
jeepney 0.7.1
Kairos 2.97
keyring 23.5.0
language-selector 0.1
launchpadlib 1.10.16
lazr.restfulclient 0.14.4
lazr.uri 1.0.6
louis 3.20.0
macaroonbakery 1.3.1
more-itertools 8.10.0
netifaces 0.11.0
numpy 1.25.1
oauth2client 4.1.3
oauthlib 3.2.0
olefile 0.46
outcome 1.2.0
pexpect 4.8.0
Pillow 9.0.1
pip 22.0.2
protobuf 4.24.0rc1
psutil 5.9.5
ptyprocess 0.7.0
pyasn1 0.5.0
pyasn1-modules 0.3.0
pycairo 1.20.1
pycups 2.0.1
PyGObject 3.42.0
PyJWT 2.3.0
pymacaroons 0.13.0
pymongo 4.4.0
PyNaCl 1.5.0
pyparsing 2.4.7
pyRFC3339 1.1
PySocks 1.7.1
python-apt 2.3.0+ubuntu2
python-dateutil 2.8.1
python-debian 0.1.43ubuntu1
pytz 2022.1
PyVirtualDisplay 3.0
pyxdg 0.27
PyYAML 5.4.1
reportlab 3.6.8
requests 2.25.1
requests-oauthlib 1.3.1
rsa 4.9
SecretStorage 3.3.1
selenium 4.10.0
selenium-stealth 1.0.6
setuptools 59.6.0
six 1.16.0
sniffio 1.3.0
sortedcontainers 2.4.0
soupsieve 2.4.1
systemd-python 234
tqdm 4.65.0
trio 0.22.1
trio-websocket 0.10.3
ubuntu-advantage-tools 27.7
ubuntu-drivers-common 0.0.0
ufw 0.36.1
unattended-upgrades 0.1
uritemplate 4.1.1
urllib3 1.26.5
wadllib 1.3.6
wheel 0.37.1
wsproto 1.2.0
xdg 5
xkit 0.0.0
zipp 1.0.0
I doubt it has anything to do with your packages.
Did you try to clear your cache by running pyhton3 main.py -cls
?
If that doesn't help can you share your YAML please?
clearing cache didnt fix it. This is my yaml:
charts:
- url: https://...
timeframes: [1 minute]
watchlists: ["list_1"]
alerts:
- name: "alert_name_1"
show_multi_chart_layout: no
conditions: ['condition_1']
webhook: http://...
options:
expiration:
time:
open-ended: yes
show_popup: no
sound:
play: no
ringtone: Chirpy
duration: Once
send:
email: no
email-to-sms: no
sms: no
notify-on-app: no
message:
prepend: no
text: "{{strategy.order.alert_message}}"
webdriver:
run-in-background: no
There is a long and unsual waiting time before the alert dialog finally pops up, and immediately shuts down with condition error as per screenshot.
If I break, it stops here:
alert_dialog = find_element(browser, css_selectors['dlg_alert'], By.CSS_SELECTOR, True, True, 2)
Also, if I leave an empty field as condition, like this:
conditions: ['']
...it creates a generic alert for price crossing without the strat, so maybe it is stuck in finding the element xpath?
That could be. The create dialog button might be out of view.
Just to rule things out, you aren't at your maximum allowed alerts?
edit: your YAML looks fine
Yes, I'm under the limit.
When the alert dialog finally appears, just before failing, it is at the center of screen.
Do you have share_user_data = true
in your kairos.cfg?
Can you share a screenshot when you are waiting for the alert to pop-up?
Going to close it since it has been over 5 months since last communication. @enyan0 if you still have this issue, feel free to re-open.
Alerts not working (I have just noticed). The popup window for alert creation does not show.
I get this: