after_merge
stringlengths
28
79.6k
before_merge
stringlengths
20
79.6k
url
stringlengths
38
71
full_traceback
stringlengths
43
922k
traceback_type
stringclasses
555 values
async def jsonrpc_collection_update( self, claim_id, bid=None, channel_id=None, channel_name=None, channel_account_id=None, clear_channel=False, account_id=None, wallet_id=None, claim_address=None, funding_account_ids=None, preview=False, blocking=False, replace=F...
async def jsonrpc_collection_update( self, claim_id, bid=None, channel_id=None, channel_name=None, channel_account_id=None, clear_channel=False, account_id=None, wallet_id=None, claim_address=None, funding_account_ids=None, preview=False, blocking=False, replace=F...
https://github.com/lbryio/lbry-sdk/issues/2368
2019-08-01 18:18:06,916 INFO lbry.stream.reflector.client:119: Sent reflector blob e5828b7e 2019-08-01 18:18:29,221 INFO lbry.stream.reflector.client:119: Sent reflector blob 867d1a2c 2019-08-01 18:18:51,545 INFO lbry.stream.reflector.client:119: Sent reflector blob 6e365367 2019-08-01 18:18:58,400 INFO ...
AttributeError
async def jsonrpc_support_create( self, claim_id, amount, tip=False, account_id=None, wallet_id=None, funding_account_ids=None, preview=False, blocking=False, ): """ Create a support or a tip for name claim. Usage: support_create (<claim_id> | --claim_id=<claim_i...
async def jsonrpc_support_create( self, claim_id, amount, tip=False, account_id=None, wallet_id=None, funding_account_ids=None, preview=False, blocking=False, ): """ Create a support or a tip for name claim. Usage: support_create (<claim_id> | --claim_id=<claim_i...
https://github.com/lbryio/lbry-sdk/issues/2368
2019-08-01 18:18:06,916 INFO lbry.stream.reflector.client:119: Sent reflector blob e5828b7e 2019-08-01 18:18:29,221 INFO lbry.stream.reflector.client:119: Sent reflector blob 867d1a2c 2019-08-01 18:18:51,545 INFO lbry.stream.reflector.client:119: Sent reflector blob 6e365367 2019-08-01 18:18:58,400 INFO ...
AttributeError
async def jsonrpc_support_abandon( self, claim_id=None, txid=None, nout=None, keep=None, account_id=None, wallet_id=None, preview=False, blocking=False, ): """ Abandon supports, including tips, of a specific claim, optionally keeping some amount as supports. Usage: ...
async def jsonrpc_support_abandon( self, claim_id=None, txid=None, nout=None, keep=None, account_id=None, wallet_id=None, preview=False, blocking=False, ): """ Abandon supports, including tips, of a specific claim, optionally keeping some amount as supports. Usage: ...
https://github.com/lbryio/lbry-sdk/issues/2368
2019-08-01 18:18:06,916 INFO lbry.stream.reflector.client:119: Sent reflector blob e5828b7e 2019-08-01 18:18:29,221 INFO lbry.stream.reflector.client:119: Sent reflector blob 867d1a2c 2019-08-01 18:18:51,545 INFO lbry.stream.reflector.client:119: Sent reflector blob 6e365367 2019-08-01 18:18:58,400 INFO ...
AttributeError
async def jsonrpc_file_reflect(self, **kwargs): """ Reflect all the blobs in a file matching the filter criteria Usage: file_reflect [--sd_hash=<sd_hash>] [--file_name=<file_name>] [--stream_hash=<stream_hash>] [--rowid=<rowid>] [--reflector=<reflector>] ...
async def jsonrpc_file_reflect(self, **kwargs): """ Reflect all the blobs in a file matching the filter criteria Usage: file_reflect [--sd_hash=<sd_hash>] [--file_name=<file_name>] [--stream_hash=<stream_hash>] [--rowid=<rowid>] [--reflector=<reflector>] ...
https://github.com/lbryio/lbry-sdk/issues/2368
2019-08-01 18:18:06,916 INFO lbry.stream.reflector.client:119: Sent reflector blob e5828b7e 2019-08-01 18:18:29,221 INFO lbry.stream.reflector.client:119: Sent reflector blob 867d1a2c 2019-08-01 18:18:51,545 INFO lbry.stream.reflector.client:119: Sent reflector blob 6e365367 2019-08-01 18:18:58,400 INFO ...
AttributeError
def __init__( self, loop: asyncio.AbstractEventLoop, config: "Config", blob_manager: "BlobManager", wallet_manager: "WalletManager", storage: "SQLiteStorage", node: Optional["Node"], analytics_manager: Optional["AnalyticsManager"] = None, ): self.loop = loop self.config = config ...
def __init__( self, loop: asyncio.AbstractEventLoop, config: "Config", blob_manager: "BlobManager", wallet_manager: "WalletManager", storage: "SQLiteStorage", node: Optional["Node"], analytics_manager: Optional["AnalyticsManager"] = None, ): self.loop = loop self.config = config ...
https://github.com/lbryio/lbry-sdk/issues/2368
2019-08-01 18:18:06,916 INFO lbry.stream.reflector.client:119: Sent reflector blob e5828b7e 2019-08-01 18:18:29,221 INFO lbry.stream.reflector.client:119: Sent reflector blob 867d1a2c 2019-08-01 18:18:51,545 INFO lbry.stream.reflector.client:119: Sent reflector blob 6e365367 2019-08-01 18:18:58,400 INFO ...
AttributeError
async def reflect_streams(self): while True: if self.config.reflect_streams and self.config.reflector_servers: sd_hashes = await self.storage.get_streams_to_re_reflect() sd_hashes = [sd for sd in sd_hashes if sd in self.streams] batch = [] while sd_hashes: ...
async def reflect_streams(self): while True: if self.config.reflect_streams and self.config.reflector_servers: sd_hashes = await self.storage.get_streams_to_re_reflect() sd_hashes = [sd for sd in sd_hashes if sd in self.streams] batch = [] while sd_hashes: ...
https://github.com/lbryio/lbry-sdk/issues/2368
2019-08-01 18:18:06,916 INFO lbry.stream.reflector.client:119: Sent reflector blob e5828b7e 2019-08-01 18:18:29,221 INFO lbry.stream.reflector.client:119: Sent reflector blob 867d1a2c 2019-08-01 18:18:51,545 INFO lbry.stream.reflector.client:119: Sent reflector blob 6e365367 2019-08-01 18:18:58,400 INFO ...
AttributeError
def stop(self): if self.resume_saving_task and not self.resume_saving_task.done(): self.resume_saving_task.cancel() if self.re_reflect_task and not self.re_reflect_task.done(): self.re_reflect_task.cancel() while self.streams: _, stream = self.streams.popitem() stream.stop_ta...
def stop(self): if self.resume_saving_task and not self.resume_saving_task.done(): self.resume_saving_task.cancel() if self.re_reflect_task and not self.re_reflect_task.done(): self.re_reflect_task.cancel() while self.streams: _, stream = self.streams.popitem() stream.stop_ta...
https://github.com/lbryio/lbry-sdk/issues/2368
2019-08-01 18:18:06,916 INFO lbry.stream.reflector.client:119: Sent reflector blob e5828b7e 2019-08-01 18:18:29,221 INFO lbry.stream.reflector.client:119: Sent reflector blob 867d1a2c 2019-08-01 18:18:51,545 INFO lbry.stream.reflector.client:119: Sent reflector blob 6e365367 2019-08-01 18:18:58,400 INFO ...
AttributeError
async def create_stream( self, file_path: str, key: Optional[bytes] = None, iv_generator: Optional[typing.Generator[bytes, None, None]] = None, ) -> ManagedStream: stream = await ManagedStream.create( self.loop, self.config, self.blob_manager, file_path, key, iv_generator ) self.stre...
async def create_stream( self, file_path: str, key: Optional[bytes] = None, iv_generator: Optional[typing.Generator[bytes, None, None]] = None, ) -> ManagedStream: stream = await ManagedStream.create( self.loop, self.config, self.blob_manager, file_path, key, iv_generator ) self.stre...
https://github.com/lbryio/lbry-sdk/issues/2368
2019-08-01 18:18:06,916 INFO lbry.stream.reflector.client:119: Sent reflector blob e5828b7e 2019-08-01 18:18:29,221 INFO lbry.stream.reflector.client:119: Sent reflector blob 867d1a2c 2019-08-01 18:18:51,545 INFO lbry.stream.reflector.client:119: Sent reflector blob 6e365367 2019-08-01 18:18:58,400 INFO ...
AttributeError
async def delete_stream( self, stream: ManagedStream, delete_file: Optional[bool] = False ): if stream.sd_hash in self.running_reflector_uploads: self.running_reflector_uploads[stream.sd_hash].cancel() stream.stop_tasks() if stream.sd_hash in self.streams: del self.streams[stream.sd_hash...
async def delete_stream( self, stream: ManagedStream, delete_file: Optional[bool] = False ): stream.stop_tasks() if stream.sd_hash in self.streams: del self.streams[stream.sd_hash] blob_hashes = [stream.sd_hash] + [b.blob_hash for b in stream.descriptor.blobs[:-1]] await self.blob_manager.de...
https://github.com/lbryio/lbry-sdk/issues/2368
2019-08-01 18:18:06,916 INFO lbry.stream.reflector.client:119: Sent reflector blob e5828b7e 2019-08-01 18:18:29,221 INFO lbry.stream.reflector.client:119: Sent reflector blob 867d1a2c 2019-08-01 18:18:51,545 INFO lbry.stream.reflector.client:119: Sent reflector blob 6e365367 2019-08-01 18:18:58,400 INFO ...
AttributeError
async def connect(cls, path: Union[bytes, str], *args, **kwargs): def _connect(): return sqlite3.connect(path, *args, **kwargs) db = cls() db.connection = await asyncio.get_event_loop().run_in_executor( db.executor, _connect ) return db
async def connect(cls, path: Union[bytes, str], *args, **kwargs): db = cls() db.connection = await wrap_future( db.executor.submit(sqlite3.connect, path, *args, **kwargs) ) return db
https://github.com/lbryio/lbry-sdk/issues/2164
2019-05-22 11:29:08,217 INFO torba.client.baseledger:125: (lbc_mainnet) on_address: ['bRFrdNffbqpmLnJDv9n3WPXHSQZx3jbQ9d', 'bCooREDfWchZp2W3J3sp4cpYFTwFgjs4HB', 'bJ4t5xDH3VaCn9tyjf2SGKr9E5NWsTVoZa', 'bR8NvBkV4FKzm3GsrLTLpEdajoPSin86Hg', 'bGuS42xgcRH6eVoXmFusiie2z85v4fbkm5', 'bWc6ZgefAwqvKddQGhbnuNuGe5Qdt3JyS5', 'bG...
sqlite3.InterfaceError
def executemany(self, sql: str, params: Iterable): params = params if params is not None else [] # this fetchall is needed to prevent SQLITE_MISUSE return self.run(lambda conn: conn.executemany(sql, params).fetchall())
def executemany(self, sql: str, params: Iterable): def __executemany_in_a_transaction(conn: sqlite3.Connection, *args, **kwargs): return conn.executemany(*args, **kwargs) return self.run(__executemany_in_a_transaction, sql, params)
https://github.com/lbryio/lbry-sdk/issues/2164
2019-05-22 11:29:08,217 INFO torba.client.baseledger:125: (lbc_mainnet) on_address: ['bRFrdNffbqpmLnJDv9n3WPXHSQZx3jbQ9d', 'bCooREDfWchZp2W3J3sp4cpYFTwFgjs4HB', 'bJ4t5xDH3VaCn9tyjf2SGKr9E5NWsTVoZa', 'bR8NvBkV4FKzm3GsrLTLpEdajoPSin86Hg', 'bGuS42xgcRH6eVoXmFusiie2z85v4fbkm5', 'bWc6ZgefAwqvKddQGhbnuNuGe5Qdt3JyS5', 'bG...
sqlite3.InterfaceError
def executescript(self, script: str) -> Awaitable: return self.run(lambda conn: conn.executescript(script))
def executescript(self, script: str) -> Awaitable: return wrap_future(self.executor.submit(self.connection.executescript, script))
https://github.com/lbryio/lbry-sdk/issues/2164
2019-05-22 11:29:08,217 INFO torba.client.baseledger:125: (lbc_mainnet) on_address: ['bRFrdNffbqpmLnJDv9n3WPXHSQZx3jbQ9d', 'bCooREDfWchZp2W3J3sp4cpYFTwFgjs4HB', 'bJ4t5xDH3VaCn9tyjf2SGKr9E5NWsTVoZa', 'bR8NvBkV4FKzm3GsrLTLpEdajoPSin86Hg', 'bGuS42xgcRH6eVoXmFusiie2z85v4fbkm5', 'bWc6ZgefAwqvKddQGhbnuNuGe5Qdt3JyS5', 'bG...
sqlite3.InterfaceError
def execute_fetchall( self, sql: str, parameters: Iterable = None ) -> Awaitable[Iterable[sqlite3.Row]]: parameters = parameters if parameters is not None else [] return self.run(lambda conn: conn.execute(sql, parameters).fetchall())
def execute_fetchall( self, sql: str, parameters: Iterable = None ) -> Awaitable[Iterable[sqlite3.Row]]: parameters = parameters if parameters is not None else [] def __fetchall(conn: sqlite3.Connection, *args, **kwargs): return conn.execute(*args, **kwargs).fetchall() return wrap_future( ...
https://github.com/lbryio/lbry-sdk/issues/2164
2019-05-22 11:29:08,217 INFO torba.client.baseledger:125: (lbc_mainnet) on_address: ['bRFrdNffbqpmLnJDv9n3WPXHSQZx3jbQ9d', 'bCooREDfWchZp2W3J3sp4cpYFTwFgjs4HB', 'bJ4t5xDH3VaCn9tyjf2SGKr9E5NWsTVoZa', 'bR8NvBkV4FKzm3GsrLTLpEdajoPSin86Hg', 'bGuS42xgcRH6eVoXmFusiie2z85v4fbkm5', 'bWc6ZgefAwqvKddQGhbnuNuGe5Qdt3JyS5', 'bG...
sqlite3.InterfaceError
def execute(self, sql: str, parameters: Iterable = None) -> Awaitable[sqlite3.Cursor]: parameters = parameters if parameters is not None else [] return self.run(lambda conn: conn.execute(sql, parameters))
def execute(self, sql: str, parameters: Iterable = None) -> Awaitable[sqlite3.Cursor]: parameters = parameters if parameters is not None else [] return self.run( lambda conn, sql, parameters: conn.execute(sql, parameters), sql, parameters )
https://github.com/lbryio/lbry-sdk/issues/2164
2019-05-22 11:29:08,217 INFO torba.client.baseledger:125: (lbc_mainnet) on_address: ['bRFrdNffbqpmLnJDv9n3WPXHSQZx3jbQ9d', 'bCooREDfWchZp2W3J3sp4cpYFTwFgjs4HB', 'bJ4t5xDH3VaCn9tyjf2SGKr9E5NWsTVoZa', 'bR8NvBkV4FKzm3GsrLTLpEdajoPSin86Hg', 'bGuS42xgcRH6eVoXmFusiie2z85v4fbkm5', 'bWc6ZgefAwqvKddQGhbnuNuGe5Qdt3JyS5', 'bG...
sqlite3.InterfaceError
def run(self, fun, *args, **kwargs) -> Awaitable: return asyncio.get_event_loop().run_in_executor( self.executor, lambda: self.__run_transaction(fun, *args, **kwargs) )
def run(self, fun, *args, **kwargs) -> Awaitable: return wrap_future( self.executor.submit(self.__run_transaction, fun, *args, **kwargs) )
https://github.com/lbryio/lbry-sdk/issues/2164
2019-05-22 11:29:08,217 INFO torba.client.baseledger:125: (lbc_mainnet) on_address: ['bRFrdNffbqpmLnJDv9n3WPXHSQZx3jbQ9d', 'bCooREDfWchZp2W3J3sp4cpYFTwFgjs4HB', 'bJ4t5xDH3VaCn9tyjf2SGKr9E5NWsTVoZa', 'bR8NvBkV4FKzm3GsrLTLpEdajoPSin86Hg', 'bGuS42xgcRH6eVoXmFusiie2z85v4fbkm5', 'bWc6ZgefAwqvKddQGhbnuNuGe5Qdt3JyS5', 'bG...
sqlite3.InterfaceError
def __run_transaction( self, fun: Callable[[sqlite3.Connection, Any, Any], Any], *args, **kwargs ): self.connection.execute("begin") try: result = fun(self.connection, *args, **kwargs) # type: ignore self.connection.commit() return result except (Exception, OSError) as e: ...
def __run_transaction( self, fun: Callable[[sqlite3.Connection, Any, Any], Any], *args, **kwargs ): self.connection.execute("begin") try: result = fun(self.connection, *args, **kwargs) # type: ignore self.connection.commit() return result except (Exception, OSError): # as e: ...
https://github.com/lbryio/lbry-sdk/issues/2164
2019-05-22 11:29:08,217 INFO torba.client.baseledger:125: (lbc_mainnet) on_address: ['bRFrdNffbqpmLnJDv9n3WPXHSQZx3jbQ9d', 'bCooREDfWchZp2W3J3sp4cpYFTwFgjs4HB', 'bJ4t5xDH3VaCn9tyjf2SGKr9E5NWsTVoZa', 'bR8NvBkV4FKzm3GsrLTLpEdajoPSin86Hg', 'bGuS42xgcRH6eVoXmFusiie2z85v4fbkm5', 'bWc6ZgefAwqvKddQGhbnuNuGe5Qdt3JyS5', 'bG...
sqlite3.InterfaceError
def run_with_foreign_keys_disabled(self, fun, *args, **kwargs) -> Awaitable: return asyncio.get_event_loop().run_in_executor( self.executor, self.__run_transaction_with_foreign_keys_disabled, fun, args, kwargs, )
def run_with_foreign_keys_disabled(self, fun, *args, **kwargs) -> Awaitable: return wrap_future( self.executor.submit( self.__run_transaction_with_foreign_keys_disabled, fun, *args, **kwargs ) )
https://github.com/lbryio/lbry-sdk/issues/2164
2019-05-22 11:29:08,217 INFO torba.client.baseledger:125: (lbc_mainnet) on_address: ['bRFrdNffbqpmLnJDv9n3WPXHSQZx3jbQ9d', 'bCooREDfWchZp2W3J3sp4cpYFTwFgjs4HB', 'bJ4t5xDH3VaCn9tyjf2SGKr9E5NWsTVoZa', 'bR8NvBkV4FKzm3GsrLTLpEdajoPSin86Hg', 'bGuS42xgcRH6eVoXmFusiie2z85v4fbkm5', 'bWc6ZgefAwqvKddQGhbnuNuGe5Qdt3JyS5', 'bG...
sqlite3.InterfaceError
def __run_transaction_with_foreign_keys_disabled( self, fun: Callable[[sqlite3.Connection, Any, Any], Any], args, kwargs ): (foreign_keys_enabled,) = self.connection.execute("pragma foreign_keys").fetchone() if not foreign_keys_enabled: raise sqlite3.IntegrityError( "foreign keys are dis...
def __run_transaction_with_foreign_keys_disabled( self, fun: Callable[[sqlite3.Connection, Any, Any], Any], *args, **kwargs ): (foreign_keys_enabled,) = self.connection.execute("pragma foreign_keys").fetchone() if not foreign_keys_enabled: raise sqlite3.IntegrityError( "foreign keys are ...
https://github.com/lbryio/lbry-sdk/issues/2164
2019-05-22 11:29:08,217 INFO torba.client.baseledger:125: (lbc_mainnet) on_address: ['bRFrdNffbqpmLnJDv9n3WPXHSQZx3jbQ9d', 'bCooREDfWchZp2W3J3sp4cpYFTwFgjs4HB', 'bJ4t5xDH3VaCn9tyjf2SGKr9E5NWsTVoZa', 'bR8NvBkV4FKzm3GsrLTLpEdajoPSin86Hg', 'bGuS42xgcRH6eVoXmFusiie2z85v4fbkm5', 'bWc6ZgefAwqvKddQGhbnuNuGe5Qdt3JyS5', 'bG...
sqlite3.InterfaceError
async def add_keys(self, account, chain, keys): await self.db.executemany( "insert into pubkey_address values (?, ?, ?, ?, ?, NULL, 0)", ( ( pubkey.address, account.public_key.address, chain, position, sqlite...
async def add_keys(self, account, chain, keys): await self.db.executemany( "insert into pubkey_address (address, account, chain, position, pubkey) values (?, ?, ?, ?, ?)", ( ( pubkey.address, account.public_key.address, chain, ...
https://github.com/lbryio/lbry-sdk/issues/2164
2019-05-22 11:29:08,217 INFO torba.client.baseledger:125: (lbc_mainnet) on_address: ['bRFrdNffbqpmLnJDv9n3WPXHSQZx3jbQ9d', 'bCooREDfWchZp2W3J3sp4cpYFTwFgjs4HB', 'bJ4t5xDH3VaCn9tyjf2SGKr9E5NWsTVoZa', 'bR8NvBkV4FKzm3GsrLTLpEdajoPSin86Hg', 'bGuS42xgcRH6eVoXmFusiie2z85v4fbkm5', 'bWc6ZgefAwqvKddQGhbnuNuGe5Qdt3JyS5', 'bG...
sqlite3.InterfaceError
def is_comment_signed_by_channel(comment: dict, channel: Output): if type(channel) is Output: try: pieces = [ comment["signing_ts"].encode(), channel.claim_hash, comment["comment"].encode(), ] return Output.is_signature_vali...
def is_comment_signed_by_channel(comment: dict, channel: Output): try: pieces = [ comment["signing_ts"].encode(), channel.claim_hash, comment["comment"].encode(), ] return Output.is_signature_valid( get_encoded_signature(comment["signature"]), ...
https://github.com/lbryio/lbry-sdk/issues/2279
(lbry-venv) C:\Users\thoma\Documents\lbry>lbrynet comment list --claim_id=20f54f401de44b9b5ba866e60286144995824468{ "code": -32500, "data": [ "Traceback (most recent call last):", " File \"c:\\users\\thoma\\documents\\lbry\\lbry\\lbry\\extras\\daemon\\Daemon.py\", line 579, in _process_rpc_call", " result = await r...
AttributeError
async def _inner(*args, **kwargs): key = tuple([args, tuple([tuple([k, kwargs[k]]) for k in kwargs])]) if key in lru_cache: return lru_cache.get(key) concurrent_cache[key] = concurrent_cache.get(key) or asyncio.create_task( async_fn(*args, **kwargs) ) try: result = await co...
async def _inner(*args, **kwargs) -> typing.Any: loop = asyncio.get_running_loop() now = loop.time() key = tuple([args, tuple([tuple([k, kwargs[k]]) for k in kwargs])]) if key in cache and (now - cache[key][1] < duration): return cache[key][0] to_cache = await fn(*args, **kwargs) cache[k...
https://github.com/lbryio/lbry-sdk/issues/2137
2019-05-16 15:14:35,679 INFO lbrynet.dht.blob_announcer:51: announced 5 blobs 2019-05-16 15:15:04,419 INFO torba.client.baseledger:133: lbc_mainnet: added BlockHeightEvent(height=568534, change=1) header blocks, final height 568534 2019-05-16 15:15:21,629 INFO lbrynet.blob_exchange.client:137: downloaded 4a...
concurrent.futures._base.CancelledError
def wrapper(async_fn): @functools.wraps(async_fn) async def _inner(*args, **kwargs): key = tuple([args, tuple([tuple([k, kwargs[k]]) for k in kwargs])]) if key in lru_cache: return lru_cache.get(key) concurrent_cache[key] = concurrent_cache.get(key) or asyncio.create_task( ...
async def wrapper(*args, **kwargs): key = tuple([args, tuple([tuple([k, kwargs[k]]) for k in kwargs])]) cache[key] = cache.get(key) or asyncio.create_task(async_fn(*args, **kwargs)) try: return await cache[key] finally: cache.pop(key, None)
https://github.com/lbryio/lbry-sdk/issues/2137
2019-05-16 15:14:35,679 INFO lbrynet.dht.blob_announcer:51: announced 5 blobs 2019-05-16 15:15:04,419 INFO torba.client.baseledger:133: lbc_mainnet: added BlockHeightEvent(height=568534, change=1) header blocks, final height 568534 2019-05-16 15:15:21,629 INFO lbrynet.blob_exchange.client:137: downloaded 4a...
concurrent.futures._base.CancelledError
async def _fetch_tx(self, txid): return self.transaction_class(unhexlify(await self.network.get_transaction(txid)))
def _fetch_tx(self, txid): async def __fetch_parse(txid): return self.transaction_class( unhexlify(await self.network.get_transaction(txid)) ) return asyncio.ensure_future(__fetch_parse(txid))
https://github.com/lbryio/lbry-sdk/issues/2137
2019-05-16 15:14:35,679 INFO lbrynet.dht.blob_announcer:51: announced 5 blobs 2019-05-16 15:15:04,419 INFO torba.client.baseledger:133: lbc_mainnet: added BlockHeightEvent(height=568534, change=1) header blocks, final height 568534 2019-05-16 15:15:21,629 INFO lbrynet.blob_exchange.client:137: downloaded 4a...
concurrent.futures._base.CancelledError
async def save_max_gap(self): if issubclass(self.address_generator, HierarchicalDeterministic): gap = await self.get_max_gap() self.receiving.gap = max(20, gap["max_receiving_gap"] + 1) self.change.gap = max(6, gap["max_change_gap"] + 1) self.wallet.save()
async def save_max_gap(self): gap = await self.get_max_gap() self.receiving.gap = max(20, gap["max_receiving_gap"] + 1) self.change.gap = max(6, gap["max_change_gap"] + 1) self.wallet.save()
https://github.com/lbryio/lbry-sdk/issues/2078
Traceback (most recent call last): File "c:\users\thoma\documents\lbry\lbrynet\extras\daemon\Component.py", line 55, in _setup result = await self.start() File "c:\users\thoma\documents\lbry\lbrynet\extras\daemon\Components.py", line 268, in start await self.wallet_manager.start() File "c:\users\thoma\documents\lbry\lb...
AttributeError
async def _announce(self, batch_size: typing.Optional[int] = 10): if not batch_size: return if not self.node.joined.is_set(): await self.node.joined.wait() blob_hashes = await self.storage.get_blobs_to_announce() if blob_hashes: self.announce_queue.extend(blob_hashes) log...
async def _announce(self, batch_size: typing.Optional[int] = 10): if not self.node.joined.is_set(): await self.node.joined.wait() blob_hashes = await self.storage.get_blobs_to_announce() if blob_hashes: self.announce_queue.extend(blob_hashes) log.info("%i blobs to announce", len(blob...
https://github.com/lbryio/lbry-sdk/issues/1297
2018-07-10 15:35:31,165 INFO lbrynet.daemon.Daemon:242: Starting lbrynet-daemon 2018-07-10 15:35:31,187 INFO lbrynet.daemon.ExchangeRateManager:217: Starting exchange rate manager 2018-07-10 15:35:31,313 INFO lbrynet.daemon.Daemon:284: Platform: {"lbrynet_version": "0.20.3", "platform": "Windows-10-10.0.150...
ValueError
def start(self): self.upnp_component = self.component_manager.get_component(UPNP_COMPONENT) self.external_peer_port = self.upnp_component.upnp_redirects.get( "TCP", GCS("peer_port") ) self.external_udp_port = self.upnp_component.upnp_redirects.get( "UDP", GCS("dht_node_port") ) n...
def start(self): self.upnp_component = self.component_manager.get_component(UPNP_COMPONENT) self.external_peer_port = self.upnp_component.upnp_redirects.get( "TCP", GCS("peer_port") ) self.external_udp_port = self.upnp_component.upnp_redirects.get( "UDP", GCS("dht_node_port") ) n...
https://github.com/lbryio/lbry-sdk/issues/1561
2018-10-28 21:39:16,952 WARNING lbrynet.daemon.Components:712: upnp discovery failed: {http://schemas.microsoft.com/windows/pnpx/2005/11}X_hardwareId 2018-10-28 21:39:16,953 ERROR lbrynet.daemon.Components:782: failed to setup upnp Unhandled error in Deferred: 2018-10-28 21:40:32,480 CRITICAL twisted:154: Unhandled...
Exception
def _maintain_redirects(self): # setup the gateway if necessary if not self.upnp: try: self.upnp = yield from_future(UPnP.discover()) log.info("found upnp gateway: %s", self.upnp.gateway.manufacturer_string) except Exception as err: log.warning("upnp discovery...
def _maintain_redirects(self): # setup the gateway if necessary if not self.upnp: try: self.upnp = yield from_future(UPnP.discover()) log.info("found upnp gateway: %s", self.upnp.gateway.manufacturer_string) except Exception as err: log.warning("upnp discovery...
https://github.com/lbryio/lbry-sdk/issues/1561
2018-10-28 21:39:16,952 WARNING lbrynet.daemon.Components:712: upnp discovery failed: {http://schemas.microsoft.com/windows/pnpx/2005/11}X_hardwareId 2018-10-28 21:39:16,953 ERROR lbrynet.daemon.Components:782: failed to setup upnp Unhandled error in Deferred: 2018-10-28 21:40:32,480 CRITICAL twisted:154: Unhandled...
Exception
def start(self): log.info("detecting external ip") if not self.use_upnp: self.external_ip = CS.get_external_ip() return success = False yield self._maintain_redirects() if self.upnp: if not self.upnp_redirects: log.error( "failed to setup upnp, deb...
def start(self): if not self.use_upnp: self.external_ip = CS.get_external_ip() return success = False yield self._maintain_redirects() if self.upnp: if not self.upnp_redirects: log.error( "failed to setup upnp, debugging infomation: %s", ...
https://github.com/lbryio/lbry-sdk/issues/1561
2018-10-28 21:39:16,952 WARNING lbrynet.daemon.Components:712: upnp discovery failed: {http://schemas.microsoft.com/windows/pnpx/2005/11}X_hardwareId 2018-10-28 21:39:16,953 ERROR lbrynet.daemon.Components:782: failed to setup upnp Unhandled error in Deferred: 2018-10-28 21:40:32,480 CRITICAL twisted:154: Unhandled...
Exception
def _batched_select(transaction, query, parameters): for start_index in range(0, len(parameters), 900): current_batch = parameters[start_index : start_index + 900] bind = "({})".format(",".join(["?"] * len(current_batch))) for result in transaction.execute(query.format(bind), current_batch):...
def _batched_select(transaction, query, parameters): for start_index in range(0, len(parameters), 900): current_batch = parameters[start_index : start_index + 900] bind = "({})".format(",".join("?" for _ in range(len(current_batch)))) for result in transaction.execute(query.format(bind), cur...
https://github.com/lbryio/lbry-sdk/issues/1331
2018-08-01 19:15:31,421 INFO lbrynet.daemon.Downloader:93: Download lbry://getbitcoincashoutofelectrumin60seconds status changed to initializing 2018-08-01 19:15:31,424 INFO lbrynet.daemon.Downloader:93: Download lbry://getbitcoincashoutofelectrumin60seconds status changed to downloading_metadata 2018-08-01 19:...
OperationalError
def _refreshContacts(self): self._protocol._ping_queue.enqueue_maybe_ping(*self.contacts, delay=0)
def _refreshContacts(self): self._protocol._ping_queue.enqueue_maybe_ping(*self.contacts)
https://github.com/lbryio/lbry-sdk/issues/1439
2018-09-17 05:43:51,637 INFO lbrynet.reflector.client.client:74: Reflector has all blobs for b41893e22fa11414 2018-09-17 05:43:51,641 INFO lbrynet.reflector.client.client:77: No more completed blobs for ee2b8996e30e9f6b to reflect, 120 are still needed 2018-09-17 05:43:51,675 INFO lbrynet.reflector.client.c...
ValueError
def _refreshStoringPeers(self): self._protocol._ping_queue.enqueue_maybe_ping( *self._dataStore.getStoringContacts(), delay=0 )
def _refreshStoringPeers(self): self._protocol._ping_queue.enqueue_maybe_ping(*self._dataStore.getStoringContacts())
https://github.com/lbryio/lbry-sdk/issues/1439
2018-09-17 05:43:51,637 INFO lbrynet.reflector.client.client:74: Reflector has all blobs for b41893e22fa11414 2018-09-17 05:43:51,641 INFO lbrynet.reflector.client.client:77: No more completed blobs for ee2b8996e30e9f6b to reflect, 120 are still needed 2018-09-17 05:43:51,675 INFO lbrynet.reflector.client.c...
ValueError
def __init__(self, node): self._node = node self._enqueued_contacts = {} self._pending_contacts = {} self._process_lc = node.get_looping_call(self._process)
def __init__(self, node): self._node = node self._enqueued_contacts = {} self._process_lc = node.get_looping_call(self._process)
https://github.com/lbryio/lbry-sdk/issues/1439
2018-09-17 05:43:51,637 INFO lbrynet.reflector.client.client:74: Reflector has all blobs for b41893e22fa11414 2018-09-17 05:43:51,641 INFO lbrynet.reflector.client.client:77: No more completed blobs for ee2b8996e30e9f6b to reflect, 120 are still needed 2018-09-17 05:43:51,675 INFO lbrynet.reflector.client.c...
ValueError
def enqueue_maybe_ping(self, *contacts, **kwargs): delay = kwargs.get("delay", constants.checkRefreshInterval) no_op = (defer.succeed(None), lambda: None) for contact in contacts: if delay and contact not in self._enqueued_contacts: self._pending_contacts.setdefault( cont...
def enqueue_maybe_ping(self, *contacts, **kwargs): no_op = (defer.succeed(None), lambda: None) for contact in contacts: self._enqueued_contacts.setdefault(contact, no_op)
https://github.com/lbryio/lbry-sdk/issues/1439
2018-09-17 05:43:51,637 INFO lbrynet.reflector.client.client:74: Reflector has all blobs for b41893e22fa11414 2018-09-17 05:43:51,641 INFO lbrynet.reflector.client.client:77: No more completed blobs for ee2b8996e30e9f6b to reflect, 120 are still needed 2018-09-17 05:43:51,675 INFO lbrynet.reflector.client.c...
ValueError
def _process(self): # move contacts that are scheduled to join the queue if self._pending_contacts: now = self._node.clock.seconds() for contact in [ contact for contact, schedule in self._pending_contacts.items() if schedule <= now ]: del ...
def _process(self): if not self._enqueued_contacts: return # spread pings across 60 seconds to avoid flood and/or false negatives step = 60.0 / float(len(self._enqueued_contacts)) for index, (contact, (call, _)) in enumerate(self._enqueued_contacts.items()): if call.called and not contac...
https://github.com/lbryio/lbry-sdk/issues/1439
2018-09-17 05:43:51,637 INFO lbrynet.reflector.client.client:74: Reflector has all blobs for b41893e22fa11414 2018-09-17 05:43:51,641 INFO lbrynet.reflector.client.client:77: No more completed blobs for ee2b8996e30e9f6b to reflect, 120 are still needed 2018-09-17 05:43:51,675 INFO lbrynet.reflector.client.c...
ValueError
def stop(self): map( None, ( cancel() for _, (call, cancel) in self._enqueued_contacts.items() if not call.called ), ) return self._node.safe_stop_looping_call(self._process_lc)
def stop(self): return self._node.safe_stop_looping_call(self._process_lc)
https://github.com/lbryio/lbry-sdk/issues/1439
2018-09-17 05:43:51,637 INFO lbrynet.reflector.client.client:74: Reflector has all blobs for b41893e22fa11414 2018-09-17 05:43:51,641 INFO lbrynet.reflector.client.client:77: No more completed blobs for ee2b8996e30e9f6b to reflect, 120 are still needed 2018-09-17 05:43:51,675 INFO lbrynet.reflector.client.c...
ValueError
def _request_failed(self, reason, request_type): if reason.check( DownloadCanceledError, RequestCanceledError, ConnectionAborted, ConnectionClosedBeforeResponseError, ValueError, ): return if reason.check(NoResponseError): self.requestor._incompatible_...
def _request_failed(self, reason, request_type): if reason.check( DownloadCanceledError, RequestCanceledError, ConnectionAborted, ConnectionClosedBeforeResponseError, ): return if reason.check(NoResponseError): self.requestor._incompatible_peers.append(self.pe...
https://github.com/lbryio/lbry-sdk/issues/950
2017-10-12 13:52:54,172 INFO lbrynet.core.client.ClientProtocol:185: Closing the connection to x.x.x.x:3333 because the download of blob a5d1ebd863d2b5f7 was canceled 2017-10-12 13:52:54,174 ERROR lbrynet.core.client.ClientProtocol:130: An unexpected error occurred creating or sending a request to x.x.x.x:3333. ...
exceptions.ValueError
def _handle_download_error(err, peer, blob_to_download): if not err.check( DownloadCanceledError, PriceDisagreementError, RequestCanceledError, ConnectionClosedBeforeResponseError, ): log.warning( "An error occurred while downloading %s from %s. Error: %s", ...
def _handle_download_error(err, peer, blob_to_download): if not err.check( DownloadCanceledError, PriceDisagreementError, RequestCanceledError ): log.warning( "An error occurred while downloading %s from %s. Error: %s", blob_to_download.blob_hash, str(peer), ...
https://github.com/lbryio/lbry-sdk/issues/950
2017-10-12 13:52:54,172 INFO lbrynet.core.client.ClientProtocol:185: Closing the connection to x.x.x.x:3333 because the download of blob a5d1ebd863d2b5f7 was canceled 2017-10-12 13:52:54,174 ERROR lbrynet.core.client.ClientProtocol:130: An unexpected error occurred creating or sending a request to x.x.x.x:3333. ...
exceptions.ValueError
def add_blob_request(self, blob_request): if self._blob_download_request is None: d = self.add_request(blob_request) self._blob_download_request = blob_request blob_request.finished_deferred.addCallbacks( self._downloading_finished, self._handle_response_error ) r...
def add_blob_request(self, blob_request): if self._blob_download_request is None: d = self.add_request(blob_request) self._blob_download_request = blob_request blob_request.finished_deferred.addCallbacks( self._downloading_finished, self._handle_response_error ) r...
https://github.com/lbryio/lbry-sdk/issues/950
2017-10-12 13:52:54,172 INFO lbrynet.core.client.ClientProtocol:185: Closing the connection to x.x.x.x:3333 because the download of blob a5d1ebd863d2b5f7 was canceled 2017-10-12 13:52:54,174 ERROR lbrynet.core.client.ClientProtocol:130: An unexpected error occurred creating or sending a request to x.x.x.x:3333. ...
exceptions.ValueError
def _handle_request_error(self, err): log.error( "An unexpected error occurred creating or sending a request to %s. %s: %s", self.peer, err.type, err.message, ) self.transport.loseConnection()
def _handle_request_error(self, err): log.error( "An unexpected error occurred creating or sending a request to %s. Error message: %s", self.peer, err.getTraceback(), ) self.transport.loseConnection()
https://github.com/lbryio/lbry-sdk/issues/950
2017-10-12 13:52:54,172 INFO lbrynet.core.client.ClientProtocol:185: Closing the connection to x.x.x.x:3333 because the download of blob a5d1ebd863d2b5f7 was canceled 2017-10-12 13:52:54,174 ERROR lbrynet.core.client.ClientProtocol:130: An unexpected error occurred creating or sending a request to x.x.x.x:3333. ...
exceptions.ValueError
def _handle_response_error(self, err): # If an error gets to this point, log it and kill the connection. if err.check( DownloadCanceledError, RequestCanceledError, error.ConnectionAborted, ConnectionClosedBeforeResponseError, ): # TODO: (wish-list) it seems silly to c...
def _handle_response_error(self, err): # If an error gets to this point, log it and kill the connection. if err.check(DownloadCanceledError, RequestCanceledError, error.ConnectionAborted): # TODO: (wish-list) it seems silly to close the connection over this, and it shouldn't # TODO: always be th...
https://github.com/lbryio/lbry-sdk/issues/950
2017-10-12 13:52:54,172 INFO lbrynet.core.client.ClientProtocol:185: Closing the connection to x.x.x.x:3333 because the download of blob a5d1ebd863d2b5f7 was canceled 2017-10-12 13:52:54,174 ERROR lbrynet.core.client.ClientProtocol:130: An unexpected error occurred creating or sending a request to x.x.x.x:3333. ...
exceptions.ValueError
def jsonrpc_blob_announce( self, announce_all=None, blob_hash=None, stream_hash=None, sd_hash=None ): """ Announce blobs to the DHT Usage: blob_announce [-a] [<blob_hash> | --blob_hash=<blob_hash>] [<stream_hash> | --stream_hash=<stream_hash>] [<sd_ha...
def jsonrpc_blob_announce( self, announce_all=None, blob_hash=None, stream_hash=None, sd_hash=None ): """ Announce blobs to the DHT Usage: blob_announce [-a] [<blob_hash> | --blob_hash=<blob_hash>] [<stream_hash> | --stream_hash=<stream_hash>] [<sd_ha...
https://github.com/lbryio/lbry-sdk/issues/895
Here's the traceback for the error you encountered: Traceback (most recent call last): File "site-packages\twisted\internet\defer.py", line 457, in callback File "site-packages\twisted\internet\defer.py", line 565, in _startRunCallbacks File "site-packages\twisted\internet\defer.py", line 651, in _runCallbacks File ...
exceptions.KeyError
def jsonrpc_blob_list( self, uri=None, stream_hash=None, sd_hash=None, needed=None, finished=None, page_size=None, page=None, ): """ Returns blob hashes. If not given filters, returns all blobs known by the blob manager Usage: blob_list [-n] [-f] [<uri> | --uri=<uri>...
def jsonrpc_blob_list( self, uri=None, stream_hash=None, sd_hash=None, needed=None, finished=None, page_size=None, page=None, ): """ Returns blob hashes. If not given filters, returns all blobs known by the blob manager Usage: blob_list [-n] [-f] [<uri> | --uri=<uri>...
https://github.com/lbryio/lbry-sdk/issues/895
Here's the traceback for the error you encountered: Traceback (most recent call last): File "site-packages\twisted\internet\defer.py", line 457, in callback File "site-packages\twisted\internet\defer.py", line 565, in _startRunCallbacks File "site-packages\twisted\internet\defer.py", line 651, in _runCallbacks File ...
exceptions.KeyError
def stop(self): """Stop creating the stream. Create the terminating zero-length blob.""" log.debug("stop has been called for StreamCreator") self.stopped = True if self.current_blob is not None: self._close_current_blob() self._finalize() dl = defer.DeferredList(self.finished_deferreds) ...
def stop(self): """Stop creating the stream. Create the terminating zero-length blob.""" log.debug("stop has been called for StreamCreator") self.stopped = True if self.current_blob is not None: self._close_current_blob() self._finalize() dl = defer.DeferredList(self.finished_deferreds) ...
https://github.com/lbryio/lbry-sdk/issues/905
2017-09-19 09:47:51,891 INFO lbrynet.file_manager.EncryptedFileDownloader:32: lbry://battlefront-ii-storytrailer (5c3d3c) is finished 2017-09-19 09:47:51,904 INFO lbrynet.file_manager.EncryptedFileDownloader:32: lbry://hitmans-bodyguard-trailer (3303b0) is running 2017-09-19 09:47:51,914 INFO lbrynet.file_m...
KeyError
def _get_new_peers(self): new_conns_needed = self.max_connections_per_stream - len(self._peer_connections) if new_conns_needed < 1: defer.returnValue([]) # we always get the peer from the first request creator # must be a type BlobRequester... request_creator = self._primary_request_creators...
def _get_new_peers(self): new_conns_needed = self.max_connections_per_stream - len(self._peer_connections) if new_conns_needed < 1: defer.returnValue([]) # we always get the peer from the first request creator # must be a type BlobRequester... request_creator = self._primary_request_creators...
https://github.com/lbryio/lbry-sdk/issues/905
2017-09-19 09:47:51,891 INFO lbrynet.file_manager.EncryptedFileDownloader:32: lbry://battlefront-ii-storytrailer (5c3d3c) is finished 2017-09-19 09:47:51,904 INFO lbrynet.file_manager.EncryptedFileDownloader:32: lbry://hitmans-bodyguard-trailer (3303b0) is running 2017-09-19 09:47:51,914 INFO lbrynet.file_m...
KeyError
def check_connection(server="lbry.io", port=80, timeout=2, bypass_dns=False): """Attempts to open a socket to server:port and returns True if successful.""" log.debug("Checking connection to %s:%s", server, port) try: if not bypass_dns: server = socket.gethostbyname(server) socke...
def check_connection(server="lbry.io", port=80): """Attempts to open a socket to server:port and returns True if successful.""" try: log.debug("Checking connection to %s:%s", server, port) host = socket.gethostbyname(server) s = socket.create_connection((host, port), 2) log.debug...
https://github.com/lbryio/lbry-sdk/issues/908
$ /opt/lbry/lbrynet-daemon --version { "build": "release", "installation_id": "5GfsGqN89ysnaQiorZZNg3P3vDbc5WWJ75FbNDEiCoZXpzE4beznwMTHbNPYLww8gA", "lbrynet_version": "0.16.0", "lbryschema_version": "0.0.11", "lbryum_version": "3.1.7", "os_release": "4.4.0-93-generic", "os_system": "Linux", "platform": "Linux-4.4.0-93-...
gaierror
def create_key_bindings(history, python_input, history_mapping): """ Key bindings. """ bindings = KeyBindings() handle = bindings.add @handle(" ", filter=has_focus(history.history_buffer)) def _(event): """ Space: select/deselect line from history pane. """ b...
def create_key_bindings(history, python_input, history_mapping): """ Key bindings. """ bindings = KeyBindings() handle = bindings.add @handle(" ", filter=has_focus(history.history_buffer)) def _(event): """ Space: select/deselect line from history pane. """ b...
https://github.com/prompt-toolkit/ptpython/issues/214
Traceback (most recent call last): │ File "/home/me/.local/bin/ptpython3", line 11, in <module> │ sys.exit(run()) │ File "/home/me/.local/lib/python3.6/site-...
IndexError
def run(user_ns=None): a = docopt.docopt(__doc__) vi_mode = bool(a["--vi"]) config_dir = os.path.expanduser(a["--config-dir"] or "~/.ptpython/") # Create config directory. if not os.path.isdir(config_dir): os.mkdir(config_dir) # If IPython is not available, show message and exit here ...
def run(user_ns=None): a = docopt.docopt(__doc__) vi_mode = bool(a["--vi"]) config_dir = os.path.expanduser(a["--config-dir"] or "~/.ptpython/") # Create config directory. if not os.path.isdir(config_dir): os.mkdir(config_dir) # If IPython is not available, show message and exit here ...
https://github.com/prompt-toolkit/ptpython/issues/247
Traceback (most recent call last): File "c:\python36\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "c:\python36\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Python36\Scripts\ptpython.exe\__main__.py", line 9, in <module> File "c:\python36\lib\site-packages\ptpython\...
UnicodeDecodeError
def run(): a = docopt.docopt(__doc__) vi_mode = bool(a["--vi"]) config_dir = os.path.expanduser(a["--config-dir"] or "~/.ptpython/") # Create config directory. if not os.path.isdir(config_dir): os.mkdir(config_dir) # Startup path startup_paths = [] if "PYTHONSTARTUP" in os.env...
def run(): a = docopt.docopt(__doc__) vi_mode = bool(a["--vi"]) config_dir = os.path.expanduser(a["--config-dir"] or "~/.ptpython/") # Create config directory. if not os.path.isdir(config_dir): os.mkdir(config_dir) # Startup path startup_paths = [] if "PYTHONSTARTUP" in os.env...
https://github.com/prompt-toolkit/ptpython/issues/247
Traceback (most recent call last): File "c:\python36\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "c:\python36\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Python36\Scripts\ptpython.exe\__main__.py", line 9, in <module> File "c:\python36\lib\site-packages\ptpython\...
UnicodeDecodeError
def _load_start_paths(self): "Start the Read-Eval-Print Loop." if self._startup_paths: for path in self._startup_paths: if os.path.exists(path): with open(path, "rb") as f: code = compile(f.read(), path, "exec") six.exec_(code, self.get...
def _load_start_paths(self): "Start the Read-Eval-Print Loop." if self._startup_paths: for path in self._startup_paths: if os.path.exists(path): with open(path, "r") as f: code = compile(f.read(), path, "exec") six.exec_(code, self.get_...
https://github.com/prompt-toolkit/ptpython/issues/247
Traceback (most recent call last): File "c:\python36\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "c:\python36\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Python36\Scripts\ptpython.exe\__main__.py", line 9, in <module> File "c:\python36\lib\site-packages\ptpython\...
UnicodeDecodeError
def run_config(repl, config_file="~/.ptpython/config.py"): """ Execute REPL config file. :param repl: `PythonInput` instance. :param config_file: Path of the configuration file. """ assert isinstance(repl, PythonInput) assert isinstance(config_file, six.text_type) # Expand tildes. ...
def run_config(repl, config_file="~/.ptpython/config.py"): """ Execute REPL config file. :param repl: `PythonInput` instance. :param config_file: Path of the configuration file. """ assert isinstance(repl, PythonInput) assert isinstance(config_file, six.text_type) # Expand tildes. ...
https://github.com/prompt-toolkit/ptpython/issues/247
Traceback (most recent call last): File "c:\python36\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "c:\python36\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Python36\Scripts\ptpython.exe\__main__.py", line 9, in <module> File "c:\python36\lib\site-packages\ptpython\...
UnicodeDecodeError
def get_jedi_script_from_document(document, locals, globals): import jedi # We keep this import in-line, to improve start-up time. # Importing Jedi is 'slow'. try: return jedi.Interpreter( document.text, column=document.cursor_position_col, line=document.cursor_...
def get_jedi_script_from_document(document, locals, globals): import jedi # We keep this import in-line, to improve start-up time. # Importing Jedi is 'slow'. try: return jedi.Interpreter( document.text, column=document.cursor_position_col, line=document.cursor_...
https://github.com/prompt-toolkit/ptpython/issues/91
File "/home/jonathan/git/ptpython/ptpython/utils.py", line 52, t namespaces=[locals, globals]) File "/home/jonathan/.virtualenvs/python35/lib/python3.5/site-p_ self._parser.module()) File "/home/jonathan/.virtualenvs/python35/lib/python3.5/site-pe return self._parser().module File "/home/jonathan/.virtualenvs/python35/...
jedi.parser.pgen2.parse.ParseError
def signature_toolbar(python_input): """ Return the `Layout` for the signature. """ def get_tokens(cli): result = [] append = result.append Signature = Token.Toolbar.Signature if python_input.signatures: sig = python_input.signatures[0] # Always take the fi...
def signature_toolbar(python_input): """ Return the `Layout` for the signature. """ def get_tokens(cli): result = [] append = result.append Signature = Token.Toolbar.Signature if python_input.signatures: sig = python_input.signatures[0] # Always take the fi...
https://github.com/prompt-toolkit/ptpython/issues/136
from lxml.html import builder as E E.HTML( Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/prompt_toolkit/cache.py", line 32, in get return self._data[key] KeyError: 51 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/bin/ptpy...
KeyError
def get_tokens(cli): result = [] append = result.append Signature = Token.Toolbar.Signature if python_input.signatures: sig = python_input.signatures[0] # Always take the first one. append((Signature, " ")) try: append((Signature, sig.full_name)) except Ind...
def get_tokens(cli): result = [] append = result.append Signature = Token.Toolbar.Signature if python_input.signatures: sig = python_input.signatures[0] # Always take the first one. append((Signature, " ")) try: append((Signature, sig.full_name)) except Ind...
https://github.com/prompt-toolkit/ptpython/issues/136
from lxml.html import builder as E E.HTML( Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/prompt_toolkit/cache.py", line 32, in get return self._data[key] KeyError: 51 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/bin/ptpy...
KeyError
def on_save_checkpoint(self, checkpoint: Dict[str, Any]) -> None: checkpoint["dataset_parameters"] = getattr( self, "dataset_parameters", None ) # add dataset parameters for making fast predictions # hyper parameters are passed as arguments directly and not as single dictionary checkpoint["hpar...
def on_save_checkpoint(self, checkpoint: Dict[str, Any]) -> None: checkpoint["dataset_parameters"] = getattr( self, "dataset_parameters", None ) # add dataset parameters for making fast predictions checkpoint["loss"] = cloudpickle.dumps(self.loss) # restore loss checkpoint["output_transformer"...
https://github.com/jdb78/pytorch-forecasting/issues/294
Traceback (most recent call last): File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevd.py", line 1741, in <module> main() File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevd.py", line 1735, in main globals = debugger.run(setup['file'], None, None, is_module) File "/Applications/PyCharm CE.app/...
RuntimeError
def on_load_checkpoint(self, checkpoint: Dict[str, Any]) -> None: self.dataset_parameters = checkpoint.get("dataset_parameters", None)
def on_load_checkpoint(self, checkpoint: Dict[str, Any]) -> None: self.dataset_parameters = checkpoint.get("dataset_parameters", None) self.loss = cloudpickle.loads(checkpoint["loss"]) self.output_transformer = cloudpickle.loads(checkpoint["output_transformer"])
https://github.com/jdb78/pytorch-forecasting/issues/294
Traceback (most recent call last): File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevd.py", line 1741, in <module> main() File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevd.py", line 1735, in main globals = debugger.run(setup['file'], None, None, is_module) File "/Applications/PyCharm CE.app/...
RuntimeError
def rescale_parameters( self, parameters: torch.Tensor, target_scale: torch.Tensor, encoder: BaseEstimator ) -> torch.Tensor: assert encoder.transformation in ["logit"], ( "Beta distribution is only compatible with logit transformation" ) assert encoder.center, "Beta distribution requires normal...
def rescale_parameters( self, parameters: torch.Tensor, target_scale: torch.Tensor, encoder: BaseEstimator ) -> torch.Tensor: assert encoder.transformation in ["logit"], ( "Beta distribution is only compatible with logit transformation" ) assert encoder.center, "Beta distribution requires normal...
https://github.com/jdb78/pytorch-forecasting/issues/231
--------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-12-6644968460fc> in <module> 28 ) 29 ---> 30 trainer.fit( 31 deepar, 32 train_dataloader=train_dataloader, ~/miniconda3/envs/smartsilex-eda/lib/...
RuntimeError
def loss(self, y_pred: torch.Tensor, y_actual: torch.Tensor) -> torch.Tensor: """ Calculate negative likelihood Args: y_pred: network output y_actual: actual values Returns: torch.Tensor: metric value on which backpropagation can be applied """ distribution = self.map_x...
def loss(self, y_pred: torch.Tensor, y_actual: torch.Tensor) -> torch.Tensor: """ Calculate negative likelihood Args: y_pred: network output y_actual: actual values Returns: torch.Tensor: metric value on which backpropagation can be applied """ distribution = self.map_x...
https://github.com/jdb78/pytorch-forecasting/issues/231
--------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-12-6644968460fc> in <module> 28 ) 29 ---> 30 trainer.fit( 31 deepar, 32 train_dataloader=train_dataloader, ~/miniconda3/envs/smartsilex-eda/lib/...
RuntimeError
def optimize_hyperparameters( train_dataloader: DataLoader, val_dataloader: DataLoader, model_path: str, max_epochs: int = 20, n_trials: int = 100, timeout: float = 3600 * 8.0, # 8 hours gradient_clip_val_range: Tuple[float, float] = (0.01, 100.0), hidden_size_range: Tuple[int, int] = (...
def optimize_hyperparameters( train_dataloader: DataLoader, val_dataloader: DataLoader, model_path: str, max_epochs: int = 20, n_trials: int = 100, timeout: float = 3600 * 8.0, # 8 hours gradient_clip_val_range: Tuple[float, float] = (0.01, 100.0), hidden_size_range: Tuple[int, int] = (...
https://github.com/jdb78/pytorch-forecasting/issues/231
--------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-12-6644968460fc> in <module> 28 ) 29 ---> 30 trainer.fit( 31 deepar, 32 train_dataloader=train_dataloader, ~/miniconda3/envs/smartsilex-eda/lib/...
RuntimeError
def objective(trial: optuna.Trial) -> float: # Filenames for each trial must be made unique in order to access each checkpoint. checkpoint_callback = pl.callbacks.ModelCheckpoint( os.path.join(model_path, "trial_{}".format(trial.number), "{epoch}"), monitor="val_loss", ) # The default l...
def objective(trial: optuna.Trial) -> float: # Filenames for each trial must be made unique in order to access each checkpoint. checkpoint_callback = pl.callbacks.ModelCheckpoint( os.path.join(model_path, "trial_{}".format(trial.number), "{epoch}"), monitor="val_loss", ) # The default l...
https://github.com/jdb78/pytorch-forecasting/issues/231
--------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-12-6644968460fc> in <module> 28 ) 29 ---> 30 trainer.fit( 31 deepar, 32 train_dataloader=train_dataloader, ~/miniconda3/envs/smartsilex-eda/lib/...
RuntimeError
def __init__( self, data: pd.DataFrame, time_idx: str, target: Union[str, List[str]], group_ids: List[str], weight: Union[str, None] = None, max_encoder_length: int = 30, min_encoder_length: int = None, min_prediction_idx: int = None, min_prediction_length: int = None, max_pr...
def __init__( self, data: pd.DataFrame, time_idx: str, target: Union[str, List[str]], group_ids: List[str], weight: Union[str, None] = None, max_encoder_length: int = 30, min_encoder_length: int = None, min_prediction_idx: int = None, min_prediction_length: int = None, max_pr...
https://github.com/jdb78/pytorch-forecasting/issues/187
RuntimeError Traceback (most recent call last) <ipython-input-26-a92b5627800b> in <module> 1 # find optimal learning rate ----> 2 res = trainer.tuner.lr_find( 3 tft, 4 train_dataloader=train_dataloader, 5 val_dataloaders=val_dataloader, c:\users\u2\appdata\local\programs\python...
RuntimeError
def _preprocess_data(self, data: pd.DataFrame) -> pd.DataFrame: """ Scale continuous variables, encode categories and set aside target and weight. Args: data (pd.DataFrame): original data Returns: pd.DataFrame: pre-processed dataframe """ # encode group ids - this encoding ...
def _preprocess_data(self, data: pd.DataFrame) -> pd.DataFrame: """ Scale continuous variables, encode categories and set aside target and weight. Args: data (pd.DataFrame): original data Returns: pd.DataFrame: pre-processed dataframe """ # encode group ids - this encoding ...
https://github.com/jdb78/pytorch-forecasting/issues/187
RuntimeError Traceback (most recent call last) <ipython-input-26-a92b5627800b> in <module> 1 # find optimal learning rate ----> 2 res = trainer.tuner.lr_find( 3 tft, 4 train_dataloader=train_dataloader, 5 val_dataloaders=val_dataloader, c:\users\u2\appdata\local\programs\python...
RuntimeError
def _data_to_tensors(self, data: pd.DataFrame) -> Dict[str, torch.Tensor]: """ Convert data to tensors for faster access with :py:meth:`~__getitem__`. Args: data (pd.DataFrame): preprocessed data Returns: Dict[str, torch.Tensor]: dictionary of tensors for continous, categorical data, g...
def _data_to_tensors(self, data: pd.DataFrame) -> Dict[str, torch.Tensor]: """ Convert data to tensors for faster access with :py:meth:`~__getitem__`. Args: data (pd.DataFrame): preprocessed data Returns: Dict[str, torch.Tensor]: dictionary of tensors for continous, categorical data, g...
https://github.com/jdb78/pytorch-forecasting/issues/187
RuntimeError Traceback (most recent call last) <ipython-input-26-a92b5627800b> in <module> 1 # find optimal learning rate ----> 2 res = trainer.tuner.lr_find( 3 tft, 4 train_dataloader=train_dataloader, 5 val_dataloaders=val_dataloader, c:\users\u2\appdata\local\programs\python...
RuntimeError
def autocorrelation(input, dim=0): """ Computes the autocorrelation of samples at dimension ``dim``. Reference: https://en.wikipedia.org/wiki/Autocorrelation#Efficient_computation Implementation copied form `pyro <https://github.com/pyro-ppl/pyro/blob/dev/pyro/ops/stats.py>`_. :param torch.Tensor...
def autocorrelation(input, dim=0): """ Computes the autocorrelation of samples at dimension ``dim``. Reference: https://en.wikipedia.org/wiki/Autocorrelation#Efficient_computation Implementation copied form ``pyro``. :param torch.Tensor input: the input tensor. :param int dim: the dimension t...
https://github.com/jdb78/pytorch-forecasting/issues/187
RuntimeError Traceback (most recent call last) <ipython-input-26-a92b5627800b> in <module> 1 # find optimal learning rate ----> 2 res = trainer.tuner.lr_find( 3 tft, 4 train_dataloader=train_dataloader, 5 val_dataloaders=val_dataloader, c:\users\u2\appdata\local\programs\python...
RuntimeError
def __init__( self, method: str = "standard", center: bool = True, log_scale: Union[bool, float] = False, log_zero_value: float = -np.inf, coerce_positive: Union[float, bool] = None, eps: float = 1e-8, ): """ Initialize Args: method (str, optional): method to rescale ser...
def __init__( self, method: str = "standard", center: bool = True, log_scale: Union[bool, float] = False, log_zero_value: float = 0.0, coerce_positive: Union[float, bool] = None, eps: float = 1e-8, ): """ Initialize Args: method (str, optional): method to rescale series....
https://github.com/jdb78/pytorch-forecasting/issues/135
RuntimeError Traceback (most recent call last) <ipython-input-11-a92b5627800b> in <module> 5 val_dataloaders=val_dataloader, 6 max_lr=10.0, ----> 7 min_lr=1e-6, 8 ) 9 ~/repo/emart-promo/env/lib/python3.7/site-packages/pytorch_lightning/tuner/tuning.py in lr_find(self, model, tr...
RuntimeError
def get_parameters(self, *args, **kwargs) -> torch.Tensor: """ Returns parameters that were used for encoding. Returns: torch.Tensor: First element is center of data and second is scale """ return torch.stack( [torch.as_tensor(self.center_), torch.as_tensor(self.scale_)], dim=-1 ...
def get_parameters(self, *args, **kwargs) -> torch.Tensor: """ Returns parameters that were used for encoding. Returns: torch.Tensor: First element is center of data and second is scale """ return torch.tensor([self.center_, self.scale_])
https://github.com/jdb78/pytorch-forecasting/issues/135
RuntimeError Traceback (most recent call last) <ipython-input-11-a92b5627800b> in <module> 5 val_dataloaders=val_dataloader, 6 max_lr=10.0, ----> 7 min_lr=1e-6, 8 ) 9 ~/repo/emart-promo/env/lib/python3.7/site-packages/pytorch_lightning/tuner/tuning.py in lr_find(self, model, tr...
RuntimeError
def _preprocess_y( self, y: Union[pd.Series, np.ndarray, torch.Tensor] ) -> Union[np.ndarray, torch.Tensor]: """ Preprocess input data (e.g. take log). Can set coerce positive to a value if it was set to None and log_scale to False. Returns: Union[np.ndarray, torch.Tensor]: return rescaled...
def _preprocess_y( self, y: Union[pd.Series, np.ndarray, torch.Tensor] ) -> Union[np.ndarray, torch.Tensor]: """ Preprocess input data (e.g. take log). Can set coerce positive to a value if it was set to None and log_scale to False. Returns: Union[np.ndarray, torch.Tensor]: return rescaled...
https://github.com/jdb78/pytorch-forecasting/issues/135
RuntimeError Traceback (most recent call last) <ipython-input-11-a92b5627800b> in <module> 5 val_dataloaders=val_dataloader, 6 max_lr=10.0, ----> 7 min_lr=1e-6, 8 ) 9 ~/repo/emart-promo/env/lib/python3.7/site-packages/pytorch_lightning/tuner/tuning.py in lr_find(self, model, tr...
RuntimeError
def fit(self, y: Union[pd.Series, np.ndarray, torch.Tensor]): """ Fit transformer, i.e. determine center and scale of data Args: y (Union[pd.Series, np.ndarray, torch.Tensor]): input data Returns: TorchNormalizer: self """ if self.coerce_positive is None and not self.log_scale:...
def fit(self, y: Union[pd.Series, np.ndarray, torch.Tensor]): """ Fit transformer, i.e. determine center and scale of data Args: y (Union[pd.Series, np.ndarray, torch.Tensor]): input data Returns: TorchNormalizer: self """ y = self._preprocess_y(y) if self.method == "stand...
https://github.com/jdb78/pytorch-forecasting/issues/135
RuntimeError Traceback (most recent call last) <ipython-input-11-a92b5627800b> in <module> 5 val_dataloaders=val_dataloader, 6 max_lr=10.0, ----> 7 min_lr=1e-6, 8 ) 9 ~/repo/emart-promo/env/lib/python3.7/site-packages/pytorch_lightning/tuner/tuning.py in lr_find(self, model, tr...
RuntimeError
def transform( self, y: Union[pd.Series, np.ndarray, torch.Tensor], return_norm: bool = False, target_scale: torch.Tensor = None, ) -> Union[ Tuple[Union[np.ndarray, torch.Tensor], np.ndarray], Union[np.ndarray, torch.Tensor] ]: """ Rescale data. Args: y (Union[pd.Series, np.nda...
def transform( self, y: Union[pd.Series, np.ndarray, torch.Tensor], return_norm: bool = False ) -> Union[ Tuple[Union[np.ndarray, torch.Tensor], np.ndarray], Union[np.ndarray, torch.Tensor] ]: """ Rescale data. Args: y (Union[pd.Series, np.ndarray, torch.Tensor]): input data return_...
https://github.com/jdb78/pytorch-forecasting/issues/135
RuntimeError Traceback (most recent call last) <ipython-input-11-a92b5627800b> in <module> 5 val_dataloaders=val_dataloader, 6 max_lr=10.0, ----> 7 min_lr=1e-6, 8 ) 9 ~/repo/emart-promo/env/lib/python3.7/site-packages/pytorch_lightning/tuner/tuning.py in lr_find(self, model, tr...
RuntimeError
def __call__(self, data: Dict[str, torch.Tensor]) -> torch.Tensor: """ Inverse transformation but with network output as input. Args: data (Dict[str, torch.Tensor]): Dictionary with entries * prediction: data to de-scale * target_scale: center and scale of data scale...
def __call__(self, data: Dict[str, torch.Tensor]) -> torch.Tensor: """ Inverse transformation but with network output as input. Args: data (Dict[str, torch.Tensor]): Dictionary with entries * prediction: data to de-scale * target_scale: center and scale of data Returns:...
https://github.com/jdb78/pytorch-forecasting/issues/135
RuntimeError Traceback (most recent call last) <ipython-input-11-a92b5627800b> in <module> 5 val_dataloaders=val_dataloader, 6 max_lr=10.0, ----> 7 min_lr=1e-6, 8 ) 9 ~/repo/emart-promo/env/lib/python3.7/site-packages/pytorch_lightning/tuner/tuning.py in lr_find(self, model, tr...
RuntimeError
def __init__( self, method: str = "standard", groups: List[str] = [], center: bool = True, scale_by_group: bool = False, log_scale: Union[bool, float] = False, log_zero_value: float = 0.0, coerce_positive: Union[float, bool] = None, eps: float = 1e-8, ): """ Group normalizer ...
def __init__( self, method: str = "standard", groups: List[str] = [], center: bool = True, scale_by_group: bool = False, log_scale: Union[bool, float] = False, log_zero_value: float = 0.0, coerce_positive: Union[float, bool] = None, eps: float = 1e-8, ): """ Group normalizer ...
https://github.com/jdb78/pytorch-forecasting/issues/135
RuntimeError Traceback (most recent call last) <ipython-input-11-a92b5627800b> in <module> 5 val_dataloaders=val_dataloader, 6 max_lr=10.0, ----> 7 min_lr=1e-6, 8 ) 9 ~/repo/emart-promo/env/lib/python3.7/site-packages/pytorch_lightning/tuner/tuning.py in lr_find(self, model, tr...
RuntimeError
def fit(self, y: pd.Series, X: pd.DataFrame): """ Determine scales for each group Args: y (pd.Series): input data X (pd.DataFrame): dataframe with columns for each group defined in ``groups`` parameter. Returns: self """ if self.coerce_positive is None and not self.log_...
def fit(self, y: pd.Series, X: pd.DataFrame): """ Determine scales for each group Args: y (pd.Series): input data X (pd.DataFrame): dataframe with columns for each group defined in ``groups`` parameter. Returns: self """ y = self._preprocess_y(y) if len(self.groups)...
https://github.com/jdb78/pytorch-forecasting/issues/135
RuntimeError Traceback (most recent call last) <ipython-input-11-a92b5627800b> in <module> 5 val_dataloaders=val_dataloader, 6 max_lr=10.0, ----> 7 min_lr=1e-6, 8 ) 9 ~/repo/emart-promo/env/lib/python3.7/site-packages/pytorch_lightning/tuner/tuning.py in lr_find(self, model, tr...
RuntimeError
def names(self) -> List[str]: """ Names of determined scales. Returns: List[str]: list of names """ return ["center", "scale"]
def names(self) -> List[str]: """ Names of determined scales. Returns: List[str]: list of names """ if self.method == "standard": return ["mean", "scale"] else: return ["median", "scale"]
https://github.com/jdb78/pytorch-forecasting/issues/135
RuntimeError Traceback (most recent call last) <ipython-input-11-a92b5627800b> in <module> 5 val_dataloaders=val_dataloader, 6 max_lr=10.0, ----> 7 min_lr=1e-6, 8 ) 9 ~/repo/emart-promo/env/lib/python3.7/site-packages/pytorch_lightning/tuner/tuning.py in lr_find(self, model, tr...
RuntimeError
def inverse_transform(self, y: pd.Series, X: pd.DataFrame): """ Rescaling data to original scale - not implemented - call class with target scale instead. """ raise NotImplementedError()
def inverse_transform(self, y: pd.Series, X: pd.DataFrame): """ Rescaling data to original scale - not implemented. """ raise NotImplementedError()
https://github.com/jdb78/pytorch-forecasting/issues/135
RuntimeError Traceback (most recent call last) <ipython-input-11-a92b5627800b> in <module> 5 val_dataloaders=val_dataloader, 6 max_lr=10.0, ----> 7 min_lr=1e-6, 8 ) 9 ~/repo/emart-promo/env/lib/python3.7/site-packages/pytorch_lightning/tuner/tuning.py in lr_find(self, model, tr...
RuntimeError
def transform( self, y: pd.Series, X: pd.DataFrame = None, return_norm: bool = False, target_scale: torch.Tensor = None, ) -> Union[np.ndarray, Tuple[np.ndarray, np.ndarray]]: """ Scale input data. Args: y (pd.Series): data to scale X (pd.DataFrame): dataframe with ``gro...
def transform( self, y: pd.Series, X: pd.DataFrame, return_norm: bool = False ) -> Union[np.ndarray, Tuple[np.ndarray, np.ndarray]]: """ Scale input data. Args: y (pd.Series): data to scale X (pd.DataFrame): dataframe with ``groups`` columns return_norm (bool, optional): If to r...
https://github.com/jdb78/pytorch-forecasting/issues/135
RuntimeError Traceback (most recent call last) <ipython-input-11-a92b5627800b> in <module> 5 val_dataloaders=val_dataloader, 6 max_lr=10.0, ----> 7 min_lr=1e-6, 8 ) 9 ~/repo/emart-promo/env/lib/python3.7/site-packages/pytorch_lightning/tuner/tuning.py in lr_find(self, model, tr...
RuntimeError
def _preprocess_data(self, data: pd.DataFrame) -> pd.DataFrame: """ Scale continuous variables, encode categories and set aside target and weight. Args: data (pd.DataFrame): original data Returns: pd.DataFrame: pre-processed dataframe """ # encode categoricals for name in ...
def _preprocess_data(self, data: pd.DataFrame) -> pd.DataFrame: """ Scale continuous variables, encode categories and set aside target and weight. Args: data (pd.DataFrame): original data Returns: pd.DataFrame: pre-processed dataframe """ # encode categoricals for name in ...
https://github.com/jdb78/pytorch-forecasting/issues/135
RuntimeError Traceback (most recent call last) <ipython-input-11-a92b5627800b> in <module> 5 val_dataloaders=val_dataloader, 6 max_lr=10.0, ----> 7 min_lr=1e-6, 8 ) 9 ~/repo/emart-promo/env/lib/python3.7/site-packages/pytorch_lightning/tuner/tuning.py in lr_find(self, model, tr...
RuntimeError
def _construct_index(self, data: pd.DataFrame, predict_mode: bool) -> pd.DataFrame: """ Create index of samples. Args: data (pd.DataFrame): preprocessed data predict_mode (bool): if to create one same per group with prediction length equals ``max_decoder_length`` Returns: pd.Da...
def _construct_index(self, data: pd.DataFrame, predict_mode: bool) -> pd.DataFrame: """ Create index of samples. Args: data (pd.DataFrame): preprocessed data predict_mode (bool): if to create one same per group with prediction length equals ``max_decoder_length`` Returns: pd.Da...
https://github.com/jdb78/pytorch-forecasting/issues/135
RuntimeError Traceback (most recent call last) <ipython-input-11-a92b5627800b> in <module> 5 val_dataloaders=val_dataloader, 6 max_lr=10.0, ----> 7 min_lr=1e-6, 8 ) 9 ~/repo/emart-promo/env/lib/python3.7/site-packages/pytorch_lightning/tuner/tuning.py in lr_find(self, model, tr...
RuntimeError
def x_to_index(self, x: Dict[str, torch.Tensor]) -> pd.DataFrame: """ Decode dataframe index from x. Returns: dataframe with time index column for first prediction and group ids """ index_data = {self.time_idx: x["decoder_time_idx"][:, 0].cpu()} for id in self.group_ids: index_d...
def x_to_index(self, x) -> pd.DataFrame: """ Decode dataframe index from x. Returns: dataframe with time index column for first prediction and group ids """ index_data = {self.time_idx: x["decoder_time_idx"][:, 0]} for id in self.group_ids: index_data[id] = x["groups"][:, self.g...
https://github.com/jdb78/pytorch-forecasting/issues/135
RuntimeError Traceback (most recent call last) <ipython-input-11-a92b5627800b> in <module> 5 val_dataloaders=val_dataloader, 6 max_lr=10.0, ----> 7 min_lr=1e-6, 8 ) 9 ~/repo/emart-promo/env/lib/python3.7/site-packages/pytorch_lightning/tuner/tuning.py in lr_find(self, model, tr...
RuntimeError
def __init__( self, name: str = None, quantiles: List[float] = [0.02, 0.1, 0.25, 0.5, 0.75, 0.9, 0.98], reduction="mean", ): """ Initialize metric Args: name (str): metric name. Defaults to class name. quantiles (List[float], optional): quantiles for probability range. Defau...
def __init__(self, reduction="sqrt-mean", **kwargs): super().__init__(reduction=reduction, **kwargs)
https://github.com/jdb78/pytorch-forecasting/issues/135
RuntimeError Traceback (most recent call last) <ipython-input-11-a92b5627800b> in <module> 5 val_dataloaders=val_dataloader, 6 max_lr=10.0, ----> 7 min_lr=1e-6, 8 ) 9 ~/repo/emart-promo/env/lib/python3.7/site-packages/pytorch_lightning/tuner/tuning.py in lr_find(self, model, tr...
RuntimeError
def to_prediction(self, y_pred: torch.Tensor) -> torch.Tensor: """ Convert network prediction into a point prediction. Args: y_pred: prediction output of network (with ``output_type = samples``) Returns: torch.Tensor: mean prediction """ return y_pred.mean(-1)
def to_prediction(self, out: Dict[str, torch.Tensor]): rate = torch.exp(super().to_prediction(out)) return rate
https://github.com/jdb78/pytorch-forecasting/issues/135
RuntimeError Traceback (most recent call last) <ipython-input-11-a92b5627800b> in <module> 5 val_dataloaders=val_dataloader, 6 max_lr=10.0, ----> 7 min_lr=1e-6, 8 ) 9 ~/repo/emart-promo/env/lib/python3.7/site-packages/pytorch_lightning/tuner/tuning.py in lr_find(self, model, tr...
RuntimeError
def to_quantiles(self, y_pred: torch.Tensor) -> torch.Tensor: """ Convert network prediction into a quantile prediction. Args: y_pred: prediction output of network (with ``output_type = samples``) Returns: torch.Tensor: prediction quantiles (last dimension) """ samples = y_pred...
def to_quantiles(self, out: Dict[str, torch.Tensor], quantiles=None): if quantiles is None: if self.quantiles is None: quantiles = [0.5] else: quantiles = self.quantiles predictions = super().to_prediction(out) return torch.stack( [torch.tensor(scipy.stats.poi...
https://github.com/jdb78/pytorch-forecasting/issues/135
RuntimeError Traceback (most recent call last) <ipython-input-11-a92b5627800b> in <module> 5 val_dataloaders=val_dataloader, 6 max_lr=10.0, ----> 7 min_lr=1e-6, 8 ) 9 ~/repo/emart-promo/env/lib/python3.7/site-packages/pytorch_lightning/tuner/tuning.py in lr_find(self, model, tr...
RuntimeError
def loss(self, y_pred: torch.Tensor, y_actual: torch.Tensor) -> torch.Tensor: """ Calculate negative likelihood Args: y_pred: network output y_actual: actual values Returns: torch.Tensor: metric value on which backpropagation can be applied """ distribution = self.map_x...
def loss(self, y_pred, target, scaling): return (y_pred - target).abs() / scaling.unsqueeze(-1)
https://github.com/jdb78/pytorch-forecasting/issues/135
RuntimeError Traceback (most recent call last) <ipython-input-11-a92b5627800b> in <module> 5 val_dataloaders=val_dataloader, 6 max_lr=10.0, ----> 7 min_lr=1e-6, 8 ) 9 ~/repo/emart-promo/env/lib/python3.7/site-packages/pytorch_lightning/tuner/tuning.py in lr_find(self, model, tr...
RuntimeError
def step( self, x: Dict[str, torch.Tensor], y: torch.Tensor, batch_idx: int, label="train", **kwargs, ): """ Run for each train/val step. """ # pack y sequence if different encoder lengths exist if (x["decoder_lengths"] < x["decoder_lengths"].max()).any(): y = rnn.pac...
def step( self, x: Dict[str, torch.Tensor], y: torch.Tensor, batch_idx: int, label="train" ): """ Run for each train/val step. """ # pack y sequence if different encoder lengths exist if (x["decoder_lengths"] < x["decoder_lengths"].max()).any(): y = rnn.pack_padded_sequence( ...
https://github.com/jdb78/pytorch-forecasting/issues/135
RuntimeError Traceback (most recent call last) <ipython-input-11-a92b5627800b> in <module> 5 val_dataloaders=val_dataloader, 6 max_lr=10.0, ----> 7 min_lr=1e-6, 8 ) 9 ~/repo/emart-promo/env/lib/python3.7/site-packages/pytorch_lightning/tuner/tuning.py in lr_find(self, model, tr...
RuntimeError
def _log_prediction(self, x, out, batch_idx, label="train") -> None: # log single prediction figure log_interval = self.log_interval(label == "train") if (batch_idx % log_interval == 0 or log_interval < 1.0) and log_interval > 0: if log_interval < 1.0: # log multiple steps log_indices =...
def _log_prediction(self, x, out, batch_idx, label="train"): # log single prediction figure log_interval = self.log_interval(label == "train") if (batch_idx % log_interval == 0 or log_interval < 1.0) and log_interval > 0: if log_interval < 1.0: # log multiple steps log_indices = torch.a...
https://github.com/jdb78/pytorch-forecasting/issues/135
RuntimeError Traceback (most recent call last) <ipython-input-11-a92b5627800b> in <module> 5 val_dataloaders=val_dataloader, 6 max_lr=10.0, ----> 7 min_lr=1e-6, 8 ) 9 ~/repo/emart-promo/env/lib/python3.7/site-packages/pytorch_lightning/tuner/tuning.py in lr_find(self, model, tr...
RuntimeError
def plot_prediction( self, x: Dict[str, torch.Tensor], out: Dict[str, torch.Tensor], idx: int = 0, add_loss_to_title: Union[Metric, torch.Tensor, bool] = False, show_future_observed: bool = True, ax=None, ) -> plt.Figure: """ Plot prediction of prediction vs actuals Args: ...
def plot_prediction( self, x: Dict[str, torch.Tensor], out: Dict[str, torch.Tensor], idx: int = 0, add_loss_to_title: Union[Metric, bool] = False, show_future_observed: bool = True, ax=None, ) -> plt.Figure: """ Plot prediction of prediction vs actuals Args: x: network i...
https://github.com/jdb78/pytorch-forecasting/issues/135
RuntimeError Traceback (most recent call last) <ipython-input-11-a92b5627800b> in <module> 5 val_dataloaders=val_dataloader, 6 max_lr=10.0, ----> 7 min_lr=1e-6, 8 ) 9 ~/repo/emart-promo/env/lib/python3.7/site-packages/pytorch_lightning/tuner/tuning.py in lr_find(self, model, tr...
RuntimeError
def predict( self, data: Union[DataLoader, pd.DataFrame, TimeSeriesDataSet], mode: Union[str, Tuple[str, str]] = "prediction", return_index: bool = False, return_decoder_lengths: bool = False, batch_size: int = 64, num_workers: int = 0, fast_dev_run: bool = False, show_progress_bar: ...
def predict( self, data: Union[DataLoader, pd.DataFrame, TimeSeriesDataSet], mode: Union[str, Tuple[str, str]] = "prediction", return_index: bool = False, return_decoder_lengths: bool = False, batch_size: int = 64, num_workers: int = 0, fast_dev_run: bool = False, show_progress_bar: ...
https://github.com/jdb78/pytorch-forecasting/issues/135
RuntimeError Traceback (most recent call last) <ipython-input-11-a92b5627800b> in <module> 5 val_dataloaders=val_dataloader, 6 max_lr=10.0, ----> 7 min_lr=1e-6, 8 ) 9 ~/repo/emart-promo/env/lib/python3.7/site-packages/pytorch_lightning/tuner/tuning.py in lr_find(self, model, tr...
RuntimeError
def from_dataset( cls, dataset: TimeSeriesDataSet, **kwargs, ) -> LightningModule: """ Create model from dataset. Args: dataset: timeseries dataset **kwargs: additional arguments such as hyperparameters for model (see ``__init__()``) Returns: LightningModule """...
def from_dataset(cls, dataset: TimeSeriesDataSet, **kwargs) -> LightningModule: """ Create model from dataset, i.e. save dataset parameters in model This function should be called as ``super().from_dataset()`` in a derived models that implement it Args: dataset (TimeSeriesDataSet): timeseries ...
https://github.com/jdb78/pytorch-forecasting/issues/135
RuntimeError Traceback (most recent call last) <ipython-input-11-a92b5627800b> in <module> 5 val_dataloaders=val_dataloader, 6 max_lr=10.0, ----> 7 min_lr=1e-6, 8 ) 9 ~/repo/emart-promo/env/lib/python3.7/site-packages/pytorch_lightning/tuner/tuning.py in lr_find(self, model, tr...
RuntimeError
def calculate_prediction_actual_by_variable( self, x: Dict[str, torch.Tensor], y_pred: torch.Tensor, normalize: bool = True, bins: int = 95, std: float = 2.0, ) -> Dict[str, Dict[str, torch.Tensor]]: """ Calculate predictions and actuals by variable averaged by ``bins`` bins spanning fro...
def calculate_prediction_actual_by_variable( self, x: Dict[str, torch.Tensor], y_pred: torch.Tensor, normalize: bool = True, bins: int = 95, std: float = 2.0, ) -> Dict[str, Dict[str, torch.Tensor]]: """ Calculate predictions and actuals by variable averaged by ``bins`` bins spanning fro...
https://github.com/jdb78/pytorch-forecasting/issues/135
RuntimeError Traceback (most recent call last) <ipython-input-11-a92b5627800b> in <module> 5 val_dataloaders=val_dataloader, 6 max_lr=10.0, ----> 7 min_lr=1e-6, 8 ) 9 ~/repo/emart-promo/env/lib/python3.7/site-packages/pytorch_lightning/tuner/tuning.py in lr_find(self, model, tr...
RuntimeError
def plot_interpretation( self, x: Dict[str, torch.Tensor], output: Dict[str, torch.Tensor], idx: int, ax=None, plot_seasonality_and_generic_on_secondary_axis: bool = False, ) -> plt.Figure: """ Plot interpretation. Plot two pannels: prediction and backcast vs actuals and decompo...
def plot_interpretation( self, x: Dict[str, torch.Tensor], output: Dict[str, torch.Tensor], idx: int, ax=None, plot_seasonality_and_generic_on_secondary_axis: bool = False, ) -> plt.Figure: """ Plot interpretation. Plot two pannels: prediction and backcast vs actuals and decompo...
https://github.com/jdb78/pytorch-forecasting/issues/135
RuntimeError Traceback (most recent call last) <ipython-input-11-a92b5627800b> in <module> 5 val_dataloaders=val_dataloader, 6 max_lr=10.0, ----> 7 min_lr=1e-6, 8 ) 9 ~/repo/emart-promo/env/lib/python3.7/site-packages/pytorch_lightning/tuner/tuning.py in lr_find(self, model, tr...
RuntimeError
def __init__( self, hidden_size: int = 16, lstm_layers: int = 1, dropout: float = 0.1, output_size: int = 7, loss: MultiHorizonMetric = None, attention_head_size: int = 4, max_encoder_length: int = 10, static_categoricals: List[str] = [], static_reals: List[str] = [], time_va...
def __init__( self, hidden_size: int = 16, lstm_layers: int = 1, dropout: float = 0.1, output_size: int = 7, loss: MultiHorizonMetric = None, attention_head_size: int = 4, max_encoder_length: int = 10, static_categoricals: List[str] = [], static_reals: List[str] = [], time_va...
https://github.com/jdb78/pytorch-forecasting/issues/135
RuntimeError Traceback (most recent call last) <ipython-input-11-a92b5627800b> in <module> 5 val_dataloaders=val_dataloader, 6 max_lr=10.0, ----> 7 min_lr=1e-6, 8 ) 9 ~/repo/emart-promo/env/lib/python3.7/site-packages/pytorch_lightning/tuner/tuning.py in lr_find(self, model, tr...
RuntimeError
def from_dataset( cls, dataset: TimeSeriesDataSet, allowed_encoder_known_variable_names: List[str] = None, **kwargs, ): """ Create model from dataset. Args: dataset: timeseries dataset allowed_encoder_known_variable_names: List of known variables that are allowed in encoder,...
def from_dataset( cls, dataset: TimeSeriesDataSet, allowed_encoder_known_variable_names: List[str] = None, **kwargs, ): """ Create model from dataset. Args: dataset: timeseries dataset allowed_encoder_known_variable_names: List of known variables that are allowed in encoder,...
https://github.com/jdb78/pytorch-forecasting/issues/135
RuntimeError Traceback (most recent call last) <ipython-input-11-a92b5627800b> in <module> 5 val_dataloaders=val_dataloader, 6 max_lr=10.0, ----> 7 min_lr=1e-6, 8 ) 9 ~/repo/emart-promo/env/lib/python3.7/site-packages/pytorch_lightning/tuner/tuning.py in lr_find(self, model, tr...
RuntimeError
def forward(self, x: Dict[str, torch.Tensor]) -> Dict[str, torch.Tensor]: """ input dimensions: n_samples x time x variables """ encoder_lengths = x["encoder_lengths"] decoder_lengths = x["decoder_lengths"] x_cat = torch.cat( [x["encoder_cat"], x["decoder_cat"]], dim=1 ) # concatena...
def forward(self, x: Dict[str, torch.Tensor]) -> Dict[str, torch.Tensor]: """ input dimensions: n_samples x time x variables """ encoder_lengths = x["encoder_lengths"] decoder_lengths = x["decoder_lengths"] x_cat = torch.cat( [x["encoder_cat"], x["decoder_cat"]], dim=1 ) # concatena...
https://github.com/jdb78/pytorch-forecasting/issues/135
RuntimeError Traceback (most recent call last) <ipython-input-11-a92b5627800b> in <module> 5 val_dataloaders=val_dataloader, 6 max_lr=10.0, ----> 7 min_lr=1e-6, 8 ) 9 ~/repo/emart-promo/env/lib/python3.7/site-packages/pytorch_lightning/tuner/tuning.py in lr_find(self, model, tr...
RuntimeError
def _log_interpretation(self, outputs, label="train"): """ Log interpretation metrics to tensorboard. """ # extract interpretations interpretation = { # use padded_stack because decoder length histogram can be of different length name: padded_stack( [x["interpretation"][n...
def _log_interpretation(self, outputs, label="train"): """ Log interpretation metrics to tensorboard. """ # extract interpretations interpretation = { name: torch.stack([x["interpretation"][name] for x in outputs]).sum(0) for name in outputs[0]["interpretation"].keys() } # no...
https://github.com/jdb78/pytorch-forecasting/issues/85
--------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-32-14fda4f79b4a> in <module> 1 # Train model ----> 2 trainer.fit( 3 tft, 4 train_dataloader = train_dataloader, 5 val_dataloaders = val_datal...
RuntimeError
def predict_proba(self, X, batch_size=None, n_jobs=1): return super().predict(X, batch_size=batch_size, n_jobs=n_jobs)
def predict_proba(self, X, batch_size=None, n_jobs=1): return self._automl.predict(X, batch_size=batch_size, n_jobs=n_jobs)
https://github.com/automl/auto-sklearn/issues/409
AttributeError Traceback (most recent call last) <ipython-input-257-a782d97ebce8> in <module>() ----> 1 pipe.predict_proba(clf_x[te_idx]) ~/repos/vcf/research/env/lib/python3.5/site-packages/autosklearn/estimators.py in predict_proba(self, X, batch_size, n_jobs) 430 """ 431 r...
AttributeError
def predict_proba(self, X, batch_size=None, n_jobs=1): """Predict probabilities of classes for all samples X. Parameters ---------- X : array-like or sparse matrix of shape = [n_samples, n_features] Returns ------- y : array of shape = [n_samples, n_classes] or [n_samples, n_labels] ...
def predict_proba(self, X, batch_size=None, n_jobs=1): """Predict probabilities of classes for all samples X. Parameters ---------- X : array-like or sparse matrix of shape = [n_samples, n_features] Returns ------- y : array of shape = [n_samples, n_classes] or [n_samples, n_labels] ...
https://github.com/automl/auto-sklearn/issues/409
AttributeError Traceback (most recent call last) <ipython-input-257-a782d97ebce8> in <module>() ----> 1 pipe.predict_proba(clf_x[te_idx]) ~/repos/vcf/research/env/lib/python3.5/site-packages/autosklearn/estimators.py in predict_proba(self, X, batch_size, n_jobs) 430 """ 431 r...
AttributeError
def main(self): watch = StopWatch() watch.start_task("ensemble_builder") used_time = 0 time_iter = 0 index_run = 0 num_iteration = 0 current_num_models = 0 last_hash = None current_hash = None backend = Backend(self.output_dir, self.autosklearn_tmp_dir) dir_ensemble = os.pa...
def main(self): watch = StopWatch() watch.start_task("ensemble_builder") used_time = 0 time_iter = 0 index_run = 0 num_iteration = 0 current_num_models = 0 last_hash = None current_hash = None backend = Backend(self.output_dir, self.autosklearn_tmp_dir) dir_ensemble = os.pa...
https://github.com/automl/auto-sklearn/issues/69
Traceback (most recent call last): File "truffles-autosklearn-multy.py", line 82, in spawn_classifier c.fit(X_train, y_train, metric='f1_metric') File "/home/ekobylkin/anaconda2/lib/python2.7/site-packages/AutoSklearn-0.0.1.dev0-py2.7-linux-x86_64.egg/autosklearn/estimators.py", line 271, in fit feat_type, dataset_name...
ValueError
def main(self): watch = StopWatch() watch.start_task("ensemble_builder") used_time = 0 time_iter = 0 index_run = 0 num_iteration = 0 current_num_models = 0 last_hash = None current_hash = None dir_ensemble = os.path.join( self.backend.temporary_directory, ".auto-sklearn...
def main(self): watch = StopWatch() watch.start_task("ensemble_builder") used_time = 0 time_iter = 0 index_run = 0 num_iteration = 0 current_num_models = 0 last_hash = None current_hash = None dir_ensemble = os.path.join( self.backend.temporary_directory, ".auto-sklearn...
https://github.com/automl/auto-sklearn/issues/69
Traceback (most recent call last): File "truffles-autosklearn-multy.py", line 82, in spawn_classifier c.fit(X_train, y_train, metric='f1_metric') File "/home/ekobylkin/anaconda2/lib/python2.7/site-packages/AutoSklearn-0.0.1.dev0-py2.7-linux-x86_64.egg/autosklearn/estimators.py", line 271, in fit feat_type, dataset_name...
ValueError
def fit( self, X, y, task=MULTICLASS_CLASSIFICATION, metric="acc_metric", feat_type=None, dataset_name=None, ): if not self._shared_mode: self._backend.context.delete_directories() else: # If this fails, it's likely that this is the first call to get # the dat...
def fit( self, X, y, task=MULTICLASS_CLASSIFICATION, metric="acc_metric", feat_type=None, dataset_name=None, ): if not self._shared_mode: self._backend.context.delete_directories() else: # If this fails, it's likely that this is the first call to get # the dat...
https://github.com/automl/auto-sklearn/issues/115
{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": true }, "outputs": [], "source": [ "#Boiler plate\n", "import time\n", "from tqdm import *\n", "from tpot import TPOT\n", "import autosklearn.classification\n", "import sklearn.datasets\...
ValueError
def save_targets_ensemble(self, targets): self._make_internals_directory() if not isinstance(targets, np.ndarray): raise ValueError( "Targets must be of type np.ndarray, but is %s" % type(targets) ) filepath = self._get_targets_ensemble_filename() # Try to open the file wit...
def save_targets_ensemble(self, targets): self._make_internals_directory() if not isinstance(targets, np.ndarray): raise ValueError( "Targets must be of type np.ndarray, but is %s" % type(targets) ) filepath = self._get_targets_ensemble_filename() lock_path = filepath + ".l...
https://github.com/automl/auto-sklearn/issues/160
File "/x/Redly/anaconda3/lib/python3.5/site-packages/lockfile/linklockfile.py", line 31, in acquire os.link(self.unique_name, self.lock_file) FileExistsError: [Errno 17] File exists: '/x/Redly/truffles/nfs_share/atsklrn_tmp/.auto-sklearn/mgm-19-6811-41172700.20609-2442176699744317723' -> '/x/Redly/truffles/nfs_share/at...
FileExistsError
def estimate_ate( self, X, treatment, y, p=None, bootstrap_ci=False, n_bootstraps=1000, bootstrap_size=10000, ): """Estimate the Average Treatment Effect (ATE). Args: X (np.matrix or np.array or pd.Dataframe): a feature matrix treatment (np.array or pd.Series): a...
def estimate_ate( self, X, treatment, y, p=None, bootstrap_ci=False, n_bootstraps=1000, bootstrap_size=10000, ): """Estimate the Average Treatment Effect (ATE). Args: X (np.matrix or np.array or pd.Dataframe): a feature matrix treatment (np.array or pd.Series): a...
https://github.com/uber/causalml/issues/241
--------------------------------------------------------------------------- IndexError Traceback (most recent call last) <ipython-input-59-76ffa2ace99a> in <module> 1 learner_x = BaseXRegressor(learner=XGBRegressor(random_state=42)) ----> 2 te, lb, ub = learner_x.estimate_ate(X=X, p=df['p...
IndexError
def fit_predict( self, X, treatment, y, p=None, return_ci=False, n_bootstraps=1000, bootstrap_size=10000, return_components=False, verbose=True, ): """Fit the treatment effect and outcome models of the R learner and predict treatment effects. Args: X (np.matrix o...
def fit_predict( self, X, treatment, y, p=None, return_ci=False, n_bootstraps=1000, bootstrap_size=10000, return_components=False, verbose=True, ): """Fit the treatment effect and outcome models of the R learner and predict treatment effects. Args: X (np.matrix o...
https://github.com/uber/causalml/issues/241
--------------------------------------------------------------------------- IndexError Traceback (most recent call last) <ipython-input-59-76ffa2ace99a> in <module> 1 learner_x = BaseXRegressor(learner=XGBRegressor(random_state=42)) ----> 2 te, lb, ub = learner_x.estimate_ate(X=X, p=df['p...
IndexError