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 |
|---|---|---|---|---|
def _setup_emitter(general_config):
# Banner
emitter = general_config.emitter
emitter.banner(StakeHolder.banner)
return emitter
| def _setup_emitter(general_config):
# Banner
emitter = general_config.emitter
emitter.clear()
emitter.banner(StakeHolder.banner)
return emitter
| https://github.com/nucypher/nucypher/issues/1721 | Traceback (most recent call last):
File "/Users/david/.local/share/virtualenvs/nucypher-cjt3uwkK/bin/nucypher", line 11, in <module>
load_entry_point('nucypher', 'console_scripts', 'nucypher')()
File "/Users/david/.local/share/virtualenvs/nucypher-cjt3uwkK/lib/python3.7/site-packages/click/core.py", line 764, in __call... | nucypher.blockchain.eth.interfaces.InterfaceError |
def _setup_emitter(general_config):
emitter = general_config.emitter
emitter.banner(WORKLOCK_BANNER)
return emitter
| def _setup_emitter(general_config):
emitter = general_config.emitter
emitter.clear()
emitter.banner(WORKLOCK_BANNER)
return emitter
| https://github.com/nucypher/nucypher/issues/1721 | Traceback (most recent call last):
File "/Users/david/.local/share/virtualenvs/nucypher-cjt3uwkK/bin/nucypher", line 11, in <module>
load_entry_point('nucypher', 'console_scripts', 'nucypher')()
File "/Users/david/.local/share/virtualenvs/nucypher-cjt3uwkK/lib/python3.7/site-packages/click/core.py", line 764, in __call... | nucypher.blockchain.eth.interfaces.InterfaceError |
def __create_bidder(self, registry, transacting: bool = False, hw_wallet: bool = False):
client_password = None
if transacting and not hw_wallet:
client_password = get_client_password(checksum_address=self.bidder_address)
bidder = Bidder(
checksum_address=self.bidder_address,
registr... | def __create_bidder(self, registry, transacting: bool = False, hw_wallet: bool = False):
client_password = None
if transacting and not hw_wallet:
client_password = get_client_password(checksum_address=self.bidder_address)
bidder = Bidder(
checksum_address=self.bidder_address,
registr... | https://github.com/nucypher/nucypher/issues/1721 | Traceback (most recent call last):
File "/Users/david/.local/share/virtualenvs/nucypher-cjt3uwkK/bin/nucypher", line 11, in <module>
load_entry_point('nucypher', 'console_scripts', 'nucypher')()
File "/Users/david/.local/share/virtualenvs/nucypher-cjt3uwkK/lib/python3.7/site-packages/click/core.py", line 764, in __call... | nucypher.blockchain.eth.interfaces.InterfaceError |
def make_cli_character(
character_config,
click_config,
unlock_keyring: bool = True,
teacher_uri: str = None,
min_stake: int = 0,
load_preferred_teachers: bool = True,
**config_args,
):
emitter = click_config.emitter
#
# Pre-Init
#
# Handle Keyring
if unlock_keyrin... | def make_cli_character(
character_config,
click_config,
dev: bool = False,
teacher_uri: str = None,
min_stake: int = 0,
**config_args,
):
emitter = click_config.emitter
#
# Pre-Init
#
# Handle Keyring
if not dev:
character_config.attach_keyring()
unlock... | https://github.com/nucypher/nucypher/issues/1233 | (nucypher) derek@derek-home-server:~/nucypher/forks/david/nucypher$ nucypher ursula run --teacher <teacher_uri> --interactive
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 ... | nucypher.blockchain.eth.interfaces.InterfaceError |
def public_keys(
click_config,
# API Options
geth,
provider_uri,
federated_only,
dev,
pay_with,
network,
registry_filepath,
config_file,
discovery_port,
hw_wallet,
teacher_uri,
min_stake,
):
"""
Obtain Alice's public verification and encryption keys.
"... | def public_keys(
click_config,
# API Options
geth,
provider_uri,
federated_only,
dev,
pay_with,
network,
registry_filepath,
config_file,
discovery_port,
hw_wallet,
teacher_uri,
min_stake,
):
"""
Obtain Alice's public verification and encryption keys.
"... | https://github.com/nucypher/nucypher/issues/1233 | (nucypher) derek@derek-home-server:~/nucypher/forks/david/nucypher$ nucypher ursula run --teacher <teacher_uri> --interactive
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 ... | nucypher.blockchain.eth.interfaces.InterfaceError |
def derive_policy_pubkey(
click_config,
# Other (required)
label,
# API Options
geth,
provider_uri,
federated_only,
dev,
pay_with,
network,
registry_filepath,
config_file,
discovery_port,
hw_wallet,
teacher_uri,
min_stake,
):
"""
Get a policy publi... | def derive_policy_pubkey(
click_config,
# Other (required)
label,
# API Options
geth,
provider_uri,
federated_only,
dev,
pay_with,
network,
registry_filepath,
config_file,
discovery_port,
hw_wallet,
teacher_uri,
min_stake,
):
"""
Get a policy publi... | https://github.com/nucypher/nucypher/issues/1233 | (nucypher) derek@derek-home-server:~/nucypher/forks/david/nucypher$ nucypher ursula run --teacher <teacher_uri> --interactive
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 ... | nucypher.blockchain.eth.interfaces.InterfaceError |
def decrypt(
click_config,
# Other (required)
label,
message_kit,
# API Options
geth,
provider_uri,
federated_only,
dev,
pay_with,
network,
registry_filepath,
config_file,
discovery_port,
hw_wallet,
teacher_uri,
min_stake,
):
"""
Decrypt data e... | def decrypt(
click_config,
# Other (required)
label,
message_kit,
# API Options
geth,
provider_uri,
federated_only,
dev,
pay_with,
network,
registry_filepath,
config_file,
discovery_port,
hw_wallet,
teacher_uri,
min_stake,
):
"""
Decrypt data e... | https://github.com/nucypher/nucypher/issues/1233 | (nucypher) derek@derek-home-server:~/nucypher/forks/david/nucypher$ nucypher ursula run --teacher <teacher_uri> --interactive
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 ... | nucypher.blockchain.eth.interfaces.InterfaceError |
def _create_alice(
alice_config,
click_config,
dev,
emitter,
hw_wallet,
teacher_uri,
min_stake,
load_seednodes=True,
):
#
# Produce Alice
#
client_password = None
if not alice_config.federated_only:
if (not hw_wallet or not dev) and not click_config.json_ipc:
... | def _create_alice(
alice_config, click_config, dev, emitter, hw_wallet, teacher_uri, min_stake
):
#
# Produce Alice
#
client_password = None
if not alice_config.federated_only:
if (not hw_wallet or not dev) and not click_config.json_ipc:
client_password = get_client_password(... | https://github.com/nucypher/nucypher/issues/1233 | (nucypher) derek@derek-home-server:~/nucypher/forks/david/nucypher$ nucypher ursula run --teacher <teacher_uri> --interactive
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 ... | nucypher.blockchain.eth.interfaces.InterfaceError |
def run(
click_config,
# API Options
provider_uri,
network,
registry_filepath,
checksum_address,
dev,
config_file,
discovery_port,
teacher_uri,
min_stake,
# Other
controller_port,
dry_run,
):
"""
Start Bob's controller.
"""
### Setup ###
emitt... | def run(
click_config,
# API Options
provider_uri,
network,
registry_filepath,
checksum_address,
dev,
config_file,
discovery_port,
teacher_uri,
min_stake,
# Other
controller_port,
dry_run,
):
"""
Start Bob's controller.
"""
### Setup ###
emitt... | https://github.com/nucypher/nucypher/issues/1233 | (nucypher) derek@derek-home-server:~/nucypher/forks/david/nucypher$ nucypher ursula run --teacher <teacher_uri> --interactive
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 ... | nucypher.blockchain.eth.interfaces.InterfaceError |
def public_keys(
click_config,
# API Options
provider_uri,
network,
registry_filepath,
checksum_address,
dev,
config_file,
discovery_port,
teacher_uri,
min_stake,
):
"""
Obtain Bob's public verification and encryption keys.
"""
### Setup ###
_setup_emitte... | def public_keys(
click_config,
# API Options
provider_uri,
network,
registry_filepath,
checksum_address,
dev,
config_file,
discovery_port,
teacher_uri,
min_stake,
):
"""
Obtain Bob's public verification and encryption keys.
"""
### Setup ###
_setup_emitte... | https://github.com/nucypher/nucypher/issues/1233 | (nucypher) derek@derek-home-server:~/nucypher/forks/david/nucypher$ nucypher ursula run --teacher <teacher_uri> --interactive
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 ... | nucypher.blockchain.eth.interfaces.InterfaceError |
def retrieve(
click_config,
# API Options
provider_uri,
network,
registry_filepath,
checksum_address,
dev,
config_file,
discovery_port,
teacher_uri,
min_stake,
# Other
label,
policy_encrypting_key,
alice_verifying_key,
message_kit,
):
"""
Obtain pl... | def retrieve(
click_config,
# API Options
provider_uri,
network,
registry_filepath,
checksum_address,
dev,
config_file,
discovery_port,
teacher_uri,
min_stake,
# Other
label,
policy_encrypting_key,
alice_verifying_key,
message_kit,
):
"""
Obtain pl... | https://github.com/nucypher/nucypher/issues/1233 | (nucypher) derek@derek-home-server:~/nucypher/forks/david/nucypher$ nucypher ursula run --teacher <teacher_uri> --interactive
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 ... | nucypher.blockchain.eth.interfaces.InterfaceError |
def save_metadata(
click_config,
# API Options
geth,
provider_uri,
network,
registry_filepath,
staker_address,
worker_address,
federated_only,
rest_host,
rest_port,
db_filepath,
poa,
light,
config_file,
dev,
lonely,
teacher_uri,
min_stake,
):
... | def save_metadata(
click_config,
# API Options
geth,
provider_uri,
network,
registry_filepath,
staker_address,
worker_address,
federated_only,
rest_host,
rest_port,
db_filepath,
poa,
light,
config_file,
dev,
lonely,
teacher_uri,
min_stake,
):
... | https://github.com/nucypher/nucypher/issues/1233 | (nucypher) derek@derek-home-server:~/nucypher/forks/david/nucypher$ nucypher ursula run --teacher <teacher_uri> --interactive
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 ... | nucypher.blockchain.eth.interfaces.InterfaceError |
def confirm_activity(
click_config,
# API Options
geth,
provider_uri,
network,
registry_filepath,
staker_address,
worker_address,
federated_only,
rest_host,
rest_port,
db_filepath,
poa,
light,
config_file,
dev,
lonely,
teacher_uri,
min_stake,
)... | def confirm_activity(
click_config,
# API Options
geth,
provider_uri,
network,
registry_filepath,
staker_address,
worker_address,
federated_only,
rest_host,
rest_port,
db_filepath,
poa,
light,
config_file,
dev,
lonely,
teacher_uri,
min_stake,
)... | https://github.com/nucypher/nucypher/issues/1233 | (nucypher) derek@derek-home-server:~/nucypher/forks/david/nucypher$ nucypher ursula run --teacher <teacher_uri> --interactive
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 ... | nucypher.blockchain.eth.interfaces.InterfaceError |
def _create_ursula(
ursula_config,
click_config,
dev,
emitter,
lonely,
teacher_uri,
min_stake,
load_seednodes=True,
):
#
# Make Ursula
#
client_password = None
if not ursula_config.federated_only:
if not dev and not click_config.json_ipc:
client_p... | def _create_ursula(
ursula_config, click_config, dev, emitter, lonely, teacher_uri, min_stake
):
#
# Make Ursula
#
client_password = None
if not ursula_config.federated_only:
if not dev and not click_config.json_ipc:
client_password = get_client_password(
che... | https://github.com/nucypher/nucypher/issues/1233 | (nucypher) derek@derek-home-server:~/nucypher/forks/david/nucypher$ nucypher ursula run --teacher <teacher_uri> --interactive
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 ... | nucypher.blockchain.eth.interfaces.InterfaceError |
def set_worker(
click_config,
# Worker Options
poa,
light,
registry_filepath,
config_file,
provider_uri,
staking_address,
hw_wallet,
beneficiary_address,
allocation_filepath,
worker_address,
# Other options
force,
):
"""
Bond a worker to a staker.
"""
... | def set_worker(
click_config,
# Worker Options
poa,
light,
registry_filepath,
config_file,
provider_uri,
staking_address,
hw_wallet,
beneficiary_address,
allocation_filepath,
worker_address,
# Other options
force,
):
"""
Bond a worker to a staker.
"""
... | https://github.com/nucypher/nucypher/issues/1375 | ____ __ __
/\ _`\ /\ \__ /\ \
\ \,\L\_\ \ ,_\ __ \ \ \/'\ __ _ __
\/_\__ \\ \ \/ /'__`\\ \ , < /'__`\/\`'__\
/\ \L\ \ \ \_/\ \L\.\\ \ \\`\ /\ __/\ \ \/
\ `\____\ \__\ \__/.\_\ \_\ \_\ \____\\ \_\
\/_____/\/__/\/__/\/_/\/_/\/_/\/____/ \/_/
The Holder of Stakes.
====================... | AttributeError |
def create(
click_config,
# Stake Options
poa,
light,
registry_filepath,
config_file,
provider_uri,
staking_address,
hw_wallet,
beneficiary_address,
allocation_filepath,
# Other
force,
value,
lock_periods,
):
"""
Initialize a new stake.
"""
##... | def create(
click_config,
# Stake Options
poa,
light,
registry_filepath,
config_file,
provider_uri,
staking_address,
hw_wallet,
beneficiary_address,
allocation_filepath,
# Other
force,
value,
lock_periods,
):
"""
Initialize a new stake.
"""
##... | https://github.com/nucypher/nucypher/issues/1375 | ____ __ __
/\ _`\ /\ \__ /\ \
\ \,\L\_\ \ ,_\ __ \ \ \/'\ __ _ __
\/_\__ \\ \ \/ /'__`\\ \ , < /'__`\/\`'__\
/\ \L\ \ \ \_/\ \L\.\\ \ \\`\ /\ __/\ \ \/
\ `\____\ \__\ \__/.\_\ \_\ \_\ \____\\ \_\
\/_____/\/__/\/__/\/_/\/_/\/_/\/____/ \/_/
The Holder of Stakes.
====================... | AttributeError |
def divide(
click_config,
# Stake Options
poa,
light,
registry_filepath,
config_file,
provider_uri,
staking_address,
hw_wallet,
beneficiary_address,
allocation_filepath,
# Other
force,
value,
lock_periods,
index,
):
"""
Create a new stake from part... | def divide(
click_config,
# Stake Options
poa,
light,
registry_filepath,
config_file,
provider_uri,
staking_address,
hw_wallet,
beneficiary_address,
allocation_filepath,
# Other
force,
value,
lock_periods,
index,
):
"""
Create a new stake from part... | https://github.com/nucypher/nucypher/issues/1375 | ____ __ __
/\ _`\ /\ \__ /\ \
\ \,\L\_\ \ ,_\ __ \ \ \/'\ __ _ __
\/_\__ \\ \ \/ /'__`\\ \ , < /'__`\/\`'__\
/\ \L\ \ \ \_/\ \L\.\\ \ \\`\ /\ __/\ \ \/
\ `\____\ \__\ \__/.\_\ \_\ \_\ \____\\ \_\
\/_____/\/__/\/__/\/_/\/_/\/_/\/____/ \/_/
The Holder of Stakes.
====================... | AttributeError |
def paint_stakes(emitter, stakes, paint_inactive: bool = False):
header = (
f"| ~ | Staker | Worker | # | Value | Duration | Enactment "
)
breaky = f"| | ------ | ------ | - | -------- | ------------ | ----------------------------------------- "
active_stakes = sorted(
... | def paint_stakes(emitter, stakes, paint_inactive: bool = False):
header = (
f"| ~ | Staker | Worker | # | Value | Duration | Enactment "
)
breaky = f"| | ------ | ------ | - | -------- | ------------ | ----------------------------------------- "
active_stakes = sorted(
... | https://github.com/nucypher/nucypher/issues/1375 | ____ __ __
/\ _`\ /\ \__ /\ \
\ \,\L\_\ \ ,_\ __ \ \ \/'\ __ _ __
\/_\__ \\ \ \/ /'__`\\ \ , < /'__`\/\`'__\
/\ \L\ \ \ \_/\ \L\.\\ \ \\`\ /\ __/\ \ \/
\ `\____\ \__\ \__/.\_\ \_\ \_\ \____\\ \_\
\/_____/\/__/\/__/\/_/\/_/\/_/\/____/ \/_/
The Holder of Stakes.
====================... | AttributeError |
def paint_staged_stake_division(
emitter, stakeholder, original_stake, target_value, extension
):
new_end_period = original_stake.final_locked_period + extension
new_duration_periods = new_end_period - original_stake.first_locked_period
staking_address = original_stake.staker_address
division_messa... | def paint_staged_stake_division(
emitter, stakeholder, original_stake, target_value, extension
):
new_end_period = original_stake.end_period + extension
new_duration_periods = new_end_period - original_stake.start_period
staking_address = original_stake.owner_address
division_message = f"""
Staking... | https://github.com/nucypher/nucypher/issues/1375 | ____ __ __
/\ _`\ /\ \__ /\ \
\ \,\L\_\ \ ,_\ __ \ \ \/'\ __ _ __
\/_\__ \\ \ \/ /'__`\\ \ , < /'__`\/\`'__\
/\ \L\ \ \ \_/\ \L\.\\ \ \\`\ /\ __/\ \ \/
\ `\____\ \__\ \__/.\_\ \_\ \_\ \____\\ \_\
\/_____/\/__/\/__/\/_/\/_/\/_/\/____/ \/_/
The Holder of Stakes.
====================... | AttributeError |
def from_seed_and_stake_info(
cls,
seed_uri: str,
federated_only: bool,
minimum_stake: int = 0,
registry: BaseContractRegistry = None,
network_middleware: RestMiddleware = None,
*args,
**kwargs,
) -> "Ursula":
if network_middleware is None:
network_middleware = RestMiddleware... | def from_seed_and_stake_info(
cls,
seed_uri: str,
federated_only: bool,
minimum_stake: int = 0,
registry: BaseContractRegistry = None,
network_middleware: RestMiddleware = None,
*args,
**kwargs,
) -> "Ursula":
if network_middleware is None:
network_middleware = RestMiddleware... | https://github.com/nucypher/nucypher/issues/1279 | $ nucypher ursula confirm-activity
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 I8 8'
88 88 ,gggggg, ,g, ... | ValueError |
def from_bytes(
cls,
ursula_as_bytes: bytes,
version: int = INCLUDED_IN_BYTESTRING,
federated_only: bool = False,
registry: BaseContractRegistry = None,
) -> "Ursula":
if version is INCLUDED_IN_BYTESTRING:
version, payload = cls.version_splitter(ursula_as_bytes, return_remainder=True)
... | def from_bytes(
cls,
ursula_as_bytes: bytes,
version: int = INCLUDED_IN_BYTESTRING,
federated_only: bool = False,
registry: BaseContractRegistry = None,
) -> "Ursula":
if version is INCLUDED_IN_BYTESTRING:
version, payload = cls.version_splitter(ursula_as_bytes, return_remainder=True)
... | https://github.com/nucypher/nucypher/issues/1279 | $ nucypher ursula confirm-activity
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 I8 8'
88 88 ,gggggg, ,g, ... | ValueError |
def __setup_node_storage(self, node_storage=None) -> None:
if self.dev_mode:
node_storage = ForgetfulNodeStorage(
registry=self.registry, federated_only=self.federated_only
)
elif not node_storage:
node_storage = LocalFileBasedNodeStorage(
registry=self.registry,
... | def __setup_node_storage(self, node_storage=None) -> None:
if self.dev_mode:
node_storage = ForgetfulNodeStorage(
registry=self.registry, federated_only=self.federated_only
)
else:
node_storage = LocalFileBasedNodeStorage(
registry=self.registry,
confi... | https://github.com/nucypher/nucypher/issues/1279 | $ nucypher ursula confirm-activity
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 I8 8'
88 88 ,gggggg, ,g, ... | ValueError |
def __read_metadata(self, filepath: str, federated_only: bool):
from nucypher.characters.lawful import Ursula
try:
with open(filepath, "rb") as seed_file:
seed_file.seek(0)
node_bytes = self.deserializer(seed_file.read())
node = Ursula.from_bytes(
nod... | def __read_metadata(
self, filepath: str, federated_only: bool, registry: BaseContractRegistry = None
):
# TODO: Use registry None to indicate federated only
from nucypher.characters.lawful import Ursula
try:
with open(filepath, "rb") as seed_file:
seed_file.seek(0)
node... | https://github.com/nucypher/nucypher/issues/1279 | $ nucypher ursula confirm-activity
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 I8 8'
88 88 ,gggggg, ,g, ... | ValueError |
def all(
self, federated_only: bool, certificates_only: bool = False
) -> Set[Union[Any, Certificate]]:
filenames = os.listdir(
self.certificates_dir if certificates_only else self.metadata_dir
)
self.log.info(
"Found {} known node metadata files at {}".format(
len(filenames)... | def all(
self, federated_only: bool, certificates_only: bool = False
) -> Set[Union[Any, Certificate]]:
filenames = os.listdir(
self.certificates_dir if certificates_only else self.metadata_dir
)
self.log.info(
"Found {} known node metadata files at {}".format(
len(filenames)... | https://github.com/nucypher/nucypher/issues/1279 | $ nucypher ursula confirm-activity
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 I8 8'
88 88 ,gggggg, ,g, ... | ValueError |
def get(
self, checksum_address: str, federated_only: bool, certificate_only: bool = False
):
if certificate_only is True:
certificate = self.__read_tls_public_certificate(
checksum_address=checksum_address
)
return certificate
metadata_path = self.__generate_metadata_fil... | def get(
self, checksum_address: str, federated_only: bool, certificate_only: bool = False
):
if certificate_only is True:
certificate = self.__read_tls_public_certificate(
checksum_address=checksum_address
)
return certificate
metadata_path = self.__generate_metadata_fil... | https://github.com/nucypher/nucypher/issues/1279 | $ nucypher ursula confirm-activity
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 I8 8'
88 88 ,gggggg, ,g, ... | ValueError |
def __init__(
self,
domains: set,
network_middleware: RestMiddleware = __DEFAULT_MIDDLEWARE_CLASS(),
start_learning_now: bool = False,
learn_on_same_thread: bool = False,
known_nodes: tuple = None,
seed_nodes: Tuple[tuple] = None,
node_storage=None,
save_metadata: bool = False,
a... | def __init__(
self,
domains: set,
network_middleware: RestMiddleware = __DEFAULT_MIDDLEWARE_CLASS(),
start_learning_now: bool = False,
learn_on_same_thread: bool = False,
known_nodes: tuple = None,
seed_nodes: Tuple[tuple] = None,
node_storage=None,
save_metadata: bool = False,
a... | https://github.com/nucypher/nucypher/issues/1279 | $ nucypher ursula confirm-activity
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 I8 8'
88 88 ,gggggg, ,g, ... | ValueError |
def remember_node(self, node, force_verification_check=False, record_fleet_state=True):
if node == self: # No need to remember self.
return False
# First, determine if this is an outdated representation of an already known node.
# TODO: #1032
with suppress(KeyError):
already_known_node... | def remember_node(self, node, force_verification_check=False, record_fleet_state=True):
if node == self: # No need to remember self.
return False
# First, determine if this is an outdated representation of an already known node.
# TODO: #1032
with suppress(KeyError):
already_known_node... | https://github.com/nucypher/nucypher/issues/1279 | $ nucypher ursula confirm-activity
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 I8 8'
88 88 ,gggggg, ,g, ... | ValueError |
def learn_from_teacher_node(self, eager=True):
"""
Sends a request to node_url to find out about known nodes.
"""
self._learning_round += 1
try:
current_teacher = self.current_teacher_node()
except self.NotEnoughTeachers as e:
self.log.warn("Can't learn right now: {}".format(e.a... | def learn_from_teacher_node(self, eager=True):
"""
Sends a request to node_url to find out about known nodes.
"""
self._learning_round += 1
try:
current_teacher = self.current_teacher_node()
except self.NotEnoughTeachers as e:
self.log.warn("Can't learn right now: {}".format(e.a... | https://github.com/nucypher/nucypher/issues/1279 | $ nucypher ursula confirm-activity
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 I8 8'
88 88 ,gggggg, ,g, ... | ValueError |
def _worker_is_bonded_to_staker(self, registry: BaseContractRegistry) -> bool:
"""
This method assumes the stamp's signature is valid and accurate.
As a follow-up, this checks that the worker is linked to a staker, but it may be
the case that the "staker" isn't "staking" (e.g., all her tokens have been ... | def _worker_is_bonded_to_staker(self) -> bool:
"""
This method assumes the stamp's signature is valid and accurate.
As a follow-up, this checks that the worker is linked to a staker, but it may be
the case that the "staker" isn't "staking" (e.g., all her tokens have been slashed).
"""
staker_add... | https://github.com/nucypher/nucypher/issues/1279 | $ nucypher ursula confirm-activity
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 I8 8'
88 88 ,gggggg, ,g, ... | ValueError |
def _staker_is_really_staking(self, registry: BaseContractRegistry) -> bool:
"""
This method assumes the stamp's signature is valid and accurate.
As a follow-up, this checks that the staker is, indeed, staking.
"""
# Lazy agent get or create
staking_agent = ContractAgency.get_agent(StakingEscrow... | def _staker_is_really_staking(self) -> bool:
"""
This method assumes the stamp's signature is valid and accurate.
As a follow-up, this checks that the staker is, indeed, staking.
"""
locked_tokens = self.staking_agent.get_locked_tokens(
staker_address=self.checksum_address
)
return l... | https://github.com/nucypher/nucypher/issues/1279 | $ nucypher ursula confirm-activity
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 I8 8'
88 88 ,gggggg, ,g, ... | ValueError |
def validate_worker(self, registry: BaseContractRegistry = None) -> None:
# Federated
if self.federated_only:
message = (
"This node cannot be verified in this manner, "
"but is OK to use in federated mode if you "
"have reason to believe it is trustworthy."
)... | def validate_worker(self, verify_staking: bool = True) -> None:
# Federated
if self.federated_only:
message = (
"This node cannot be verified in this manner, "
"but is OK to use in federated mode if you "
"have reason to believe it is trustworthy."
)
r... | https://github.com/nucypher/nucypher/issues/1279 | $ nucypher ursula confirm-activity
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 I8 8'
88 88 ,gggggg, ,g, ... | ValueError |
def validate_metadata(self, registry: BaseContractRegistry = None):
# Verify the interface signature
if not self.verified_interface:
self.validate_interface()
# Verify the identity evidence
if self.verified_stamp:
return
# Offline check of valid stamp signature by worker
try:
... | def validate_metadata(
self, accept_federated_only: bool = False, verify_staking: bool = True
):
# Verify the interface signature
if not self.verified_interface:
self.validate_interface()
# Verify the identity evidence
if self.verified_stamp:
return
# Offline check of valid sta... | https://github.com/nucypher/nucypher/issues/1279 | $ nucypher ursula confirm-activity
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 I8 8'
88 88 ,gggggg, ,g, ... | ValueError |
def verify_node(
self,
network_middleware,
certificate_filepath: str = None,
force: bool = False,
registry: BaseContractRegistry = None,
) -> bool:
"""
Three things happening here:
* Verify that the stamp matches the address (raises InvalidNode is it's not valid,
or WrongMode if i... | def verify_node(
self,
network_middleware,
certificate_filepath: str = None,
accept_federated_only: bool = False,
force: bool = False,
) -> bool:
"""
Three things happening here:
* Verify that the stamp matches the address (raises InvalidNode is it's not valid,
or WrongMode if it'... | https://github.com/nucypher/nucypher/issues/1279 | $ nucypher ursula confirm-activity
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 I8 8'
88 88 ,gggggg, ,g, ... | ValueError |
def make_rest_app(
db_filepath: str, this_node, serving_domains, log=Logger("http-application-layer")
) -> Tuple:
forgetful_node_storage = ForgetfulNodeStorage(
federated_only=this_node.federated_only
)
from nucypher.keystore import keystore
from nucypher.keystore.db import Base
from sq... | def make_rest_app(
db_filepath: str, this_node, serving_domains, log=Logger("http-application-layer")
) -> Tuple:
forgetful_node_storage = ForgetfulNodeStorage(
federated_only=this_node.federated_only
)
from nucypher.keystore import keystore
from nucypher.keystore.db import Base
from sq... | https://github.com/nucypher/nucypher/issues/1279 | $ nucypher ursula confirm-activity
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 I8 8'
88 88 ,gggggg, ,g, ... | ValueError |
def node_metadata_exchange():
# If these nodes already have the same fleet state, no exchange is necessary.
learner_fleet_state = request.args.get("fleet")
if learner_fleet_state == this_node.known_nodes.checksum:
log.debug(
"Learner already knew fleet state {}; doing nothing.".format(
... | def node_metadata_exchange():
# If these nodes already have the same fleet state, no exchange is necessary.
learner_fleet_state = request.args.get("fleet")
if learner_fleet_state == this_node.known_nodes.checksum:
log.debug(
"Learner already knew fleet state {}; doing nothing.".format(
... | https://github.com/nucypher/nucypher/issues/1279 | $ nucypher ursula confirm-activity
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 I8 8'
88 88 ,gggggg, ,g, ... | ValueError |
def learn_about_announced_nodes():
try:
certificate_filepath = forgetful_node_storage.store_node_certificate(
certificate=node.certificate
)
node.verify_node(
this_node.network_middleware,
registry=this_node.registry,
certificate_filepath=cert... | def learn_about_announced_nodes():
try:
certificate_filepath = forgetful_node_storage.store_node_certificate(
certificate=node.certificate
)
node.verify_node(
this_node.network_middleware,
accept_federated_only=this_node.federated_only, # TODO: 466
... | https://github.com/nucypher/nucypher/issues/1279 | $ nucypher ursula confirm-activity
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 I8 8'
88 88 ,gggggg, ,g, ... | ValueError |
def consider_arrangement(self, network_middleware, ursula, arrangement) -> bool:
try:
ursula.verify_node(
network_middleware, registry=self.alice.registry
) # From the perspective of alice.
except ursula.InvalidNode:
# TODO: What do we actually do here? Report this at least... | def consider_arrangement(self, network_middleware, ursula, arrangement) -> bool:
try:
ursula.verify_node(
network_middleware, accept_federated_only=arrangement.federated
)
except ursula.InvalidNode:
# TODO: What do we actually do here? Report this at least (355)?
# M... | https://github.com/nucypher/nucypher/issues/1279 | $ nucypher ursula confirm-activity
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 I8 8'
88 88 ,gggggg, ,g, ... | ValueError |
def ursula(
click_config,
action,
dev,
quiet,
dry_run,
force,
lonely,
network,
teacher_uri,
enode,
min_stake,
rest_host,
rest_port,
db_filepath,
checksum_address,
withdraw_address,
federated_only,
poa,
config_root,
config_file,
provider... | def ursula(
click_config,
action,
dev,
quiet,
dry_run,
force,
lonely,
network,
teacher_uri,
enode,
min_stake,
rest_host,
rest_port,
db_filepath,
checksum_address,
withdraw_address,
federated_only,
poa,
config_root,
config_file,
provider... | https://github.com/nucypher/nucypher/issues/1025 | Enter keyring password:
Decrypting NuCypher keyring...
Decrypting Ethereum Node Keyring...
No default teacher nodes exist for the specified network: b"b'goerli'"
WARNING - No Bootnodes Available
There are no existing stakes for 0xbE5A5646Ea2B6d47ea65dF2a13A1876997a348c4
| # | Duration | Enact | Expiration | V... | TypeError |
def ursula(
click_config,
action,
dev,
quiet,
dry_run,
force,
lonely,
network,
teacher_uri,
min_stake,
rest_host,
rest_port,
db_filepath,
checksum_address,
withdraw_address,
federated_only,
poa,
config_root,
config_file,
provider_uri,
r... | def ursula(
click_config,
action,
dev,
quiet,
dry_run,
force,
lonely,
network,
teacher_uri,
min_stake,
rest_host,
rest_port,
db_filepath,
checksum_address,
withdraw_address,
federated_only,
poa,
config_root,
config_file,
provider_uri,
r... | https://github.com/nucypher/nucypher/issues/907 | 2019-04-04T17:31:25-0700 [learning-loop#warn] Unhandled error during node learning: Traceback (most recent call last):
File "/home/kieran/.local/share/virtualenvs/nucypher-9CH2v_st/lib/python3.7/site-packages/twisted/internet/base.py", line 1272, in run
self.mainLoop()
File "/home/kieran/.local/share/virtualenvs/nucyph... | builtins.AttributeError |
def from_configuration_file(
cls, filepath: str = None, **overrides
) -> "NodeConfiguration":
"""Initialize a NodeConfiguration from a JSON file."""
from nucypher.config.storages import NodeStorage
node_storage_subclasses = {
storage._name: storage for storage in NodeStorage.__subclasses__()
... | def from_configuration_file(
cls, filepath: str = None, **overrides
) -> "NodeConfiguration":
"""Initialize a NodeConfiguration from a JSON file."""
from nucypher.config.storages import NodeStorage
node_storage_subclasses = {
storage._name: storage for storage in NodeStorage.__subclasses__()
... | https://github.com/nucypher/nucypher/issues/907 | 2019-04-04T17:31:25-0700 [learning-loop#warn] Unhandled error during node learning: Traceback (most recent call last):
File "/home/kieran/.local/share/virtualenvs/nucypher-9CH2v_st/lib/python3.7/site-packages/twisted/internet/base.py", line 1272, in run
self.mainLoop()
File "/home/kieran/.local/share/virtualenvs/nucyph... | builtins.AttributeError |
def from_bytes(
cls,
ursula_as_bytes: bytes,
version: int = INCLUDED_IN_BYTESTRING,
federated_only: bool = False,
) -> "Ursula":
if version is INCLUDED_IN_BYTESTRING:
version, payload = cls.version_splitter(ursula_as_bytes, return_remainder=True)
else:
payload = ursula_as_bytes
... | def from_bytes(
cls,
ursula_as_bytes: bytes,
version: int = INCLUDED_IN_BYTESTRING,
federated_only: bool = False,
) -> "Ursula":
if version is INCLUDED_IN_BYTESTRING:
version, payload = cls.version_splitter(ursula_as_bytes, return_remainder=True)
else:
payload = ursula_as_bytes
... | https://github.com/nucypher/nucypher/issues/911 | - generated xml file: /home/kieran/Git/nucypher/tests/characters/reports/pytest-results.xml -
Coverage statistics reporting failed
Traceback (most recent call last):
File "/snap/pycharm-professional/127/helpers/pycharm/teamcity/pytest_plugin.py", line 354, in pytest_terminal_summary
self._report_coverage()
File "/snap/... | AttributeError |
def convert_token_dict(token_dict):
"""Convert the dictionary format input token to the CoNLL-U format output token. This is the reverse function of
`convert_conll_token`.
Input: dictionary format token, which is a dictionaries for the token.
Output: CoNLL-U format token, which is a list for the token.
... | def convert_token_dict(token_dict):
"""Convert the dictionary format input token to the CoNLL-U format output token. This is the reverse function of
`convert_conll_token`.
Input: dictionary format token, which is a dictionaries for the token.
Output: CoNLL-U format token, which is a list for the token.
... | https://github.com/stanfordnlp/stanza/issues/483 | Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/m0re/projects/phd/stanza/stanza/utils/conll.py", line 112, in convert_dict
token_conll = CoNLL.convert_token_dict(token_dict)
File "/home/m0re/projects/phd/stanza/stanza/utils/conll.py", line 132, in convert_token_dict
token_conll[FIELD_... | TypeError |
def display_results(
self,
endpoints,
fields,
sort_by=0,
max_width=0,
unique=False,
nonzero=False,
output_format="table",
ipv4_only=True,
ipv6_only=False,
ipv4_and_ipv6=False,
):
matrix = []
fields_lookup = {
"id": (GetData._get_name, 0),
"mac": (GetDa... | def display_results(
self,
endpoints,
fields,
sort_by=0,
max_width=0,
unique=False,
nonzero=False,
output_format="table",
ipv4_only=True,
ipv6_only=False,
ipv4_and_ipv6=False,
):
matrix = []
fields_lookup = {
"id": (GetData._get_name, 0),
"mac": (GetDa... | https://github.com/IQTLabs/poseidon/issues/1152 | poseidon$ show all -4and6 --fields=[next state]
[ERROR] Exception in show_all: '<' not supported between instances of 'NoneType' and 'str'
Traceback (most recent call last):
File "/poseidon/poseidon/helpers/exception_decor.py", line 19, in wrapper
return function(*args, **kwargs)
File "/poseidon/poseidon/cli/cli.py", l... | TypeError |
def _get_next_state(endpoint):
return str(endpoint.p_next_state)
| def _get_next_state(endpoint):
return endpoint.p_next_state
| https://github.com/IQTLabs/poseidon/issues/1152 | poseidon$ show all -4and6 --fields=[next state]
[ERROR] Exception in show_all: '<' not supported between instances of 'NoneType' and 'str'
Traceback (most recent call last):
File "/poseidon/poseidon/helpers/exception_decor.py", line 19, in wrapper
return function(*args, **kwargs)
File "/poseidon/poseidon/cli/cli.py", l... | TypeError |
def do_task(self, arg):
"""Perform task to things on the network"""
# TODO
flags, arg = self.parser.get_flags(arg)
if arg:
action = arg.split()[0]
func_calls = {
"clear": self.task_clear,
"collect": self.task_collect,
"ignore": self.task_ignore,
... | def do_task(self, arg):
"""Perform task to things on the network"""
# TODO
flags, arg = self.parser.get_flags(arg)
action = arg.split()[0]
func_calls = {
"clear": self.task_clear,
"collect": self.task_collect,
"ignore": self.task_ignore,
"remove": self.task_remove,
... | https://github.com/IQTLabs/poseidon/issues/1075 | [ERROR] Exception in do_show: list index out of range
Traceback (most recent call last):
File "/poseidon/poseidon/helpers/exception_decor.py", line 19, in wrapper
return function(*args, **kwargs)
File "/poseidon/poseidon/cli/cli.py", line 687, in do_show
action = arg.split()[0]
IndexError: list index out of range | IndexError |
def do_show(self, arg):
"""Show things on the network based on filters"""
flags, arg = self.parser.get_flags(arg)
if arg:
action = arg.split()[0]
func_calls = {
"all": self.show_all,
"authors": self.show_authors,
"behavior": self.show_behavior,
... | def do_show(self, arg):
"""Show things on the network based on filters"""
flags, arg = self.parser.get_flags(arg)
action = arg.split()[0]
func_calls = {
"all": self.show_all,
"authors": self.show_authors,
"behavior": self.show_behavior,
"history": self.show_history,
... | https://github.com/IQTLabs/poseidon/issues/1075 | [ERROR] Exception in do_show: list index out of range
Traceback (most recent call last):
File "/poseidon/poseidon/helpers/exception_decor.py", line 19, in wrapper
return function(*args, **kwargs)
File "/poseidon/poseidon/cli/cli.py", line 687, in do_show
action = arg.split()[0]
IndexError: list index out of range | IndexError |
def display_results(
self, endpoints, fields, sort_by=0, max_width=0, unique=False, nonzero=False
):
matrix = []
fields_lookup = {
"id": (PoseidonShell._get_name, 0),
"mac address": (PoseidonShell._get_mac, 1),
"switch": (PoseidonShell._get_switch, 2),
"port": (PoseidonShell.... | def display_results(
self, endpoints, fields, sort_by=0, max_width=0, unique=False, nonzero=False
):
matrix = []
fields_lookup = {
"id": (PoseidonShell._get_name, 0),
"mac address": (PoseidonShell._get_mac, 1),
"switch": (PoseidonShell._get_switch, 2),
"port": (PoseidonShell.... | https://github.com/IQTLabs/poseidon/issues/1040 | poseidon$ record
Traceback (most recent call last):
File "/poseidon/poseidon/cli/cli.py", line 547, in <module>
PoseidonShell().cmdloop()
File "/usr/lib/python3.6/cmd.py", line 138, in cmdloop
stop = self.onecmd(line)
File "/usr/lib/python3.6/cmd.py", line 217, in onecmd
return func(arg)
File "/poseidon/poseidon/cli/cl... | FileNotFoundError |
def do_quit(self, arg):
"Stop the shell and exit: QUIT"
print("Thank you for using Poseidon")
self.close()
return True
| def do_quit(self, arg):
"Stop recording and exit: QUIT"
print("Thank you for using Poseidon")
self.close()
return True
| https://github.com/IQTLabs/poseidon/issues/1040 | poseidon$ record
Traceback (most recent call last):
File "/poseidon/poseidon/cli/cli.py", line 547, in <module>
PoseidonShell().cmdloop()
File "/usr/lib/python3.6/cmd.py", line 138, in cmdloop
stop = self.onecmd(line)
File "/usr/lib/python3.6/cmd.py", line 217, in onecmd
return func(arg)
File "/poseidon/poseidon/cli/cl... | FileNotFoundError |
def log(self, log_file):
mac_table = {}
if not log_file:
# default to FAUCET default
log_file = "/var/log/ryu/faucet/faucet.log"
# NOTE very fragile, prone to errors
try:
with open(log_file, "r") as f:
for line in f:
if "L2 learned" in line:
... | def log(self, log_file):
mac_table = {}
if not log_file:
# default to FAUCET default
log_file = "/var/log/ryu/faucet/faucet.log"
# NOTE very fragile, prone to errors
try:
with open(log_file, "r") as f:
for line in f:
if "L2 learned" in line:
... | https://github.com/IQTLabs/poseidon/issues/505 | 2018-03-05T11:55:18+00:00 172.17.0.1 plugin[788]: Traceback (most recent call last):
2018-03-05T11:55:18+00:00 172.17.0.1 plugin[788]: File "/tmp/poseidonWork/poseidon/poseidonMonitor/poseidonMonitor.py", line 538, in <module>
2018-03-05T11:55:18+00:00 172.17.0.1 plugin[788]: main(skip_rabbit=False)
2018-03-05T11... | ValueError |
def iterbatches(
self, batch_size=None, epochs=1, deterministic=False, pad_batches=False
):
"""Get an object that iterates over minibatches from the dataset.
Each minibatch is returned as a tuple of four numpy arrays: `(X,
y, w, ids)`.
Parameters
----------
batch_size: int, optional
... | def iterbatches(self, batch_size=None, epoch=0, deterministic=False, pad_batches=False):
"""Get an object that iterates over minibatches from the dataset.
Each minibatch is returned as a tuple of four numpy arrays: `(X,
y, w, ids)`.
Parameters
----------
batch_size: int, optional
Number ... | https://github.com/deepchem/deepchem/issues/1909 | Traceback (most recent call last):
File "test_fit_on_batch.py", line 23, in <module>
model.fit_on_batch(X, y, w)
File "/Users/bharath/Code/deepchem/deepchem/models/keras_model.py", line 428, in fit_on_batch
if not self.built:
AttributeError: 'GraphConvModel' object has no attribute 'built' | AttributeError |
def make_tf_dataset(
self, batch_size=100, epochs=1, deterministic=False, pad_batches=False
):
"""Create a tf.data.Dataset that iterates over the data in this Dataset.
Each value returned by the Dataset's iterator is a tuple of (X, y,
w) for one batch.
Parameters
----------
batch_size: int... | def make_tf_dataset(
self, batch_size=100, epochs=1, deterministic=False, pad_batches=False
):
"""Create a tf.data.Dataset that iterates over the data in this Dataset.
Each value returned by the Dataset's iterator is a tuple of (X, y,
w) for one batch.
Parameters
----------
batch_size: int... | https://github.com/deepchem/deepchem/issues/1909 | Traceback (most recent call last):
File "test_fit_on_batch.py", line 23, in <module>
model.fit_on_batch(X, y, w)
File "/Users/bharath/Code/deepchem/deepchem/models/keras_model.py", line 428, in fit_on_batch
if not self.built:
AttributeError: 'GraphConvModel' object has no attribute 'built' | AttributeError |
def gen_data():
for X, y, w, ids in self.iterbatches(
batch_size, epochs, deterministic, pad_batches
):
yield (X, y, w)
| def gen_data():
for epoch in range(epochs):
for X, y, w, ids in self.iterbatches(
batch_size, epoch, deterministic, pad_batches
):
yield (X, y, w)
| https://github.com/deepchem/deepchem/issues/1909 | Traceback (most recent call last):
File "test_fit_on_batch.py", line 23, in <module>
model.fit_on_batch(X, y, w)
File "/Users/bharath/Code/deepchem/deepchem/models/keras_model.py", line 428, in fit_on_batch
if not self.built:
AttributeError: 'GraphConvModel' object has no attribute 'built' | AttributeError |
def iterbatches(
self, batch_size=None, epochs=1, deterministic=False, pad_batches=False
):
"""Get an object that iterates over minibatches from the dataset.
Each minibatch is returned as a tuple of four numpy arrays: (X, y,
w, ids).
Parameters
----------
batch_size: int, optional
Nu... | def iterbatches(self, batch_size=None, epoch=0, deterministic=False, pad_batches=False):
"""Get an object that iterates over minibatches from the dataset.
Each minibatch is returned as a tuple of four numpy arrays: (X, y,
w, ids).
Parameters
----------
batch_size: int, optional
Number of... | https://github.com/deepchem/deepchem/issues/1909 | Traceback (most recent call last):
File "test_fit_on_batch.py", line 23, in <module>
model.fit_on_batch(X, y, w)
File "/Users/bharath/Code/deepchem/deepchem/models/keras_model.py", line 428, in fit_on_batch
if not self.built:
AttributeError: 'GraphConvModel' object has no attribute 'built' | AttributeError |
def iterate(dataset, batch_size, epochs, deterministic, pad_batches):
n_samples = dataset._X_shape[0]
if deterministic:
sample_perm = np.arange(n_samples)
if batch_size is None:
batch_size = n_samples
for epoch in range(epochs):
if not deterministic:
sample_perm = np.... | def iterate(dataset, batch_size, deterministic, pad_batches):
n_samples = dataset._X_shape[0]
if not deterministic:
sample_perm = np.random.permutation(n_samples)
else:
sample_perm = np.arange(n_samples)
if batch_size is None:
batch_size = n_samples
batch_idx = 0
num_batc... | https://github.com/deepchem/deepchem/issues/1909 | Traceback (most recent call last):
File "test_fit_on_batch.py", line 23, in <module>
model.fit_on_batch(X, y, w)
File "/Users/bharath/Code/deepchem/deepchem/models/keras_model.py", line 428, in fit_on_batch
if not self.built:
AttributeError: 'GraphConvModel' object has no attribute 'built' | AttributeError |
def iterbatches(
self, batch_size=None, epochs=1, deterministic=False, pad_batches=False
):
"""Get an object that iterates over minibatches from the dataset.
It is guaranteed that the number of batches returned is
`math.ceil(len(dataset)/batch_size)`. Each minibatch is returned as
a tuple of four n... | def iterbatches(self, batch_size=None, epoch=0, deterministic=False, pad_batches=False):
"""Get an object that iterates over minibatches from the dataset.
It is guaranteed that the number of batches returned is
`math.ceil(len(dataset)/batch_size)`. Each minibatch is returned as
a tuple of four numpy ar... | https://github.com/deepchem/deepchem/issues/1909 | Traceback (most recent call last):
File "test_fit_on_batch.py", line 23, in <module>
model.fit_on_batch(X, y, w)
File "/Users/bharath/Code/deepchem/deepchem/models/keras_model.py", line 428, in fit_on_batch
if not self.built:
AttributeError: 'GraphConvModel' object has no attribute 'built' | AttributeError |
def _iterbatches_from_shards(
self,
shard_indices,
batch_size=None,
epochs=1,
deterministic=False,
pad_batches=False,
):
"""Get an object that iterates over batches from a restricted set of shards."""
def iterate(dataset, batch_size, epochs):
num_shards = len(shard_indices)
... | def _iterbatches_from_shards(
self, shard_indices, batch_size=None, deterministic=False, pad_batches=False
):
"""Get an object that iterates over batches from a restricted set of shards."""
def iterate(dataset, batch_size):
num_shards = len(shard_indices)
if not deterministic:
s... | https://github.com/deepchem/deepchem/issues/1909 | Traceback (most recent call last):
File "test_fit_on_batch.py", line 23, in <module>
model.fit_on_batch(X, y, w)
File "/Users/bharath/Code/deepchem/deepchem/models/keras_model.py", line 428, in fit_on_batch
if not self.built:
AttributeError: 'GraphConvModel' object has no attribute 'built' | AttributeError |
def iterate(dataset, batch_size, epochs):
num_shards = len(shard_indices)
if deterministic:
shard_perm = np.arange(num_shards)
# (ytz): Depending on the application, thread-based pools may be faster
# than process based pools, since process based pools need to pickle/serialize
# objects as ... | def iterate(dataset, batch_size):
num_shards = len(shard_indices)
if not deterministic:
shard_perm = np.random.permutation(num_shards)
else:
shard_perm = np.arange(num_shards)
# (ytz): Depending on the application, thread-based pools may be faster
# than process based pools, since p... | https://github.com/deepchem/deepchem/issues/1909 | Traceback (most recent call last):
File "test_fit_on_batch.py", line 23, in <module>
model.fit_on_batch(X, y, w)
File "/Users/bharath/Code/deepchem/deepchem/models/keras_model.py", line 428, in fit_on_batch
if not self.built:
AttributeError: 'GraphConvModel' object has no attribute 'built' | AttributeError |
def iterbatches(
self, batch_size=None, epochs=1, deterministic=False, pad_batches=False
):
"""Get an object that iterates over minibatches from the dataset.
Each minibatch is returned as a tuple of four numpy arrays: (X, y,
w, ids).
"""
def iterate(dataset, batch_size, epochs, deterministic, ... | def iterbatches(self, batch_size=None, epoch=0, deterministic=False, pad_batches=False):
"""Get an object that iterates over minibatches from the dataset.
Each minibatch is returned as a tuple of four numpy arrays: (X, y,
w, ids).
"""
def iterate(dataset, batch_size, deterministic, pad_batches):
... | https://github.com/deepchem/deepchem/issues/1909 | Traceback (most recent call last):
File "test_fit_on_batch.py", line 23, in <module>
model.fit_on_batch(X, y, w)
File "/Users/bharath/Code/deepchem/deepchem/models/keras_model.py", line 428, in fit_on_batch
if not self.built:
AttributeError: 'GraphConvModel' object has no attribute 'built' | AttributeError |
def iterbatches(self, **kwargs):
"""Loop through all internal datasets in the same order.
Parameters
----------
batch_size: int
Number of samples from each dataset to return
epochs: int
Number of times to loop through the datasets
pad_batches: boolean
Should all batches==batch... | def iterbatches(self, **kwargs):
"""Loop through all internal datasets in the same order.
Parameters
----------
batch_size: int
Number of samples from each dataset to return
epoch: int
Number of times to loop through the datasets
pad_batches: boolean
Should all batches==batch_... | https://github.com/deepchem/deepchem/issues/1909 | Traceback (most recent call last):
File "test_fit_on_batch.py", line 23, in <module>
model.fit_on_batch(X, y, w)
File "/Users/bharath/Code/deepchem/deepchem/models/keras_model.py", line 428, in fit_on_batch
if not self.built:
AttributeError: 'GraphConvModel' object has no attribute 'built' | AttributeError |
def fit_on_batch(
self,
X,
y,
w,
variables=None,
loss=None,
callbacks=[],
checkpoint=True,
max_checkpoints_to_keep=5,
):
"""Perform a single step of training.
Parameters
----------
X: ndarray
the inputs for the batch
y: ndarray
the labels for the batc... | def fit_on_batch(self, X, y, w, variables=None, loss=None, callbacks=[]):
"""Perform a single step of training.
Parameters
----------
X: ndarray
the inputs for the batch
y: ndarray
the labels for the batch
w: ndarray
the weights for the batch
variables: list of tf.Variable... | https://github.com/deepchem/deepchem/issues/1909 | Traceback (most recent call last):
File "test_fit_on_batch.py", line 23, in <module>
model.fit_on_batch(X, y, w)
File "/Users/bharath/Code/deepchem/deepchem/models/keras_model.py", line 428, in fit_on_batch
if not self.built:
AttributeError: 'GraphConvModel' object has no attribute 'built' | AttributeError |
def ensure_not_chunked(arrow_array):
if isinstance(arrow_array, pa.ChunkedArray):
if len(arrow_array.chunks) == 1:
return arrow_array.chunks[0]
table = pa.Table.from_arrays([arrow_array], ["single"])
table_concat = table.combine_chunks()
column = table_concat.columns[0]
... | def ensure_not_chunked(arrow_array):
if isinstance(arrow_array, pa.ChunkedArray):
if len(arrow_array.chunks) == 0:
return arrow_array.chunks[0]
table = pa.Table.from_arrays([arrow_array], ["single"])
table_concat = table.combine_chunks()
column = table_concat.columns[0]
... | https://github.com/vaexio/vaex/issues/1101 | AttributeError Traceback (most recent call last)
<ipython-input-16-cc5013060237> in <module>
----> 1 df.column_a.mean()
~/.conda-envs/datalakeutils/lib/python3.6/site-packages/vaex/expression.py in mean(self, binby, limits, shape, selection, delay, progress)
550 del kwargs['self']
55... | AttributeError |
def combine_missing(a, b):
# return a copy of a with missing values of a and b combined
if a.null_count > 0 or b.null_count > 0:
a, b = vaex.arrow.convert.align(a, b)
if isinstance(a, pa.ChunkedArray):
# divide and conquer
assert isinstance(b, pa.ChunkedArray)
... | def combine_missing(a, b):
assert a.offset == 0
if a.null_count > 0 or b.null_count > 0:
# not optimal
nulls = pc.invert(pc.or_(a.is_null(), b.is_null()))
assert nulls.offset == 0
nulls_buffer = nulls.buffers()[1]
# this is not the case: no reason why it should be (TODO: ... | https://github.com/vaexio/vaex/issues/1101 | AttributeError Traceback (most recent call last)
<ipython-input-16-cc5013060237> in <module>
----> 1 df.column_a.mean()
~/.conda-envs/datalakeutils/lib/python3.6/site-packages/vaex/expression.py in mean(self, binby, limits, shape, selection, delay, progress)
550 del kwargs['self']
55... | AttributeError |
def open(path, fs_options):
source = vaex.file.open_for_arrow(
path=path, mode="rb", fs_options=fs_options, mmap=True
)
file_signature = source.read(6)
is_arrow_file = file_signature == b"ARROW1"
source.seek(0)
if is_arrow_file:
reader = pa.ipc.open_file(source)
# for so... | def open(path, fs_options):
source = vaex.file.open_for_arrow(
path=path, mode="rb", fs_options=fs_options, mmap=True
)
try:
# first we try if it opens as stream
reader = pa.ipc.open_stream(source)
except pa.lib.ArrowInvalid:
# if not, we open as file
reader = pa.... | https://github.com/vaexio/vaex/issues/786 | pyarrow.ipc.open_stream("feat.arrow")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/me/.local/lib/python3.8/site-packages/pyarrow/ipc.py", line 146, in open_stream
return RecordBatchStreamReader(source)
File "/home/me/.local/lib/python3.8/site-packages/pyarrow/ipc.py", line 62, in _... | OSError |
def export_arrow(
self,
to,
progress=None,
chunk_size=default_chunk_size,
parallel=True,
reduce_large=True,
fs_options=None,
as_stream=True,
):
"""Exports the DataFrame to a file of stream written with arrow
:param to: filename, file object, or :py:data:`pyarrow.RecordBatchStrea... | def export_arrow(
self,
to,
progress=None,
chunk_size=default_chunk_size,
parallel=True,
reduce_large=True,
fs_options=None,
):
"""Exports the DataFrame to a file of stream written with arrow
:param to: filename, file object, or :py:data:`pyarrow.RecordBatchStreamWriter`, py:data:`p... | https://github.com/vaexio/vaex/issues/786 | pyarrow.ipc.open_stream("feat.arrow")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/me/.local/lib/python3.8/site-packages/pyarrow/ipc.py", line 146, in open_stream
return RecordBatchStreamReader(source)
File "/home/me/.local/lib/python3.8/site-packages/pyarrow/ipc.py", line 62, in _... | OSError |
def validate_expression(expr, variable_set, function_set=[], names=None):
global last_func
names = names if names is not None else []
if isinstance(expr, six.string_types):
node = ast.parse(expr)
if len(node.body) != 1:
raise ValueError("expected one expression, got %r" % len(nod... | def validate_expression(expr, variable_set, function_set=[], names=None):
global last_func
names = names if names is not None else []
if isinstance(expr, six.string_types):
node = ast.parse(expr)
if len(node.body) != 1:
raise ValueError("expected one expression, got %r" % len(nod... | https://github.com/vaexio/vaex/issues/949 | ValueError Traceback (most recent call last)
<ipython-input-59-b91ac46b6ba4> in <module>
----> 1 df.groupby(vaex.BinnerTime(df.字段1)).agg('count')
C:\ProgramData\anaconda3\lib\site-packages\vaex\groupby.py in __init__(self, expression, resolution, df, every)
57 self.begin_name = s... | ValueError |
def _as_table(self, i1, i2, j1=None, j2=None, format="html"):
from .formatting import _format_value
parts = [] # """<div>%s (length=%d)</div>""" % (self.name, len(self))]
parts += ["<table class='table-striped'>"]
aliases_reverse = {value: key for key, value in self._column_aliases.items()}
# we ... | def _as_table(self, i1, i2, j1=None, j2=None, format="html"):
from .formatting import _format_value
parts = [] # """<div>%s (length=%d)</div>""" % (self.name, len(self))]
parts += ["<table class='table-striped'>"]
aliases_reverse = {value: key for key, value in self._column_aliases.items()}
colum... | https://github.com/vaexio/vaex/issues/378 | could not convert column 0, error: TypeError('getattr(): attribute name must be string',), will try to convert it to string
Giving up column 0, error: TypeError('getattr(): attribute name must be string',)
could not convert column 1, error: TypeError('getattr(): attribute name must be string',), will try to convert it ... | AttributeError |
def get_column_names(
self, virtual=True, strings=True, hidden=False, regex=None, alias=True
):
"""Return a list of column names
Example:
>>> import vaex
>>> df = vaex.from_scalars(x=1, x2=2, y=3, s='string')
>>> df['r'] = (df.x**2 + df.y**2)**2
>>> df.get_column_names()
['x', 'x2', 'y... | def get_column_names(self, virtual=True, strings=True, hidden=False, regex=None):
"""Return a list of column names
Example:
>>> import vaex
>>> df = vaex.from_scalars(x=1, x2=2, y=3, s='string')
>>> df['r'] = (df.x**2 + df.y**2)**2
>>> df.get_column_names()
['x', 'x2', 'y', 's', 'r']
>... | https://github.com/vaexio/vaex/issues/378 | could not convert column 0, error: TypeError('getattr(): attribute name must be string',), will try to convert it to string
Giving up column 0, error: TypeError('getattr(): attribute name must be string',)
could not convert column 1, error: TypeError('getattr(): attribute name must be string',), will try to convert it ... | AttributeError |
def copy(self, column_names=None, virtual=True):
df = DataFrameArrays()
df._length_unfiltered = self._length_unfiltered
df._length_original = self._length_original
df._cached_filtered_length = self._cached_filtered_length
df._index_end = self._index_end
df._index_start = self._index_start
df... | def copy(self, column_names=None, virtual=True):
df = DataFrameArrays()
df._length_unfiltered = self._length_unfiltered
df._length_original = self._length_original
df._cached_filtered_length = self._cached_filtered_length
df._index_end = self._index_end
df._index_start = self._index_start
df... | https://github.com/vaexio/vaex/issues/378 | could not convert column 0, error: TypeError('getattr(): attribute name must be string',), will try to convert it to string
Giving up column 0, error: TypeError('getattr(): attribute name must be string',)
could not convert column 1, error: TypeError('getattr(): attribute name must be string',), will try to convert it ... | AttributeError |
def export_hdf5(
dataset,
path,
column_names=None,
byteorder="=",
shuffle=False,
selection=False,
progress=None,
virtual=True,
sort=None,
ascending=True,
):
"""
:param DatasetLocal dataset: dataset to export
:param str path: path for file
:param lis[str] column_na... | def export_hdf5(
dataset,
path,
column_names=None,
byteorder="=",
shuffle=False,
selection=False,
progress=None,
virtual=True,
sort=None,
ascending=True,
):
"""
:param DatasetLocal dataset: dataset to export
:param str path: path for file
:param lis[str] column_na... | https://github.com/vaexio/vaex/issues/378 | could not convert column 0, error: TypeError('getattr(): attribute name must be string',), will try to convert it to string
Giving up column 0, error: TypeError('getattr(): attribute name must be string',)
could not convert column 1, error: TypeError('getattr(): attribute name must be string',), will try to convert it ... | AttributeError |
def forModule(cls, name):
"""
Return an instance of this class representing the module of the given name. If the given
module name is "__main__", it will be translated to the actual file name of the top-level
script without the .py or .pyc extension. This method assumes that the module with the
spec... | def forModule(cls, name):
"""
Return an instance of this class representing the module of the given name. If the given
module name is "__main__", it will be translated to the actual file name of the top-level
script without the .py or .pyc extension. This method assumes that the module with the
spec... | https://github.com/DataBiosphere/toil/issues/1232 | Traceback (most recent call last):
File "/root/toil-scripts/.env/bin/toil-bwa", line 11, in <module>
load_entry_point('toil-scripts==2.1.0a1', 'console_scripts', 'toil-bwa')()
File "build/bdist.linux-x86_64/egg/toil_scripts/bwa_alignment/bwa_alignment.py", line 292, in main
File "/usr/local/lib/python2.7/dist-packages/... | AssertionError |
def destroy(self):
self._bind()
for name in "jobItems", "jobFileIDs", "files", "statsFiles", "statsFileIDs":
resource = getattr(self, name)
if resource is not None:
if isinstance(resource, AzureTable):
resource.delete_table()
elif isinstance(resource, Azur... | def destroy(self):
for name in "jobItems", "jobFileIDs", "files", "statsFiles", "statsFileIDs":
resource = getattr(self, name)
if resource is not None:
if isinstance(resource, AzureTable):
resource.delete_table()
elif isinstance(resource, AzureBlobContainer):
... | https://github.com/DataBiosphere/toil/issues/1125 | anovak@amn2master1:~/hgvm-graph-bakeoff-evaluations$ toil clean azure:hgvm:amntree
amn2master1 2016-08-29 20:12:58,971 MainThread INFO toil.lib.bioio: Logging set at level: INFO
amn2master1 2016-08-29 20:12:58,971 MainThread INFO toil.utils.toilClean: Attempting to delete the job store
amn2master1 2016-08-29 20:12:59,0... | toil.jobStores.abstractJobStore.JobStoreExistsException |
def _setupHotDeployment(self, userScript=None):
"""
Determine the user script, save it to the job store and inject a reference to the saved
copy into the batch system such that it can hot-deploy the resource on the worker
nodes.
:param toil.resource.ModuleDescriptor userScript: the module descripto... | def _setupHotDeployment(self, userScript=None):
"""
Determine the user script, save it to the job store and inject a reference to the saved
copy into the batch system such that it can hot-deploy the resource on the worker
nodes.
:param toil.resource.ModuleDescriptor userScript: the module descripto... | https://github.com/DataBiosphere/toil/issues/668 | WARNING:toil.leader:e8f55793-15ca-471a-947f-38936f917bba: ---TOIL WORKER OUTPUT LOG---
WARNING:toil.leader:e8f55793-15ca-471a-947f-38936f917bba: Traceback (most recent call last):
WARNING:toil.leader:e8f55793-15ca-471a-947f-38936f917bba: File "/usr/local/lib/python2.7/dist-packages/toil/worker.py", line 266,... | HTTPError |
def create(cls, jobStore, leaderPath):
"""
Saves the content of the file or directory at the given path to the given job store
and returns a resource object representing that content for the purpose of obtaining it
again at a generic, public URL. This method should be invoked on the leader node.
:p... | def create(cls, jobStore, leaderPath):
"""
Saves the content of the file or directory at the given path to the given job store
and returns a resource object representing that content for the purpose of obtaining it
again at a generic, public URL. This method should be invoked on the leader node.
:r... | https://github.com/DataBiosphere/toil/issues/668 | WARNING:toil.leader:e8f55793-15ca-471a-947f-38936f917bba: ---TOIL WORKER OUTPUT LOG---
WARNING:toil.leader:e8f55793-15ca-471a-947f-38936f917bba: Traceback (most recent call last):
WARNING:toil.leader:e8f55793-15ca-471a-947f-38936f917bba: File "/usr/local/lib/python2.7/dist-packages/toil/worker.py", line 266,... | HTTPError |
def defer(self, function, *args, **kwargs):
"""
Register a deferred function, i.e. a callable that will be invoked after the current
attempt at running this job concludes. A job attempt is said to conclude when the job
function (or the :meth:`Job.run` method for class-based jobs) returns, raises an
... | def defer(self, callable, *args, **kwargs):
"""
Register a deferred function, i.e. a callable that will be invoked after the current attempt
at running this job concludes. A job attempt is said to conclude when the job function (or
the Job.run method for class-based jobs) returns, raises an exception or... | https://github.com/DataBiosphere/toil/issues/1308 | ---TOIL WORKER OUTPUT LOG---
f006bc8b-195a-45b8-8e35-2291a2985f14 Next available file descriptor: 8
f006bc8b-195a-45b8-8e35-2291a2985f14 DEBUG:toil.worker:Next available file descriptor: 8
f006bc8b-195a-45b8-8e35-2291a2985f14 DEBUG:toil.jobStores.aws.jobStore:Loaded job f006bc8b-195a-45b8-8e35-2291a2985f14
f00... | ImportError |
def _loadUserModule(cls, userModule):
"""
Imports and returns the module object represented by the given module descriptor.
:type userModule: ModuleDescriptor
"""
return userModule.load()
| def _loadUserModule(cls, userModule):
"""
Imports and returns the module object represented by the given module descriptor.
:type userModule: ModuleDescriptor
"""
if not userModule.belongsToToil:
userModule = userModule.localize()
if userModule.dirPath not in sys.path:
sys.path.... | https://github.com/DataBiosphere/toil/issues/1308 | ---TOIL WORKER OUTPUT LOG---
f006bc8b-195a-45b8-8e35-2291a2985f14 Next available file descriptor: 8
f006bc8b-195a-45b8-8e35-2291a2985f14 DEBUG:toil.worker:Next available file descriptor: 8
f006bc8b-195a-45b8-8e35-2291a2985f14 DEBUG:toil.jobStores.aws.jobStore:Loaded job f006bc8b-195a-45b8-8e35-2291a2985f14
f00... | ImportError |
def _jobStoreClasses(self):
"""
A list of concrete AbstractJobStore implementations whose dependencies are installed.
:rtype: list[AbstractJobStore]
"""
jobStoreClassNames = (
"toil.jobStores.azureJobStore.AzureJobStore",
"toil.jobStores.fileJobStore.FileJobStore",
"toil.job... | def _jobStoreClasses(self):
"""
A list of concrete AbstractJobStore implementations whose dependencies are installed.
:rtype: list[AbstractJobStore]
"""
jobStoreClassNames = (
"toil.jobStores.azureJobStore.AzureJobStore",
"toil.jobStores.fileJobStore.FileJobStore",
"toil.job... | https://github.com/DataBiosphere/toil/issues/1308 | ---TOIL WORKER OUTPUT LOG---
f006bc8b-195a-45b8-8e35-2291a2985f14 Next available file descriptor: 8
f006bc8b-195a-45b8-8e35-2291a2985f14 DEBUG:toil.worker:Next available file descriptor: 8
f006bc8b-195a-45b8-8e35-2291a2985f14 DEBUG:toil.jobStores.aws.jobStore:Loaded job f006bc8b-195a-45b8-8e35-2291a2985f14
f00... | ImportError |
def processTotallyFailedJob(self, jobWrapper):
"""
Processes a totally failed job.
"""
# Mark job as a totally failed job
self.toilState.totalFailedJobs.add(jobWrapper.jobStoreID)
if jobWrapper.jobStoreID in self.toilState.serviceJobStoreIDToPredecessorJob: # Is
# a service job
... | def processTotallyFailedJob(self, jobWrapper):
"""
Processes a totally failed job.
"""
# Mark job as a totally failed job
self.toilState.totalFailedJobs.add(jobWrapper.jobStoreID)
if jobWrapper.jobStoreID in self.toilState.serviceJobStoreIDToPredecessorJob: # Is
# a service job
... | https://github.com/DataBiosphere/toil/issues/1122 | kunkel 2016-08-26 11:18:31,313 MainThread WARNING toil.leader: The jobWrapper seems to have left a log file, indicating failure: B/U/jobWBMw6I
kunkel 2016-08-26 11:18:31,313 MainThread WARNING toil.leader: Reporting file: B/U/jobWBMw6I
kunkel 2016-08-26 11:18:31,313 MainThread WARNING toil.leader: B/U/jobWBMw6I: ---T... | AssertionError |
def _updatePredecessorStatus(self, jobStoreID):
"""
Update status of predecessors for finished successor job.
"""
if jobStoreID in self.toilState.serviceJobStoreIDToPredecessorJob:
# Is a service job
predecessorJob = self.toilState.serviceJobStoreIDToPredecessorJob.pop(
jobSt... | def _updatePredecessorStatus(self, jobStoreID):
"""
Update status of a predecessor for finished successor job.
"""
if jobStoreID in self.toilState.serviceJobStoreIDToPredecessorJob:
# Is a service job
predecessorJob = self.toilState.serviceJobStoreIDToPredecessorJob.pop(
jobS... | https://github.com/DataBiosphere/toil/issues/1122 | kunkel 2016-08-26 11:18:31,313 MainThread WARNING toil.leader: The jobWrapper seems to have left a log file, indicating failure: B/U/jobWBMw6I
kunkel 2016-08-26 11:18:31,313 MainThread WARNING toil.leader: Reporting file: B/U/jobWBMw6I
kunkel 2016-08-26 11:18:31,313 MainThread WARNING toil.leader: B/U/jobWBMw6I: ---T... | AssertionError |
def __init__(self, jobStore, rootJob, jobCache=None):
# This is a hash of jobs, referenced by jobStoreID, to their predecessor jobs.
self.successorJobStoreIDToPredecessorJobs = {}
# Hash of jobStoreIDs to counts of numbers of successors issued.
# There are no entries for jobs
# without successors i... | def __init__(self, jobStore, rootJob, jobCache=None):
# This is a hash of jobs, referenced by jobStoreID, to their predecessor jobs.
self.successorJobStoreIDToPredecessorJobs = {}
# Hash of jobStoreIDs to counts of numbers of successors issued.
# There are no entries for jobs
# without successors i... | https://github.com/DataBiosphere/toil/issues/1122 | kunkel 2016-08-26 11:18:31,313 MainThread WARNING toil.leader: The jobWrapper seems to have left a log file, indicating failure: B/U/jobWBMw6I
kunkel 2016-08-26 11:18:31,313 MainThread WARNING toil.leader: Reporting file: B/U/jobWBMw6I
kunkel 2016-08-26 11:18:31,313 MainThread WARNING toil.leader: B/U/jobWBMw6I: ---T... | AssertionError |
def _buildToilState(self, jobWrapper, jobStore, jobCache=None):
"""
Traverses tree of jobs from the root jobWrapper (rootJob) building the
ToilState class.
If jobCache is passed, it must be a dict from job ID to JobWrapper
object. Jobs will be loaded from the cache (which can be downloaded from
... | def _buildToilState(self, jobWrapper, jobStore, jobCache=None):
"""
Traverses tree of jobs from the root jobWrapper (rootJob) building the
ToilState class.
If jobCache is passed, it must be a dict from job ID to JobWrapper
object. Jobs will be loaded from the cache (which can be downloaded from
... | https://github.com/DataBiosphere/toil/issues/1122 | kunkel 2016-08-26 11:18:31,313 MainThread WARNING toil.leader: The jobWrapper seems to have left a log file, indicating failure: B/U/jobWBMw6I
kunkel 2016-08-26 11:18:31,313 MainThread WARNING toil.leader: Reporting file: B/U/jobWBMw6I
kunkel 2016-08-26 11:18:31,313 MainThread WARNING toil.leader: B/U/jobWBMw6I: ---T... | AssertionError |
def innerLoop(
jobStore,
config,
batchSystem,
toilState,
jobBatcher,
serviceManager,
statsAndLogging,
):
"""
:param toil.jobStores.abstractJobStore.AbstractJobStore jobStore:
:param toil.common.Config config:
:param toil.batchSystems.abstractBatchSystem.AbstractBatchSystem ba... | def innerLoop(
jobStore,
config,
batchSystem,
toilState,
jobBatcher,
serviceManager,
statsAndLogging,
):
"""
:param toil.jobStores.abstractJobStore.AbstractJobStore jobStore:
:param toil.common.Config config:
:param toil.batchSystems.abstractBatchSystem.AbstractBatchSystem ba... | https://github.com/DataBiosphere/toil/issues/1122 | kunkel 2016-08-26 11:18:31,313 MainThread WARNING toil.leader: The jobWrapper seems to have left a log file, indicating failure: B/U/jobWBMw6I
kunkel 2016-08-26 11:18:31,313 MainThread WARNING toil.leader: Reporting file: B/U/jobWBMw6I
kunkel 2016-08-26 11:18:31,313 MainThread WARNING toil.leader: B/U/jobWBMw6I: ---T... | AssertionError |
def distVersion():
"""
The distribution version identifying a published release on PyPI.
"""
from pkg_resources import parse_version
build_number = buildNumber()
parsedBaseVersion = parse_version(baseVersion)
if isinstance(parsedBaseVersion, tuple):
raise RuntimeError(
"... | def distVersion():
"""
The distribution version identifying a published release on PyPI.
"""
from pkg_resources import parse_version
build_number = buildNumber()
if build_number is not None and parse_version(baseVersion).is_prerelease:
return baseVersion + ".dev" + build_number
else... | https://github.com/DataBiosphere/toil/issues/1323 | Traceback (most recent call last):
File "version_template.py", line 137, in <module>
_main()
File "version_template.py", line 133, in _main
sys.stdout.write(expand_(*sys.argv[1:]))
File "version_template.py", line 128, in expand_
return resolve(name)
File "version_template.py", line 122, in resolve
v = v()
File "versio... | AttributeError |
def supportsHotDeployment(cls):
"""
Whether this batch system supports hot deployment of the user script itself. If it does,
the :meth:`setUserScript` can be invoked to set the resource object representing the user
script.
Note to implementors: If your implementation returns True here, it should al... | def supportsHotDeployment(cls):
"""
Whether this batch system supports hot deployment of the user script itself. If it does,
the __init__ method will have to accept an optional parameter in addition to the declared
ones: userScript. It will be an instance of toil.common.HotDeployedResource that
repr... | https://github.com/DataBiosphere/toil/issues/1207 | WARNING:toil.leader:fc48619f_e141_4211_8ab9_3004f95b16df: ---TOIL WORKER OUTPUT LOG---
WARNING:toil.leader:fc48619f_e141_4211_8ab9_3004f95b16df: Next available file descriptor: 10
WARNING:toil.leader:fc48619f_e141_4211_8ab9_3004f95b16df: DEBUG:toil.worker:Next available file descriptor: 10
WARNING:toil.leader:fc4... | ImportError |
def start(self, rootJob):
"""
Invoke a Toil workflow with the given job as the root for an initial run. This method
must be called in the body of a ``with Toil(...) as toil:`` statement. This method should
not be called more than once for a workflow that has not finished.
:param toil.job.Job rootJo... | def start(self, rootJob):
"""
Invoke a Toil workflow with the given job as the root for an initial run. This method
must be called in the body of a ``with Toil(...) as toil:`` statement. This method should
not be called more than once for a workflow that has not finished.
:param toil.job.Job rootJo... | https://github.com/DataBiosphere/toil/issues/1207 | WARNING:toil.leader:fc48619f_e141_4211_8ab9_3004f95b16df: ---TOIL WORKER OUTPUT LOG---
WARNING:toil.leader:fc48619f_e141_4211_8ab9_3004f95b16df: Next available file descriptor: 10
WARNING:toil.leader:fc48619f_e141_4211_8ab9_3004f95b16df: DEBUG:toil.worker:Next available file descriptor: 10
WARNING:toil.leader:fc4... | ImportError |
def restart(self):
"""
Restarts a workflow that has been interrupted. This method should be called if and only
if a workflow has previously been started and has not finished.
:return: The root job's return value
"""
self._assertContextManagerUsed()
if not self.config.restart:
raise ... | def restart(self):
"""
Restarts a workflow that has been interrupted. This method should be called if and only
if a workflow has previously been started and has not finished.
:return: The root job's return value
"""
self._assertContextManagerUsed()
if not self.config.restart:
raise ... | https://github.com/DataBiosphere/toil/issues/1207 | WARNING:toil.leader:fc48619f_e141_4211_8ab9_3004f95b16df: ---TOIL WORKER OUTPUT LOG---
WARNING:toil.leader:fc48619f_e141_4211_8ab9_3004f95b16df: Next available file descriptor: 10
WARNING:toil.leader:fc48619f_e141_4211_8ab9_3004f95b16df: DEBUG:toil.worker:Next available file descriptor: 10
WARNING:toil.leader:fc4... | ImportError |
def createBatchSystem(config):
"""
Creates an instance of the batch system specified in the given config.
:param toil.common.Config config: the current configuration
:rtype: batchSystems.abstractBatchSystem.AbstractBatchSystem
:return: an instance of a concrete subclass of AbstractBatchSystem
... | def createBatchSystem(config, jobStore=None, userScript=None):
"""
Creates an instance of the batch system specified in the given config. If a job store and
a user script are given then the user script can be hot deployed into the workflow.
:param toil.common.Config config: the current configuration
... | https://github.com/DataBiosphere/toil/issues/1207 | WARNING:toil.leader:fc48619f_e141_4211_8ab9_3004f95b16df: ---TOIL WORKER OUTPUT LOG---
WARNING:toil.leader:fc48619f_e141_4211_8ab9_3004f95b16df: Next available file descriptor: 10
WARNING:toil.leader:fc48619f_e141_4211_8ab9_3004f95b16df: DEBUG:toil.worker:Next available file descriptor: 10
WARNING:toil.leader:fc4... | ImportError |
def supportsHotDeployment(cls):
"""
Whether this batch system supports hot deployment of the user script itself. If it does,
the :meth:`setUserScript` can be invoked to set the resource object representing the user
script.
Note to implementors: If your implementation returns True here, it should al... | def supportsHotDeployment(cls):
"""
Whether this batch system supports hot deployment of the user script and toil itself. If
it does, the __init__ method will have to accept two optional parameters in addition to
the declared ones: userScript and toilDistribution. Both will be instances of
toil.comm... | https://github.com/DataBiosphere/toil/issues/1207 | WARNING:toil.leader:fc48619f_e141_4211_8ab9_3004f95b16df: ---TOIL WORKER OUTPUT LOG---
WARNING:toil.leader:fc48619f_e141_4211_8ab9_3004f95b16df: Next available file descriptor: 10
WARNING:toil.leader:fc48619f_e141_4211_8ab9_3004f95b16df: DEBUG:toil.worker:Next available file descriptor: 10
WARNING:toil.leader:fc4... | ImportError |
def issueBatchJob(self, command, memory, cores, disk, preemptable):
"""
Issues the following command returning a unique jobID. Command is the string to run, memory
is an int giving the number of bytes the job needs to run in and cores is the number of cpus
needed for the job and error-file is the path o... | def issueBatchJob(self, command, memory, cores, disk, preemptable):
"""
Issues the following command returning a unique jobID. Command is the string to run, memory
is an int giving the number of bytes the job needs to run in and cores is the number of cpus
needed for the job and error-file is the path o... | https://github.com/DataBiosphere/toil/issues/1207 | WARNING:toil.leader:fc48619f_e141_4211_8ab9_3004f95b16df: ---TOIL WORKER OUTPUT LOG---
WARNING:toil.leader:fc48619f_e141_4211_8ab9_3004f95b16df: Next available file descriptor: 10
WARNING:toil.leader:fc48619f_e141_4211_8ab9_3004f95b16df: DEBUG:toil.worker:Next available file descriptor: 10
WARNING:toil.leader:fc4... | ImportError |
def __init__(self, options):
"""
Initialize a Toil object from the given options. Note that this is very light-weight and
that the bulk of the work is done when the context is entered.
:param argparse.Namespace options: command line options specified by the user
"""
super(Toil, self).__init__()... | def __init__(self, options):
"""
Initialize a Toil object from the given options. Note that this is very light-weight and
that the bulk of the work is done when the context is entered.
:param argparse.Namespace options: command line options specified by the user
"""
super(Toil, self).__init__()... | https://github.com/DataBiosphere/toil/issues/1207 | WARNING:toil.leader:fc48619f_e141_4211_8ab9_3004f95b16df: ---TOIL WORKER OUTPUT LOG---
WARNING:toil.leader:fc48619f_e141_4211_8ab9_3004f95b16df: Next available file descriptor: 10
WARNING:toil.leader:fc48619f_e141_4211_8ab9_3004f95b16df: DEBUG:toil.worker:Next available file descriptor: 10
WARNING:toil.leader:fc4... | ImportError |
def create(cls, jobStore, leaderPath):
"""
Saves the content of the file or directory at the given path to the given job store
and returns a resource object representing that content for the purpose of obtaining it
again at a generic, public URL. This method should be invoked on the leader node.
:r... | def create(cls, jobStore, leaderPath):
"""
Saves the content of the file or directory at the given path to the given job store
and returns a resource object representing that content for the purpose of obtaining it
again at a generic, public URL. This method should be invoked on the leader node.
:r... | https://github.com/DataBiosphere/toil/issues/1207 | WARNING:toil.leader:fc48619f_e141_4211_8ab9_3004f95b16df: ---TOIL WORKER OUTPUT LOG---
WARNING:toil.leader:fc48619f_e141_4211_8ab9_3004f95b16df: Next available file descriptor: 10
WARNING:toil.leader:fc48619f_e141_4211_8ab9_3004f95b16df: DEBUG:toil.worker:Next available file descriptor: 10
WARNING:toil.leader:fc4... | ImportError |
def _load(cls, path):
"""
Returns a readable file-like object for the given path. If the path refers to a regular
file, this method returns the result of invoking open() on the given path. If the path
refers to a directory, this method returns a ZIP file with all files and subdirectories
in the dire... | def _load(cls, path):
"""
Returns a readable file-like object for the given path. If the path refers to a regular
file, this method returns the result of invoking open() on the given path. If the path
refers to a directory, this method returns a ZIP file with all files and subdirectories
in the dire... | https://github.com/DataBiosphere/toil/issues/1207 | WARNING:toil.leader:fc48619f_e141_4211_8ab9_3004f95b16df: ---TOIL WORKER OUTPUT LOG---
WARNING:toil.leader:fc48619f_e141_4211_8ab9_3004f95b16df: Next available file descriptor: 10
WARNING:toil.leader:fc48619f_e141_4211_8ab9_3004f95b16df: DEBUG:toil.worker:Next available file descriptor: 10
WARNING:toil.leader:fc4... | ImportError |
def getJobStore(cls, locator):
"""
Create an instance of the concrete job store implementation that matches the given locator.
:param str locator: The location of the job store to be represent by the instance
:return: an instance of a concrete subclass of AbstractJobStore
:rtype: toil.jobStores.ab... | def getJobStore(cls, locator):
"""
Create an instance of the concrete job store implementation that matches the given locator.
:param str locator: The location of the job store to be represent by the instance
:return: an instance of a concrete subclass of AbstractJobStore
:rtype: toil.jobStores.ab... | https://github.com/DataBiosphere/toil/issues/1127 | WARNING:toil.leader:The jobWrapper seems to have left a log file, indicating failure: 52d0d400_4080_480d_9c53_e7a7624b20e9
WARNING:toil.leader:Reporting file: 52d0d400_4080_480d_9c53_e7a7624b20e9
WARNING:toil.leader:52d0d400_4080_480d_9c53_e7a7624b20e9: ---TOIL WORKER OUTPUT LOG---
WARNING:toil.leader:52d0d400_40... | ImportError |
def createBatchSystem(config, jobStore=None, userScript=None):
"""
Creates an instance of the batch system specified in the given config. If a job store and
a user script are given then the user script can be hot deployed into the workflow.
:param toil.common.Config config: the current configuration
... | def createBatchSystem(config, jobStore=None, userScript=None):
"""
Creates an instance of the batch system specified in the given config. If a job store and
a user script are given then the user script can be hot deployed into the workflow.
:param toil.common.Config config: the current configuration
... | https://github.com/DataBiosphere/toil/issues/1127 | WARNING:toil.leader:The jobWrapper seems to have left a log file, indicating failure: 52d0d400_4080_480d_9c53_e7a7624b20e9
WARNING:toil.leader:Reporting file: 52d0d400_4080_480d_9c53_e7a7624b20e9
WARNING:toil.leader:52d0d400_4080_480d_9c53_e7a7624b20e9: ---TOIL WORKER OUTPUT LOG---
WARNING:toil.leader:52d0d400_40... | ImportError |
def register(self):
"""
Register this resource for later retrieval via lookup(), possibly in a child process.
"""
os.environ[self.resourceEnvNamePrefix + self.pathHash] = self.pickle()
| def register(self):
"""
Register this resource for later retrieval via lookup(), possibly in a child process.
"""
os.environ[self.resourceEnvNamePrefix + self.pathHash] = self._pickle()
| https://github.com/DataBiosphere/toil/issues/1127 | WARNING:toil.leader:The jobWrapper seems to have left a log file, indicating failure: 52d0d400_4080_480d_9c53_e7a7624b20e9
WARNING:toil.leader:Reporting file: 52d0d400_4080_480d_9c53_e7a7624b20e9
WARNING:toil.leader:52d0d400_4080_480d_9c53_e7a7624b20e9: ---TOIL WORKER OUTPUT LOG---
WARNING:toil.leader:52d0d400_40... | ImportError |
def lookup(cls, leaderPath):
"""
Returns a resource object representing a resource created from a file or directory at the
given path on the leader. This method should be invoked on the worker. The given path
does not need to refer to an existing file or directory on the worker, it only identifies
t... | def lookup(cls, leaderPath):
"""
Returns a resource object representing a resource created from a file or directory at the
given path on the leader. This method should be invoked on the worker. The given path
does not need to refer to an existing file or directory on the worker, it only identifies
t... | https://github.com/DataBiosphere/toil/issues/1127 | WARNING:toil.leader:The jobWrapper seems to have left a log file, indicating failure: 52d0d400_4080_480d_9c53_e7a7624b20e9
WARNING:toil.leader:Reporting file: 52d0d400_4080_480d_9c53_e7a7624b20e9
WARNING:toil.leader:52d0d400_4080_480d_9c53_e7a7624b20e9: ---TOIL WORKER OUTPUT LOG---
WARNING:toil.leader:52d0d400_40... | ImportError |
def getJobStore(locator):
"""
Create an instance of the concrete job store implementation that matches the given locator.
:param str locator: The location of the job store to be represent by the instance
:return: an instance of a concrete subclass of AbstractJobStore
:rtype: toil.jobStores.abstrac... | def getJobStore(locator):
"""
Create an instance of the concrete job store implementation that matches the given locator.
:param str locator: The location of the job store to be represent by the instance
:return: an instance of a concrete subclass of AbstractJobStore
:rtype: toil.jobStores.abstrac... | https://github.com/DataBiosphere/toil/issues/1127 | WARNING:toil.leader:The jobWrapper seems to have left a log file, indicating failure: 52d0d400_4080_480d_9c53_e7a7624b20e9
WARNING:toil.leader:Reporting file: 52d0d400_4080_480d_9c53_e7a7624b20e9
WARNING:toil.leader:52d0d400_4080_480d_9c53_e7a7624b20e9: ---TOIL WORKER OUTPUT LOG---
WARNING:toil.leader:52d0d400_40... | ImportError |
def createBatchSystem(config, jobStore=None, userScript=None):
"""
Creates an instance of the batch system specified in the given config. If a job store and
a user script are given then the user script can be hot deployed into the workflow.
:param toil.common.Config config: the current configuration
... | def createBatchSystem(config, jobStore=None, userScript=None):
"""
Creates an instance of the batch system specified in the given config. If a job store and
a user script are given then the user script can be hot deployed into the workflow.
:param toil.common.Config config: the current configuration
... | https://github.com/DataBiosphere/toil/issues/1127 | WARNING:toil.leader:The jobWrapper seems to have left a log file, indicating failure: 52d0d400_4080_480d_9c53_e7a7624b20e9
WARNING:toil.leader:Reporting file: 52d0d400_4080_480d_9c53_e7a7624b20e9
WARNING:toil.leader:52d0d400_4080_480d_9c53_e7a7624b20e9: ---TOIL WORKER OUTPUT LOG---
WARNING:toil.leader:52d0d400_40... | ImportError |
def processFinishedJob(self, jobBatchSystemID, resultStatus, wallTime=None):
"""
Function reads a processed jobWrapper file and updates it state.
"""
def processRemovedJob(jobStoreID):
if resultStatus != 0:
logger.warn(
"Despite the batch system claiming failure the ... | def processFinishedJob(self, jobBatchSystemID, resultStatus, wallTime=None):
"""
Function reads a processed jobWrapper file and updates it state.
"""
def processRemovedJob(jobStoreID):
if resultStatus != 0:
logger.warn(
"Despite the batch system claiming failure the ... | https://github.com/DataBiosphere/toil/issues/1115 | (venv) jenkins@ip-172-31-29-42:~/toil$ make develop
…
(venv) jenkins@ip-172-31-29-42:~/toil$ python HelloWorld.py --batchSystem gridEngine --disableCaching --logDebug ./jobStore
ip-172-31-29-42 2016-08-23 21:52:06,214 MainThread INFO toil.lib.bioio: Logging set at level: DEBUG
ip-172-31-29-42 2016-08-23 21:52:06,214 Ma... | ImportError |
def __init__(self):
# Core options
self.workflowID = None
"""This attribute uniquely identifies the job store and therefore the workflow. It is
necessary in order to distinguish between two consequitive workflows for which
self.jobStore is the same, e.g. when a job store name is reused after... | def __init__(self):
# Core options
self.workflowID = None
"""This attribute uniquely identifies the job store and therefore the workflow. It is
necessary in order to distinguish between two consequitive workflows for which
self.jobStore is the same, e.g. when a job store name is reused after... | https://github.com/DataBiosphere/toil/issues/869 | cmarkello@c1master1:~$ toil clean azure:hgvm:hgvmevaljobstore
2016-05-13 23:08:36,438 INFO:toil.lib.bioio: Logging set at level: INFO
2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Parsed arguments
2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Checking if we have files for toil
2016-05-13 23:08:36,525 INFO:req... | toil.jobStores.abstractJobStore.NoSuchFileException |
def _addOptions(addGroupFn, config):
#
# Core options
#
addOptionFn = addGroupFn(
"toil core options",
"Options to specify the location of the Toil workflow and turn on "
"stats collation about the performance of jobs.",
)
addOptionFn(
"jobStore",
type=str... | def _addOptions(addGroupFn, config):
#
# Core options
#
addOptionFn = addGroupFn(
"toil core options",
"Options to specify the \
location of the toil workflow and turn on stats collation about the performance of jobs.",
)
addOptionFn(
"jobStore",
type=str,
... | https://github.com/DataBiosphere/toil/issues/869 | cmarkello@c1master1:~$ toil clean azure:hgvm:hgvmevaljobstore
2016-05-13 23:08:36,438 INFO:toil.lib.bioio: Logging set at level: INFO
2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Parsed arguments
2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Checking if we have files for toil
2016-05-13 23:08:36,525 INFO:req... | toil.jobStores.abstractJobStore.NoSuchFileException |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.