-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: initial_value must be unicode or None, not str #91
Comments
The configparser module is complaining about the encoding of the configfile which should be unicode apparently. So maybe you can try to convert the format of the config file. You can also avoid this issue by adding the connection setting to the .bitcoinlib/config/providers.json config file: See https://bitcoinlib.readthedocs.io/en/latest/_static/manuals.setup-bitcoind-connection.html |
Thanks! I figured it out that the lib has to be run with Python 3, not 2.7
.... that solved it too
…On Fri, Sep 27, 2019 at 4:08 AM Lennart Jongeneel ***@***.***> wrote:
The configparser module is complaining about the encoding of the
configfile which should be unicode apparently. So maybe you can try to
convert the format of the config file.
You can also avoid this issue by adding the connection setting to the
.bitcoinlib/config/providers.json config file:
"bitcoind.testnet": { "provider": "bitcoind", "network": "testnet",
"client_class": "BitcoindClient", "url": ***@***.***_url:18332",
"api_key": "", "priority": 11, "denominator": 100000000 }
See
https://bitcoinlib.readthedocs.io/en/latest/_static/manuals.setup-bitcoind-connection.html
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#91?email_source=notifications&email_token=ACS7DGTBFIKVSNA7NQR7OY3QLWWN5A5CNFSM4IZ6EZKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7X7IAA#issuecomment-535819264>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACS7DGUGII2HBCJWLUOI4KLQLWWN5ANCNFSM4IZ6EZKA>
.
|
When running a very basic test, like this:
I get the error:
Python is 3.7 . Running on Ubuntu kernel version 4.18.0.25
The text was updated successfully, but these errors were encountered: