You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import ipfsapi
api = ipfsapi.connect('127.0.0.1', 5001)
res = api.add('test.txt')
res
Error :
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[11], line 2
1 import ipfsapi
----> 2 api = ipfsapi.connect('127.0.0.1', 5001)
3 res = api.add('test.txt')
4 res
File ~/.local/lib/python3.11/site-packages/ipfsapi/client/__init__.py:85, in connect(host, port, base, chunk_size, **defaults)
64 """Create a new :class:`~ipfsapi.Client` instance and connect to the
65 daemon to validate that its version is supported.
66
(...)
82 ~ipfsapi.Client
83 """
84 # Create client instance
---> 85 client = Client(host, port, base, chunk_size, **defaults)
87 # Query version number from daemon and validate it
88 assert_version(client.version()['Version'])
File ~/.local/lib/python3.11/site-packages/ipfsapi/client/__init__.py:190, in Client.__init__(self, host, port, base, chunk_size, **defaults)
187 pass
189 addr = "/{0}/{1}/tcp/{2}/{3}".format(host_type, url.hostname, url.port, url.scheme)
--> 190 super(Client, self).__init__(addr, base, chunk_size, timeout=None, **defaults)
TypeError: ClientBase.__init__() takes from 1 to 3 positional arguments but 4 positional arguments (and 1 keyword-only argument) were given
The text was updated successfully, but these errors were encountered:
hemangjoshi37a
changed the title
TypeError: ClientBase.__init__() takes from 1 to 3 positional arguments but 4 positional arguments (and 1 keyword-only argument) were given
🐛 : TypeError: ClientBase.__init__() takes from 1 to 3 positional arguments but 4 positional arguments (and 1 keyword-only argument) were givenJan 22, 2023
Code :
Error :
The text was updated successfully, but these errors were encountered: