Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

ValueError: invalid literal for int() with base 10: 'True' while loading app_cfg.ini #4478

Closed
shadeofblue opened this issue Jul 16, 2019 · 5 comments
Assignees
Labels
0.21 release bug P2 Severity-Low/ Effort-easy

Comments

@shadeofblue
Copy link
Contributor

shadeofblue commented Jul 16, 2019

Description

Golem Version: 0.20.0+dev9.g13fafea
OS [e.g. Windows 10 Pro]: Ubuntu 18.04
Branch (if launched from source): b0.20
Mainnet/Testnet: mainnet
Description of the issue:

'Reading config from file /home/blue/hyperg-test/mainnet/app_cfg.ini' ... failed with an exception
Traceback (most recent call last):
  File "/home/blue/PycharmProjects/golem/golem/core/simpleconfig.py", line 125, in __init__
    self.__read_options(cfg)
  File "/home/blue/PycharmProjects/golem/golem/core/simpleconfig.py", line 194, in __read_options
    prop.set_value_from_str(self.__read_option(cfg, prop))
  File "/home/blue/PycharmProjects/golem/golem/core/simpleconfig.py", line 48, in set_value_from_str
    value_type = self._value_type(val)
ValueError: invalid literal for int() with base 10: 'True'

Steps To Reproduce

  1. Launch a brand-new instance of Golem on mainnet directly from shell (using golemapp.py)
  2. Have it act as a provider?
  3. Stop Golem, Start Golem
  4. See error

Expected behavior

No error

@shadeofblue shadeofblue added bug brass P2 Severity-Low/ Effort-easy and removed _current labels Jul 16, 2019
@etam etam self-assigned this Aug 5, 2019
@etam
Copy link
Contributor

etam commented Aug 5, 2019

Could not reproduce. I tried both on current b0.20 and 13fafea. Got more tips?

@shadeofblue
Copy link
Contributor Author

@ederenn @ZmijaWA maybe a datadir that reproduces this issue could be provided to @etam ?

@ederenn
Copy link

ederenn commented Sep 23, 2019

couldn't reproduce on b0.21.0. closing for now

@ederenn ederenn closed this as completed Sep 23, 2019
@etam etam removed the _next label Sep 24, 2019
@etam
Copy link
Contributor

etam commented Sep 27, 2019

Got it!

enable talkback = False
enable monitor = True

causes this error and is changed into

enable talkback = 0
enable monitor = 1

@etam etam reopened this Sep 27, 2019
@etam
Copy link
Contributor

etam commented Sep 30, 2019

Steps to reproduce:

  1. start golem with fresh, clear datadir
  2. accept terms via rpc (cli or gui)
  3. restart golem

etam added a commit that referenced this issue Sep 30, 2019
etam added a commit that referenced this issue Sep 30, 2019
@etam etam closed this as completed Sep 30, 2019
etam added a commit that referenced this issue Nov 6, 2019
Storing booleans in config causes problems as in #4478
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
0.21 release bug P2 Severity-Low/ Effort-easy
Projects
None yet
Development

No branches or pull requests

3 participants