These are chat archives for mirumee/saleor

21st
Jun 2018
Yunaz Gilang Ramadhan
@YunazGilang
Jun 21 2018 04:58
image.png
hi, can someone help, why i get this error when executing python manage.py runserver it says, that : E:\PROJECT\saleor\env\lib\site-packages\django\template\defaulttags.py:313: RuntimeWarning: bool(taxed_money) will always evaluate to True, consider replacing the test with explicit if taxed_money is None or if taxed_money.gross. if match:
Shamhaad
@shamhaad180
Jun 21 2018 05:15
I will pull a clean version and see if the test works.
Shamhaad
@shamhaad180
Jun 21 2018 06:00
I think on a clean version(fresh pull), the error is "ModuleNotFoundError: No module named 'captcha.fields'"
Shamhaad
@shamhaad180
Jun 21 2018 06:44
If I use this tag https://github.com/mirumee/saleor/releases/tag/v2018.04, it works fine. Something is broke in the tests. :(
Filip Kucharczyk
@Pacu2
Jun 21 2018 07:19
@shamhaad180 have you updated your local dependencies after updating Saleor? Seems like you're missing some packages
Shamhaad
@shamhaad180
Jun 21 2018 07:32
I have been using the same version since I cloned a while back.
Right now, if you go and download the v2018.05 tag and try to follow the instructions on getting started will Saleor, I think it will fail.
Filip Kucharczyk
@Pacu2
Jun 21 2018 07:34
Error you've posted(ModuleNotFoundError...) seems related to missing django-recaptcha package, which was introduced in May release
That's why I've asked, if you've installed all dependencies
@YunazGilang Please check the code you've introduced to your customised saleor, seems like in some place you're truth value testing TaxedMoney instance, what's the Saleor version you're working on? It doesn't happen to me on latest master
Shamhaad
@shamhaad180
Jun 21 2018 07:39
Ohh. So pip install -r requirements.txt will not work for new dependencies?
Now my tests are working too.
Filip Kucharczyk
@Pacu2
Jun 21 2018 07:40
You need to manually reinstall your dependencies, after updating requirements file
Shamhaad
@shamhaad180
Jun 21 2018 07:41
Thank you! Will keep in mind.
Filip Kucharczyk
@Pacu2
Jun 21 2018 08:03
Glad to help