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 stop_notify(self, _uuid: str) -> None: """Deactivate notification/indication on a specified characteristic. Args: _uuid: The characteristic to stop notifying/indicating on. """ characteristic = self.services.get_characteristic(str(_uuid)) await self._bus.callRemote( chara...
async def stop_notify(self, _uuid: str) -> None: """Deactivate notification/indication on a specified characteristic. Args: _uuid: The characteristic to stop notifying/indicating on. """ characteristic = self.services.get_characteristic(str(_uuid)) await self._bus.callRemote( chara...
https://github.com/hbldh/bleak/issues/91
Traceback (most recent call last): File "discover.py", line 29, in <module> loop.run_until_complete(run()) File "/usr/lib64/python3.7/asyncio/base_events.py", line 584, in run_until_complete return future.result() File "discover.py", line 22, in run devices = await discover(timeout=1) File "/home/joe/code/proglove/pyth...
txdbus.error.RemoteError
def _properties_changed_callback(self, message): """Notification handler. In the BlueZ DBus API, notifications come as PropertiesChanged callbacks on the GATT Characteristic interface that StartNotify has been called on. Args: message (): The PropertiesChanged DBus signal message relaying ...
def _properties_changed_callback(self, message): """Notification handler. In the BlueZ DBus API, notifications come as PropertiesChanged callbacks on the GATT Characteristic interface that StartNotify has been called on. Args: message (): The PropertiesChanged DBus signal message relaying ...
https://github.com/hbldh/bleak/issues/91
Traceback (most recent call last): File "discover.py", line 29, in <module> loop.run_until_complete(run()) File "/usr/lib64/python3.7/asyncio/base_events.py", line 584, in run_until_complete return future.result() File "discover.py", line 22, in run devices = await discover(timeout=1) File "/home/joe/code/proglove/pyth...
txdbus.error.RemoteError
def parse_msg(message): if message.member == "InterfacesAdded": msg_path = message.body[0] try: device_interface = message.body[1].get("org.bluez.Device1", {}) except Exception as e: raise e devices[msg_path] = ( {**devices[msg_path], **device_inte...
def parse_msg(message): if message.member == "InterfacesAdded": msg_path = message.body[0] try: device_interface = message.body[1].get("org.bluez.Device1", {}) except Exception as e: raise e devices[msg_path] = ( {**devices[msg_path], **device_inte...
https://github.com/hbldh/bleak/issues/91
Traceback (most recent call last): File "discover.py", line 29, in <module> loop.run_until_complete(run()) File "/usr/lib64/python3.7/asyncio/base_events.py", line 584, in run_until_complete return future.result() File "discover.py", line 22, in run devices = await discover(timeout=1) File "/home/joe/code/proglove/pyth...
txdbus.error.RemoteError
def __init__(self): self.main_loop = asyncio.get_event_loop() self.main_loop.create_task(self._handle_nsrunloop()) self.main_loop.create_task(self._central_manager_delegate_ready()) self.nsrunloop = NSRunLoop.currentRunLoop() self.central_manager_delegate = CentralManagerDelegate.alloc().init()
def __init__(self, address, hci_device="hci0"): raise NotImplementedError("BleakClientCoreBluetooth not implemented yet.")
https://github.com/hbldh/bleak/issues/91
Traceback (most recent call last): File "discover.py", line 29, in <module> loop.run_until_complete(run()) File "/usr/lib64/python3.7/asyncio/base_events.py", line 584, in run_until_complete return future.result() File "discover.py", line 22, in run devices = await discover(timeout=1) File "/home/joe/code/proglove/pyth...
txdbus.error.RemoteError
def rssi(self): """Get the signal strength in dBm""" if isinstance(self.details, dict) and "props" in self.details: rssi = self.details["props"].get("RSSI", 0) # Should not be set to 0... elif hasattr(self.details, "RawSignalStrengthInDBm"): rssi = self.details.RawSignalStrengthInDBm el...
def rssi(self): """Get the signal strength in dBm""" if isinstance(self.details, dict) and "props" in self.details: rssi = self.details["props"].get("RSSI", 0) # Should not be set to 0... elif hasattr(self.details, "RawSignalStrengthInDBm"): rssi = self.details.RawSignalStrengthInDBm el...
https://github.com/hbldh/bleak/issues/91
Traceback (most recent call last): File "discover.py", line 29, in <module> loop.run_until_complete(run()) File "/usr/lib64/python3.7/asyncio/base_events.py", line 584, in run_until_complete return future.result() File "discover.py", line 22, in run devices = await discover(timeout=1) File "/home/joe/code/proglove/pyth...
txdbus.error.RemoteError
async def connect(self, **kwargs) -> bool: """Connect to the specified GATT server. Keyword Args: timeout (float): Timeout for required ``discover`` call. Defaults to 2.0. Returns: Boolean representing connection status. """ # Try to find the desired device. devices = await di...
async def connect(self, **kwargs) -> bool: """Connect to the specified GATT server. Keyword Args: timeout (float): Timeout for required ``discover`` call. Defaults to 2.0. Returns: Boolean representing connection status. """ # Try to find the desired device. devices = await di...
https://github.com/hbldh/bleak/issues/91
Traceback (most recent call last): File "discover.py", line 29, in <module> loop.run_until_complete(run()) File "/usr/lib64/python3.7/asyncio/base_events.py", line 584, in run_until_complete return future.result() File "discover.py", line 22, in run devices = await discover(timeout=1) File "/home/joe/code/proglove/pyth...
txdbus.error.RemoteError
async def stop_notify(self, _uuid: str) -> None: """Deactivate notification/indication on a specified characteristic. Args: _uuid: The characteristic to stop notifying/indicating on. """ characteristic = self.services.get_characteristic(str(_uuid)) status = await wrap_IAsyncOperation( ...
async def stop_notify(self, _uuid: str) -> None: """Deactivate notification/indication on a specified characteristic. Args: _uuid: The characteristic to stop notifying/indicating on. """ characteristic = self.services.get_characteristic(str(_uuid)) status = await wrap_IAsyncOperation( ...
https://github.com/hbldh/bleak/issues/91
Traceback (most recent call last): File "discover.py", line 29, in <module> loop.run_until_complete(run()) File "/usr/lib64/python3.7/asyncio/base_events.py", line 584, in run_until_complete return future.result() File "discover.py", line 22, in run devices = await discover(timeout=1) File "/home/joe/code/proglove/pyth...
txdbus.error.RemoteError
async def discover( timeout: float = 5.0, loop: AbstractEventLoop = None, **kwargs ) -> List[BLEDevice]: """Perform a Bluetooth LE Scan using Windows.Devices.Bluetooth.Advertisement Args: timeout (float): Time to scan for. loop (Event Loop): The event loop to use. Keyword Args: ...
async def discover( timeout: float = 5.0, loop: AbstractEventLoop = None, **kwargs ) -> List[BLEDevice]: """Perform a Bluetooth LE Scan. Args: timeout (float): Time to scan for. loop (Event Loop): The event loop to use. Keyword Args: string_output (bool): If set to false, ``dis...
https://github.com/hbldh/bleak/issues/91
Traceback (most recent call last): File "discover.py", line 29, in <module> loop.run_until_complete(run()) File "/usr/lib64/python3.7/asyncio/base_events.py", line 584, in run_until_complete return future.result() File "discover.py", line 22, in run devices = await discover(timeout=1) File "/home/joe/code/proglove/pyth...
txdbus.error.RemoteError
async def run(address, loop, debug=False): if debug: import sys loop.set_debug(True) l = logging.getLogger("asyncio") l.setLevel(logging.DEBUG) h = logging.StreamHandler(sys.stdout) h.setLevel(logging.DEBUG) l.addHandler(h) async with BleakClient(address...
async def run(address, loop, debug=False): if debug: import sys # loop.set_debug(True) l = logging.getLogger("asyncio") l.setLevel(logging.DEBUG) h = logging.StreamHandler(sys.stdout) h.setLevel(logging.DEBUG) l.addHandler(h) async with BleakClient(addre...
https://github.com/hbldh/bleak/issues/91
Traceback (most recent call last): File "discover.py", line 29, in <module> loop.run_until_complete(run()) File "/usr/lib64/python3.7/asyncio/base_events.py", line 584, in run_until_complete return future.result() File "discover.py", line 22, in run devices = await discover(timeout=1) File "/home/joe/code/proglove/pyth...
txdbus.error.RemoteError
async def run(address, loop, debug=False): log = logging.getLogger(__name__) if debug: import sys loop.set_debug(True) log.setLevel(logging.DEBUG) h = logging.StreamHandler(sys.stdout) h.setLevel(logging.DEBUG) log.addHandler(h) async with BleakClient(addres...
async def run(address, loop, debug=False): log = logging.getLogger(__name__) if debug: import sys # loop.set_debug(True) log.setLevel(logging.DEBUG) h = logging.StreamHandler(sys.stdout) h.setLevel(logging.DEBUG) log.addHandler(h) async with BleakClient(addr...
https://github.com/hbldh/bleak/issues/91
Traceback (most recent call last): File "discover.py", line 29, in <module> loop.run_until_complete(run()) File "/usr/lib64/python3.7/asyncio/base_events.py", line 584, in run_until_complete return future.result() File "discover.py", line 22, in run devices = await discover(timeout=1) File "/home/joe/code/proglove/pyth...
txdbus.error.RemoteError
async def discover(timeout=5.0, loop=None, **kwargs): """Discover nearby Bluetooth Low Energy devices. Args: timeout (float): Duration to scan for. loop (asyncio.AbstractEventLoop): Optional event loop to use. Keyword Args: device (str): Bluetooth device to use for discovery. ...
async def discover(timeout=5.0, loop=None, **kwargs): """Discover nearby Bluetooth Low Energy devices. Args: timeout (float): Duration to scan for. loop (asyncio.AbstractEventLoop): Optional event loop to use. Keyword Args: device (str): Bluetooth device to use for discovery. ...
https://github.com/hbldh/bleak/issues/69
Unhandled Error Traceback (most recent call last): File "/home/usr/dir/virtualEnv/lib/python3.6/site-packages/txdbus/protocol.py", line 141, in dataReceived self.rawDBusMessageReceived(raw_msg) File "/home/usr/dir/virtualEnv/lib/python3.6/site-packages/txdbus/protocol.py", line 262, in rawDBusMessageReceived self.signa...
builtins.AttributeError
async def connect(self, **kwargs) -> bool: """Connect to the specified GATT server. Keyword Args: timeout (float): Timeout for required ``discover`` call. Defaults to 0.1. Returns: Boolean representing connection status. """ # A Discover must have been run before connecting to an...
async def connect(self) -> bool: """Connect to the specified GATT server. Returns: Boolean representing connection status. """ # A Discover must have been run before connecting to any devices. Do a quick one here # to ensure that it has been done. await discover(timeout=0.1, loop=self...
https://github.com/hbldh/bleak/issues/69
Unhandled Error Traceback (most recent call last): File "/home/usr/dir/virtualEnv/lib/python3.6/site-packages/txdbus/protocol.py", line 141, in dataReceived self.rawDBusMessageReceived(raw_msg) File "/home/usr/dir/virtualEnv/lib/python3.6/site-packages/txdbus/protocol.py", line 262, in rawDBusMessageReceived self.signa...
builtins.AttributeError
async def get_services(self) -> BleakGATTServiceCollection: """Get all services registered for this GATT server. Returns: A :py:class:`bleak.backends.service.BleakGATTServiceCollection` with this device's services tree. """ if self._services_resolved: return self.services while Tru...
async def get_services(self) -> BleakGATTServiceCollection: """Get all services registered for this GATT server. Returns: A :py:class:`bleak.backends.service.BleakGATTServiceCollection` with this device's services tree. """ if self._services_resolved: return self.services while Tru...
https://github.com/hbldh/bleak/issues/69
Unhandled Error Traceback (most recent call last): File "/home/usr/dir/virtualEnv/lib/python3.6/site-packages/txdbus/protocol.py", line 141, in dataReceived self.rawDBusMessageReceived(raw_msg) File "/home/usr/dir/virtualEnv/lib/python3.6/site-packages/txdbus/protocol.py", line 262, in rawDBusMessageReceived self.signa...
builtins.AttributeError
async def write_gatt_char( self, _uuid: str, data: bytearray, response: bool = False ) -> None: """Perform a write operation on the specified GATT characteristic. Args: _uuid (str or UUID): The uuid of the characteristics to write to. data (bytes or bytearray): The data to send. res...
async def write_gatt_char( self, _uuid: str, data: bytearray, response: bool = False ) -> None: """Perform a write operation on the specified GATT characteristic. Args: _uuid (str or UUID): The uuid of the characteristics to write to. data (bytes or bytearray): The data to send. res...
https://github.com/hbldh/bleak/issues/69
Unhandled Error Traceback (most recent call last): File "/home/usr/dir/virtualEnv/lib/python3.6/site-packages/txdbus/protocol.py", line 141, in dataReceived self.rawDBusMessageReceived(raw_msg) File "/home/usr/dir/virtualEnv/lib/python3.6/site-packages/txdbus/protocol.py", line 262, in rawDBusMessageReceived self.signa...
builtins.AttributeError
def _device_info(path, props): try: name = props.get("Name", props.get("Alias", path.split("/")[-1])) address = props.get("Address", None) if address is None: try: address = path[-17:].replace("_", ":") if not validate_mac_address(address): ...
def _device_info(path, props): name = props.get("Name", props.get("Alias", path.split("/")[-1])) address = props.get("Address", None) if address is None: try: address = path[-17:].replace("_", ":") if not validate_mac_address(address): address = None e...
https://github.com/hbldh/bleak/issues/69
Unhandled Error Traceback (most recent call last): File "/home/usr/dir/virtualEnv/lib/python3.6/site-packages/txdbus/protocol.py", line 141, in dataReceived self.rawDBusMessageReceived(raw_msg) File "/home/usr/dir/virtualEnv/lib/python3.6/site-packages/txdbus/protocol.py", line 262, in rawDBusMessageReceived self.signa...
builtins.AttributeError
def parse_msg(message): if message.member == "InterfacesAdded": msg_path = message.body[0] try: device_interface = message.body[1].get("org.bluez.Device1", {}) except Exception as e: raise e devices[msg_path] = ( {**devices[msg_path], **device_inte...
def parse_msg(message): if message.member == "InterfacesAdded": msg_path = message.body[0] try: device_interface = message.body[1].get("org.bluez.Device1", {}) except Exception as e: raise e devices[msg_path] = ( {**devices[msg_path], **device_inte...
https://github.com/hbldh/bleak/issues/69
Unhandled Error Traceback (most recent call last): File "/home/usr/dir/virtualEnv/lib/python3.6/site-packages/txdbus/protocol.py", line 141, in dataReceived self.rawDBusMessageReceived(raw_msg) File "/home/usr/dir/virtualEnv/lib/python3.6/site-packages/txdbus/protocol.py", line 262, in rawDBusMessageReceived self.signa...
builtins.AttributeError
async def connect(self, **kwargs) -> bool: """Connect to the specified GATT server. Returns: Boolean representing connection status. """ raise NotImplementedError()
async def connect(self) -> bool: """Connect to the specified GATT server. Returns: Boolean representing connection status. """ raise NotImplementedError()
https://github.com/hbldh/bleak/issues/69
Unhandled Error Traceback (most recent call last): File "/home/usr/dir/virtualEnv/lib/python3.6/site-packages/txdbus/protocol.py", line 141, in dataReceived self.rawDBusMessageReceived(raw_msg) File "/home/usr/dir/virtualEnv/lib/python3.6/site-packages/txdbus/protocol.py", line 262, in rawDBusMessageReceived self.signa...
builtins.AttributeError
def __init__(self, address: str, loop: AbstractEventLoop = None, **kwargs): super(BleakClientDotNet, self).__init__(address, loop, **kwargs) # Backend specific. Python.NET objects. self._device_info = None self._requester = None self._bridge = Bridge() self._callbacks = {} self._address_ty...
def __init__(self, address: str, loop: AbstractEventLoop = None, **kwargs): super(BleakClientDotNet, self).__init__(address, loop, **kwargs) # Backend specific. Python.NET objects. self._device_info = None self._requester = None self._bridge = Bridge() self._callbacks = {}
https://github.com/hbldh/bleak/issues/69
Unhandled Error Traceback (most recent call last): File "/home/usr/dir/virtualEnv/lib/python3.6/site-packages/txdbus/protocol.py", line 141, in dataReceived self.rawDBusMessageReceived(raw_msg) File "/home/usr/dir/virtualEnv/lib/python3.6/site-packages/txdbus/protocol.py", line 262, in rawDBusMessageReceived self.signa...
builtins.AttributeError
async def connect(self, **kwargs) -> bool: """Connect to the specified GATT server. Keyword Args: timeout (float): Timeout for required ``discover`` call. Defaults to 2.0. Returns: Boolean representing connection status. """ # Try to find the desired device. devices = await di...
async def connect(self) -> bool: """Connect to the specified GATT server. Returns: Boolean representing connection status. """ # Try to find the desired device. devices = await discover(2.0, loop=self.loop) sought_device = list( filter(lambda x: x.address.upper() == self.addres...
https://github.com/hbldh/bleak/issues/69
Unhandled Error Traceback (most recent call last): File "/home/usr/dir/virtualEnv/lib/python3.6/site-packages/txdbus/protocol.py", line 141, in dataReceived self.rawDBusMessageReceived(raw_msg) File "/home/usr/dir/virtualEnv/lib/python3.6/site-packages/txdbus/protocol.py", line 262, in rawDBusMessageReceived self.signa...
builtins.AttributeError
async def write_gatt_char( self, _uuid: str, data: bytearray, response: bool = False ) -> None: """Perform a write operation of the specified GATT characteristic. Args: _uuid (str or UUID): The uuid of the characteristics to write to. data (bytes or bytearray): The data to send. res...
async def write_gatt_char( self, _uuid: str, data: bytearray, response: bool = False ) -> None: """Perform a write operation of the specified GATT characteristic. Args: _uuid (str or UUID): The uuid of the characteristics to write to. data (bytes or bytearray): The data to send. res...
https://github.com/hbldh/bleak/issues/69
Unhandled Error Traceback (most recent call last): File "/home/usr/dir/virtualEnv/lib/python3.6/site-packages/txdbus/protocol.py", line 141, in dataReceived self.rawDBusMessageReceived(raw_msg) File "/home/usr/dir/virtualEnv/lib/python3.6/site-packages/txdbus/protocol.py", line 262, in rawDBusMessageReceived self.signa...
builtins.AttributeError
async def wrap_IAsyncOperation(op, return_type, loop): """Enables await on .NET Task using asyncio.Event and a lambda callback. Args: task (System.Threading.Tasks.Task): .NET async task object to await. loop (Event Loop): The event loop to await on the Task in. Returns: The results...
async def wrap_IAsyncOperation(op, return_type, loop): """Enables await on .NET Task using asyncio.Event and a lambda callback. Args: task (System.Threading.Tasks.Task): .NET async task object to await upon. loop (Event Loop): The event loop to await on the Task in. Returns: ...
https://github.com/hbldh/bleak/issues/69
Unhandled Error Traceback (most recent call last): File "/home/usr/dir/virtualEnv/lib/python3.6/site-packages/txdbus/protocol.py", line 141, in dataReceived self.rawDBusMessageReceived(raw_msg) File "/home/usr/dir/virtualEnv/lib/python3.6/site-packages/txdbus/protocol.py", line 262, in rawDBusMessageReceived self.signa...
builtins.AttributeError
async def run(address, loop, debug=False): log = logging.getLogger(__name__) if debug: import sys # loop.set_debug(True) log.setLevel(logging.DEBUG) h = logging.StreamHandler(sys.stdout) h.setLevel(logging.DEBUG) log.addHandler(h) async with BleakClient(addr...
async def run(address, loop, debug=False): log = logging.getLogger(__name__) if debug: import sys # loop.set_debug(True) log.setLevel(logging.DEBUG) h = logging.StreamHandler(sys.stdout) h.setLevel(logging.DEBUG) log.addHandler(h) async with BleakClient(addr...
https://github.com/hbldh/bleak/issues/69
Unhandled Error Traceback (most recent call last): File "/home/usr/dir/virtualEnv/lib/python3.6/site-packages/txdbus/protocol.py", line 141, in dataReceived self.rawDBusMessageReceived(raw_msg) File "/home/usr/dir/virtualEnv/lib/python3.6/site-packages/txdbus/protocol.py", line 262, in rawDBusMessageReceived self.signa...
builtins.AttributeError
async def connect(self, **kwargs) -> bool: """Connect to the specified GATT server. Keyword Args: timeout (float): Timeout for required ``discover`` call. Defaults to 0.1. Returns: Boolean representing connection status. """ # A Discover must have been run before connecting to an...
async def connect(self, **kwargs) -> bool: """Connect to the specified GATT server. Keyword Args: timeout (float): Timeout for required ``discover`` call. Defaults to 0.1. Returns: Boolean representing connection status. """ # A Discover must have been run before connecting to an...
https://github.com/hbldh/bleak/issues/76
Traceback (most recent call last): File "bug.py", line 25, in <module> sys.exit(loop.run_until_complete(main(loop))) File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete return future.result() File "bug.py", line 19, in main async with MyInternalStuff(ble_addr="12:34:56:78:90:ab", adapter='...
Exception
def __init__(self, address, loop=None, **kwargs): super(BleakClientBlueZDBus, self).__init__(address, loop, **kwargs) self.device = kwargs.get("device") if kwargs.get("device") else "hci0" self.address = address # Backend specific, TXDBus objects and data self._device_path = None self._bus = No...
def __init__(self, address, loop=None, **kwargs): super(BleakClientBlueZDBus, self).__init__(address, loop, **kwargs) self.device = kwargs.get("device") if kwargs.get("device") else "hci0" self.address = address # Backend specific, TXDBus objects and data self._device_path = None self._bus = No...
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
async def connect(self) -> bool: """Connect to the specified GATT server. Returns: Boolean representing connection status. """ # A Discover must have been run before connecting to any devices. Do a quick one here # to ensure that it has been done. await discover(timeout=0.1, loop=self...
async def connect(self) -> bool: """Connect to the specified GATT server. Returns: Boolean representing connection status. """ # Create system bus self._bus = await txdbus_connect(reactor, busAddress="system").asFuture(self.loop) # TODO: Handle path errors from txdbus/dbus self._d...
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
async def get_services(self) -> BleakGATTServiceCollection: """Get all services registered for this GATT server. Returns: A :py:class:`bleak.backends.service.BleakGATTServiceCollection` with this device's services tree. """ if self._services_resolved: return self.services while Tru...
async def get_services(self) -> dict: """Get all services registered for this GATT server. Returns: Dictionary of all service UUIDs as keys and service object's properties as values. """ if self.services: return self.services while True: properties = await self._ge...
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
async def read_gatt_char(self, _uuid: str) -> bytearray: """Read the data on a GATT characteristic. Args: _uuid (str or uuid.UUID): UUID for the characteristic to read from. Returns: Byte array of data. """ characteristic = self.services.get_characteristic(str(_uuid)) if not c...
async def read_gatt_char(self, _uuid: str) -> bytearray: """Read the data on a GATT characteristic. Args: _uuid (str or uuid.UUID): UUID for the characteristic to read from. Returns: Byte array of data. """ char_props = self.characteristics.get(str(_uuid)) if not char_props: ...
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
async def write_gatt_char( self, _uuid: str, data: bytearray, response: bool = False ) -> Any: """Write data to a GATT characteristic. Args: _uuid (str or uuid.UUID): The UUID of the GATT characteristic to write to. data (bytearray): The data to write. response (bool): If write with...
async def write_gatt_char( self, _uuid: str, data: bytearray, response: bool = False ) -> Any: """Write data to a GATT characteristic. Args: _uuid (str or uuid.UUID): The UUID of the GATT characteristic to write to. data (bytearray): response (bool): Write with response. ...
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
async def start_notify( self, _uuid: str, callback: Callable[[str, Any], Any], **kwargs ) -> None: """Starts a notification session from a characteristic. Args: _uuid (str or uuid.UUID): The UUID of the GATT characteristic to start subscribing to notifications from. callback (Callab...
async def start_notify( self, _uuid: str, callback: Callable[[str, Any], Any], **kwargs ) -> None: """Starts a notification session from a characteristic. Args: _uuid (str or uuid.UUID): The UUID of the GATT characteristic to start subscribing to notifications from. callback (Callab...
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
async def stop_notify(self, _uuid: str) -> None: """Stops a notification session from a characteristic. Args: _uuid (str or uuid.UUID): The UUID of the characteristic to stop subscribing to notifications from. """ characteristic = self.services.get_characteristic(str(_uuid)) aw...
async def stop_notify(self, _uuid: str) -> None: """Stops a notification session from a characteristic. Args: _uuid (str or uuid.UUID): The UUID of the characteristic to stop subscribing to notifications from. """ char_props = self.characteristics.get(_uuid) await self._bus.callRem...
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
async def get_all_for_characteristic(self, _uuid): characteristic = self.services.get_characteristic(str(_uuid)) out = await self._bus.callRemote( characteristic.path, "GetAll", interface=defs.PROPERTIES_INTERFACE, destination=defs.BLUEZ_SERVICE, signature="s", bo...
async def get_all_for_characteristic(self, _uuid): char_props = self.characteristics.get(str(_uuid)) out = await self._bus.callRemote( char_props.get("Path"), "GetAll", interface=defs.PROPERTIES_INTERFACE, destination=defs.BLUEZ_SERVICE, signature="s", body=[defs....
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
async def _get_device_properties(self, interface=defs.DEVICE_INTERFACE): return await self._bus.callRemote( self._device_path, "GetAll", interface=defs.PROPERTIES_INTERFACE, destination=defs.BLUEZ_SERVICE, signature="s", body=[interface], returnSignature="a{sv...
async def _get_device_properties(self): return await self._bus.callRemote( self._device_path, "GetAll", interface=defs.PROPERTIES_INTERFACE, destination=defs.BLUEZ_SERVICE, signature="s", body=[defs.DEVICE_INTERFACE], returnSignature="a{sv}", ).asFuture(se...
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
def _properties_changed_callback(self, message): """Notification handler. In the BlueZ DBus API, notifications come as PropertiesChanged callbacks on the GATT Characteristic interface that StartNotify has been called on. Args: message (): The PropertiesChanged DBus signal message relaying ...
def _properties_changed_callback(self, message): """Notification handler. If the BlueZ DBus API, notifications come as PropertiesChanged callbacks on the GATT Characteristic interface that StartNotify has been called on. Args: message (): The PropertiesChanged DBus signal message relaying ...
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
async def discover(timeout=5.0, loop=None, **kwargs): """Discover nearby Bluetooth Low Energy devices. Args: timeout (float): Duration to scan for. loop (asyncio.AbstractEventLoop): Optional event loop to use. Keyword Args: device (str): Bluetooth device to use for discovery. ...
async def discover(timeout=5.0, loop=None, **kwargs): """Discover nearby Bluetooth Low Energy devices. Args: timeout (float): Duration to scan for. loop (asyncio.AbstractEventLoop): Optional event loop to use. Keyword Args: device (str): Bluetooth device to use for discovery. ...
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
def parse_msg(message): if message.member == "InterfacesAdded": msg_path = message.body[0] try: device_interface = message.body[1].get("org.bluez.Device1", {}) except Exception as e: raise e devices[msg_path] = ( {**devices[msg_path], **device_inte...
def parse_msg(message): if message.member in ("InterfacesAdded", "InterfacesRemoved"): msg_path = message.body[0] device_interface = message.body[1].get("org.bluez.Device1", {}) devices[msg_path] = ( {**devices[msg_path], **device_interface} if msg_path in devices ...
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
def __init__(self, address, loop=None, **kwargs): self.address = address self.loop = loop if loop else asyncio.get_event_loop() self.services = BleakGATTServiceCollection() self._services_resolved = False self._notification_callbacks = {}
def __init__(self, address, loop=None, **kwargs): self.address = address self.loop = loop if loop else asyncio.get_event_loop() self.services = {} self.characteristics = {} self._services_resolved = False self._notification_callbacks = {}
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
async def get_services(self) -> BleakGATTServiceCollection: raise NotImplementedError()
async def get_services(self): raise NotImplementedError()
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
def __init__(self, address: str, loop: AbstractEventLoop = None, **kwargs): super(BleakClientDotNet, self).__init__(address, loop, **kwargs) # Backend specific. Python.NET objects. self._device_info = None self._requester = None self._bridge = Bridge() self._callbacks = {}
def __init__(self, address: str, loop: AbstractEventLoop = None, **kwargs): super(BleakClientDotNet, self).__init__(address, loop, **kwargs) # Backend specific. Python.NET objects. self._device_info = None self._requester = None self._bridge = Bridge()
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
async def connect(self) -> bool: """Connect the BleakClient to the BLE device. Returns: Boolean from :meth:`~is_connected`. """ # Try to find the desired device. devices = await discover(2.0, loop=self.loop) sought_device = list( filter(lambda x: x.address.upper() == self.addre...
async def connect(self) -> bool: """Connect the BleakClient to the BLE device. Returns: Boolean from :meth:`~is_connected`. """ # Try to find the desired device. devices = await discover(2.0, loop=self.loop) sought_device = list( filter(lambda x: x.address.upper() == self.addre...
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
async def disconnect(self) -> bool: logger.debug("Disconnecting from BLE device...") # Remove notifications # TODO: Make sure all notifications are removed prior to Dispose. # Dispose all components that we have requested and created. for service in self.services: # for characteristic in ser...
async def disconnect(self) -> bool: logger.debug("Disconnecting from BLE device...") # Remove notifications # TODO: Make sure all notifications are removed prior to Dispose. # Dispose all components that we have requested and created. for service_uuid, service in self.services.items(): servi...
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
async def get_services(self) -> BleakGATTServiceCollection: # Return the Service Collection. if self._services_resolved: return self.services else: logger.debug("Get Services...") services_result = await wrap_IAsyncOperation( IAsyncOperation[GattDeviceServicesResult]( ...
async def get_services(self) -> dict: # Return a list of all services for the device. if self.services: return self.services else: logger.debug("Get Services...") services = await wrap_Task( self._bridge.GetGattServicesAsync(self._requester), loop=self.loop ) ...
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
async def read_gatt_char(self, _uuid: str) -> bytearray: """Perform read operation on the specified characteristic. Args: _uuid (str or UUID): The uuid of the characteristics to read from. Returns: (bytearray) The read data. """ characteristic = self.services.get_characteristic(st...
async def read_gatt_char(self, _uuid: str) -> bytearray: """Perform read operation on the specified characteristic. Args: _uuid (str or UUID): The uuid of the characteristics to start notification on. Returns: (bytearray) The read data. """ characteristic = self.characteristics.ge...
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
async def write_gatt_char( self, _uuid: str, data: bytearray, response: bool = False ) -> Any: """Perform a write operation of the specified characteristic. Args: _uuid (str or UUID): The uuid of the characteristics to write to. data (bytes or bytearray): The data to send. response ...
async def write_gatt_char( self, _uuid: str, data: bytearray, response: bool = False ) -> Any: """Perform a write operation of the specified characteristic. Args: _uuid (str or UUID): The uuid of the characteristics to start notification on. data (bytes or bytearray): The data to send. ...
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
async def start_notify( self, _uuid: str, callback: Callable[[str, Any], Any], **kwargs ) -> None: """Activate notifications on a characteristic. Callbacks must accept two inputs. The first will be a uuid string object and the second will be a bytearray. .. code-block:: python def callbac...
async def start_notify( self, _uuid: str, callback: Callable[[str, Any], Any], **kwargs ) -> None: """Activate notifications on a characteristic. Callbacks must accept two inputs. The first will be a uuid string object and the second will be a bytearray. .. code-block:: python def callbac...
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
async def stop_notify(self, _uuid: str) -> None: """Deactivate notification on a specified characteristic. Args: _uuid: The characteristic to stop notifying on. """ characteristic = self.services.get_characteristic(str(_uuid)) status = await wrap_IAsyncOperation( IAsyncOperation[G...
async def stop_notify(self, _uuid: str) -> None: """Deactivate notification on a specified characteristic. Args: _uuid: The characteristic to stop notifying on. """ characteristic = self.characteristics.get(str(_uuid)) status = await wrap_Task(self._bridge.StopNotify(characteristic), loop=...
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
def _notification_wrapper(func: Callable): @wraps(func) def dotnet_notification_parser(sender: Any, args: Any): # Return only the UUID string representation as sender. # Also do a conversion from System.Bytes[] to bytearray. reader = DataReader.FromBuffer(args.CharacteristicValue) ...
def _notification_wrapper(func: Callable): @wraps(func) def dotnet_notification_parser(sender: Any, data: Any): # Return only the UUID string representation as sender. # Also do a conversion from System.Bytes[] to bytearray. return func(sender.Uuid.ToString(), bytearray(data)) retur...
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
def dotnet_notification_parser(sender: Any, args: Any): # Return only the UUID string representation as sender. # Also do a conversion from System.Bytes[] to bytearray. reader = DataReader.FromBuffer(args.CharacteristicValue) output = Array[Byte]([0] * reader.UnconsumedBufferLength) reader.ReadBytes...
def dotnet_notification_parser(sender: Any, data: Any): # Return only the UUID string representation as sender. # Also do a conversion from System.Bytes[] to bytearray. return func(sender.Uuid.ToString(), bytearray(data))
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
async def wrap_Task(task, loop): """Enables await on .NET Task using asyncio.Event and a lambda callback. Args: task (System.Threading.Tasks.Task): .NET async task object to await upon. loop (Event Loop): The event loop to await on the Task in. Returns: The results of the t...
async def wrap_Task(task, loop): """Enables await on .NET Task using asyncio.Event and a lambda callback. Args: task (System.Threading.Tasks.Task): .NET async task object to await upon. loop (Event Loop): The event loop to await on the Task in. Returns: The results of the t...
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
def __init__(self, operation, return_type, loop): self.operation = IAsyncOperation[return_type](operation) self.done = asyncio.Event() self.return_type = return_type self._loop = loop
def __init__(self, task, loop): self._loop = loop self.task = task self.done = asyncio.Event()
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
def __await__(self): # Register AsyncOperationCompletedHandler callback that triggers the above asyncio.Event. self.operation.Completed = AsyncOperationCompletedHandler[self.return_type]( lambda x, y: self._loop.call_soon_threadsafe(self.done.set) ) yield from self.done.wait() return self
def __await__(self): def callback(task): self._loop.call_soon_threadsafe(self.done.set) self.task.ContinueWith(Action[Task](callback)) yield from self.done.wait() return self
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
def result(self): if self.operation.Status == AsyncStatus.Completed: return self.operation.GetResults() elif self.operation.Status == AsyncStatus.Error: # Exception occurred. Wrap it in BleakDotNetTaskError # to make it catchable. raise BleakDotNetTaskError(self.operation.ErrorCo...
def result(self): # TODO: Handle IsCancelled. if self.task.IsFaulted: # Exception occurred. Wrap it in BleakDotNetTaskError # to make it catchable. raise BleakDotNetTaskError(self.task.Exception.ToString()) return self.task.Result
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
async def start_notify( self, _uuid: str, callback: Callable[[str, Any], Any], **kwargs ) -> None: """Activate notifications/indications on a characteristic. Callbacks must accept two inputs. The first will be a uuid string object and the second will be a bytearray. .. code-block:: python ...
async def start_notify( self, _uuid: str, callback: Callable[[str, Any], Any], **kwargs ) -> None: """Activate notifications/indications on a characteristic. Callbacks must accept two inputs. The first will be a uuid string object and the second will be a bytearray. .. code-block:: python ...
https://github.com/hbldh/bleak/issues/55
Traceback (most recent call last): File "/home/jonas/Schreibtisch/TMRTFlib.py", line 572, in <module> loop.run_until_complete(connect_device_bleak(address, loop)) File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete return future.result() File "/home/jonas/Schreibtisch/TMRTFlib.py", line 55...
bleak.exc.BleakError
def _on_message(body, message): try: branch = body["payload"]["data"]["repo_url"].split("/")[-1] rev = body["payload"]["data"]["heads"][0] if branch in ["autoland", "try"]: user = body["payload"]["data"]["pushlog_pushes"][0]["user"] if user in ("reviewbot", "wptsync@...
def _on_message(body, message): try: branch = body["payload"]["data"]["repo_url"].split("/")[-1] rev = body["payload"]["data"]["heads"][0] if branch in ["autoland", "try"]: user = body["payload"]["data"]["pushlog_pushes"][0]["user"] if user in ("reviewbot", "wptsync@...
https://github.com/mozilla/bugbug/issues/1738
Jul 29 09:37:20 bugbug app/web.1: Traceback (most recent call last): Jul 29 09:37:20 bugbug app/web.1: File "/usr/local/lib/python3.8/site-packages/bugbug_http/listener.py", line 69, in _on_message Jul 29 09:37:20 bugbug app/web.1: user = body["payload"]["data"]["pushlog_pushes"][0]["user"] Jul 29 09:37:20 bugbug...
IndexError
def main(): parser = argparse.ArgumentParser(description="Spawn tasks for bugbug data pipeline") parser.add_argument("data_pipeline_json") args = parser.parse_args() decision_task_id = os.environ.get("TASK_ID") options = get_taskcluster_options() add_self = False if decision_task_id: ...
def main(): parser = argparse.ArgumentParser(description="Spawn tasks for bugbug data pipeline") parser.add_argument("data_pipeline_json") args = parser.parse_args() decision_task_id = os.environ.get("TASK_ID") options = get_taskcluster_options() add_self = False if decision_task_id: ...
https://github.com/mozilla/bugbug/issues/1282
Traceback (most recent call last): File "/code/spawn_pipeline.py", line 132, in <module> main() File "/code/spawn_pipeline.py", line 110, in main new_dependencies.append(id_mapping[dependency]) KeyError: 'regressor-finder'
KeyError
def contracted_edge(G, edge, self_loops=True): """Returns the graph that results from contracting the specified edge. Edge contraction identifies the two endpoints of the edge as a single node incident to any edge that was incident to the original two nodes. A graph that results from edge contraction i...
def contracted_edge(G, edge, self_loops=True): """Returns the graph that results from contracting the specified edge. Edge contraction identifies the two endpoints of the edge as a single node incident to any edge that was incident to the original two nodes. A graph that results from edge contraction i...
https://github.com/networkx/networkx/issues/3139
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-220-465f568dfaa5> in <module>() 1 g = nx.complete_graph(5, create_using=nx.MultiGraph()) ----> 2 nx.contracted_edge(g, random.choice(list(g.edges))) ~/....
TypeError
def read_shp(path, simplify=True, geom_attrs=True, strict=True): """Generates a networkx.DiGraph from shapefiles. Point geometries are translated into nodes, lines into edges. Coordinate tuples are used as keys. Attributes are preserved, line geometries are simplified into start and end coordinates. Acc...
def read_shp(path, simplify=True, geom_attrs=True): """Generates a networkx.DiGraph from shapefiles. Point geometries are translated into nodes, lines into edges. Coordinate tuples are used as keys. Attributes are preserved, line geometries are simplified into start and end coordinates. Accepts a single...
https://github.com/networkx/networkx/issues/2451
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-33-2307d2480ccb> in <module>() 1 # load shapefile into a digraph ----> 2 g = nx.read_shp(shapefile, simplify=False) /usr/local/anaconda/lib/python3.5/si...
AttributeError
def write_shp(G, outdir): """Writes a networkx.DiGraph to two shapefiles, edges and nodes. Nodes and edges are expected to have a Well Known Binary (Wkb) or Well Known Text (Wkt) key in order to generate geometries. Also acceptable are nodes with a numeric tuple key (x,y). "The Esri Shapefile or si...
def write_shp(G, outdir): """Writes a networkx.DiGraph to two shapefiles, edges and nodes. Nodes and edges are expected to have a Well Known Binary (Wkb) or Well Known Text (Wkt) key in order to generate geometries. Also acceptable are nodes with a numeric tuple key (x,y). "The Esri Shapefile or si...
https://github.com/networkx/networkx/issues/2451
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-33-2307d2480ccb> in <module>() 1 # load shapefile into a digraph ----> 2 g = nx.read_shp(shapefile, simplify=False) /usr/local/anaconda/lib/python3.5/si...
AttributeError
def literal_stringizer(value): """Convert a `value` to a Python literal in GML representation. Parameters ---------- value : object The `value` to be converted to GML representation. Returns ------- rep : string A double-quoted Python literal representing value. Unprintable...
def literal_stringizer(value): """Convert a `value` to a Python literal in GML representation. Parameters ---------- value : object The `value` to be converted to GML representation. Returns ------- rep : string A double-quoted Python literal representing value. Unprintable...
https://github.com/networkx/networkx/issues/2118
Traceback (most recent call last): File "test.py", line 8, in <module> H = nx.read_gml('foo.gml') File "<decorator-gen-198>", line 2, in read_gml File "/Users/domoritz/.virtualenvs/ipython/lib/python2.7/site-packages/networkx/utils/decorators.py", line 220, in _open_file result = func(*new_args, **kwargs) File "/Users/...
networkx.exception.NetworkXError
def stringize(value): if isinstance(value, (int, long, bool)) or value is None: if value is True: # GML uses 1/0 for boolean values. buf.write(str(1)) elif value is False: buf.write(str(0)) else: buf.write(str(value)) elif isinstance(value, unicode): ...
def stringize(value): if isinstance(value, (int, long, bool)) or value is None: buf.write(str(value)) elif isinstance(value, unicode): text = repr(value) if text[0] != "u": try: value.encode("latin1") except UnicodeEncodeError: text...
https://github.com/networkx/networkx/issues/2118
Traceback (most recent call last): File "test.py", line 8, in <module> H = nx.read_gml('foo.gml') File "<decorator-gen-198>", line 2, in read_gml File "/Users/domoritz/.virtualenvs/ipython/lib/python2.7/site-packages/networkx/utils/decorators.py", line 220, in _open_file result = func(*new_args, **kwargs) File "/Users/...
networkx.exception.NetworkXError
def generate_gml(G, stringizer=None): r"""Generate a single entry of the graph `G` in GML format. Parameters ---------- G : NetworkX graph The graph to be converted to GML. stringizer : callable, optional A `stringizer` which converts non-int/non-float/non-dict values into ...
def generate_gml(G, stringizer=None): r"""Generate a single entry of the graph `G` in GML format. Parameters ---------- G : NetworkX graph The graph to be converted to GML. stringizer : callable, optional A `stringizer` which converts non-int/non-float/non-dict values into ...
https://github.com/networkx/networkx/issues/2118
Traceback (most recent call last): File "test.py", line 8, in <module> H = nx.read_gml('foo.gml') File "<decorator-gen-198>", line 2, in read_gml File "/Users/domoritz/.virtualenvs/ipython/lib/python2.7/site-packages/networkx/utils/decorators.py", line 220, in _open_file result = func(*new_args, **kwargs) File "/Users/...
networkx.exception.NetworkXError
def stringize(key, value, ignored_keys, indent, in_list=False): if not isinstance(key, (str, unicode)): raise NetworkXError("%r is not a string" % (key,)) if not valid_keys.match(key): raise NetworkXError("%r is not a valid key" % (key,)) if not isinstance(key, str): key = str(key) ...
def stringize(key, value, ignored_keys, indent, in_list=False): if not isinstance(key, (str, unicode)): raise NetworkXError("%r is not a string" % (key,)) if not valid_keys.match(key): raise NetworkXError("%r is not a valid key" % (key,)) if not isinstance(key, str): key = str(key) ...
https://github.com/networkx/networkx/issues/2118
Traceback (most recent call last): File "test.py", line 8, in <module> H = nx.read_gml('foo.gml') File "<decorator-gen-198>", line 2, in read_gml File "/Users/domoritz/.virtualenvs/ipython/lib/python2.7/site-packages/networkx/utils/decorators.py", line 220, in _open_file result = func(*new_args, **kwargs) File "/Users/...
networkx.exception.NetworkXError
def _is_connected_by_alternating_path(G, v, matched_edges, unmatched_edges, targets): """Returns True if and only if the vertex `v` is connected to one of the target vertices by an alternating path in `G`. An *alternating path* is a path in which every other edge is in the specified maximum matching (a...
def _is_connected_by_alternating_path(G, v, matching, targets): """Returns True if and only if the vertex `v` is connected to one of the target vertices by an alternating path in `G`. An *alternating path* is a path in which every other edge is in the specified maximum matching (and the remaining edges...
https://github.com/networkx/networkx/issues/2384
$ python2.7 vertex_cover.py Using version 1.11 Edges: [(0, 3), (1, 3), (1, 4), (2, 3)] Matching: {0: 3, 1: 4, 3: 0, 4: 1} Vertex cover: set([0, 1]) Traceback (most recent call last): File "vertex_cover.py", line 16, in <module> assert u in vertex_cover or v in vertex_cover AssertionError $ python3.6 vertex_cover.py Usi...
AssertionError
def _alternating_dfs(u, along_matched=True): """Returns True if and only if `u` is connected to one of the targets by an alternating path. `u` is a vertex in the graph `G`. If `along_matched` is True, this step of the depth-first search will continue only through edges in the given matching. Other...
def _alternating_dfs(u, depth, along_matched=True): """Returns True if and only if `u` is connected to one of the targets by an alternating path. `u` is a vertex in the graph `G`. `depth` specifies the maximum recursion depth of the depth-first search. If `along_matched` is True, this step of...
https://github.com/networkx/networkx/issues/2384
$ python2.7 vertex_cover.py Using version 1.11 Edges: [(0, 3), (1, 3), (1, 4), (2, 3)] Matching: {0: 3, 1: 4, 3: 0, 4: 1} Vertex cover: set([0, 1]) Traceback (most recent call last): File "vertex_cover.py", line 16, in <module> assert u in vertex_cover or v in vertex_cover AssertionError $ python3.6 vertex_cover.py Usi...
AssertionError
def _connected_by_alternating_paths(G, matching, targets): """Returns the set of vertices that are connected to one of the target vertices by an alternating path in `G` or are themselves a target. An *alternating path* is a path in which every other edge is in the specified maximum matching (and the re...
def _connected_by_alternating_paths(G, matching, targets): """Returns the set of vertices that are connected to one of the target vertices by an alternating path in `G`. An *alternating path* is a path in which every other edge is in the specified maximum matching (and the remaining edges in the path a...
https://github.com/networkx/networkx/issues/2384
$ python2.7 vertex_cover.py Using version 1.11 Edges: [(0, 3), (1, 3), (1, 4), (2, 3)] Matching: {0: 3, 1: 4, 3: 0, 4: 1} Vertex cover: set([0, 1]) Traceback (most recent call last): File "vertex_cover.py", line 16, in <module> assert u in vertex_cover or v in vertex_cover AssertionError $ python3.6 vertex_cover.py Usi...
AssertionError
def girvan_newman(G, most_valuable_edge=None): """Finds communities in a graph using the Girvan–Newman method. Parameters ---------- G : NetworkX graph most_valuable_edge : function Function that takes a graph as input and outputs an edge. The edge returned by this function will be...
def girvan_newman(G, weight=None): """Find communities in graph using Girvan–Newman method. Parameters ---------- G : NetworkX graph weight : string, optional (default=None) Edge data key corresponding to the edge weight. Returns ------- List of tuples which contains the cluste...
https://github.com/networkx/networkx/issues/1799
./community_detection.py ../data/en_Influenza_1.pickle Traceback (most recent call last): File "./community_detection.py", line 32, in <module> communities = nx.girvan_newman(args.graph) File "[path]/env/lib/python3.4/site-packages/networkx/algorithms/community/centrality.py", line 39, in girvan_newman _remove_max_edge...
ValueError
def reject_nuls(): for key, values in request.values.iterlists(): if "\0" in key or any("\0" in x for x in values): raise BadRequest("NUL byte found in request data")
def reject_nuls(): for key, values in request.args.iterlists(): if "\0" in key or any("\0" in x for x in values): raise BadRequest("NUL byte found in query data")
https://github.com/indico/indico/issues/4159
2019-11-16 21:49:23,476 1a8ef9e1a5eb4b69 indico.flask - ERROR errors.py:96 -- A string literal cannot contain NUL (0x00) characters. Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1949, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/pyt...
ValueError
def _check_version(self, distribution, current_version=None): try: response = requests.get( "https://pypi.python.org/pypi/{}/json".format(distribution) ) except requests.RequestException as exc: Logger.get("versioncheck").warning( "Version check for %s failed: %s"...
def _check_version(self, distribution, current_version=None): response = requests.get("https://pypi.python.org/pypi/{}/json".format(distribution)) try: data = response.json() except ValueError: return None if current_version is None: try: current_version = get_distrib...
https://github.com/indico/indico/issues/3209
2018-01-18 06:57:43,036 28e04a15777a48cb indico.flask - ERROR errors.py:107 -- HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded with url: /pypi/indico/json (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xda97a90>: Failed to establish a new connection: ...
ConnectionError
def __init__(self, *args, **kwargs): self.application = kwargs.pop("application", None) super(ApplicationForm, self).__init__(*args, **kwargs) if self.application is not None: for field in self.application.system_app_type.enforced_data: # preserve existing value for disabled fields ...
def __init__(self, *args, **kwargs): self.application = kwargs.pop("application", None) super(ApplicationForm, self).__init__(*args, **kwargs) for field in self.application.system_app_type.enforced_data: # preserve existing value for disabled fields self[field].data = self[field].object_data...
https://github.com/indico/indico/issues/3075
Traceback (most recent call last): File "/usr/home/indicoadm/indicov2/.indicov2/lib/python2.7/site-packages/indico/legacy/webinterface/rh/base.py", line 493, in process profile_name, res = self._do_process(profile) File "/usr/home/indicoadm/indicov2/.indicov2/lib/python2.7/site-packages/indico/legacy/webinterface/rh/ba...
AttributeError
def get_columns(self, connection, tablename, dbname, owner, schema, **kw): # Get base columns columns = ischema.columns computed_cols = ischema.computed_columns if owner: whereclause = sql.and_( columns.c.table_name == tablename, columns.c.table_schema == owner, )...
def get_columns(self, connection, tablename, dbname, owner, schema, **kw): # Get base columns columns = ischema.columns computed_cols = ischema.computed_columns if owner: whereclause = sql.and_( columns.c.table_name == tablename, columns.c.table_schema == owner, )...
https://github.com/sqlalchemy/sqlalchemy/issues/5921
Traceback (most recent call last): File "C:\somewhere\miniconda3\envs\migration\lib\site-packages\sqlalchemy\engine\base.py", line 1276, in _execute_context self.dialect.do_execute( File "C:\somewhere\miniconda3\envs\migration\lib\site-packages\sqlalchemy\engine\default.py", line 593, in do_execute cursor.execute(state...
pyodbc.ProgrammingError
def _is_event_name(name): # _sa_event prefix is special to support internal-only event names. # most event names are just plain method names that aren't # underscored. return (not name.startswith("_") and name != "dispatch") or name.startswith( "_sa_event" )
def _is_event_name(name): return not name.startswith("_") and name != "dispatch"
https://github.com/sqlalchemy/sqlalchemy/issues/5919
Traceback (most recent call last): File "/home/kshutt/.config/JetBrains/PyCharm2020.3/scratches/scratch_4.py", line 41, in <module> table.__table__.create(engine) File "/home/kshutt/mandate/lib/python2.7/site-packages/sqlalchemy/sql/schema.py", line 928, in create bind._run_visitor(ddl.SchemaGenerator, self, checkfirst...
IndexError
def _column_X(self, idx, attrname): if self._is_fk: try: fk = self.const.elements[idx] except IndexError: return "" else: return getattr(fk.parent, attrname) else: cols = list(self.const.columns) try: col = cols[idx] ...
def _column_X(self, idx): if self._is_fk: fk = self.const.elements[idx] return fk.parent else: return list(self.const.columns)[idx]
https://github.com/sqlalchemy/sqlalchemy/issues/5919
Traceback (most recent call last): File "/home/kshutt/.config/JetBrains/PyCharm2020.3/scratches/scratch_4.py", line 41, in <module> table.__table__.create(engine) File "/home/kshutt/mandate/lib/python2.7/site-packages/sqlalchemy/sql/schema.py", line 928, in create bind._run_visitor(ddl.SchemaGenerator, self, checkfirst...
IndexError
def _key_column_X_key(self, idx): # note this method was missing before # [ticket:3989], meaning tokens like ``%(column_0_key)s`` weren't # working even though documented. return self._column_X(idx, "key")
def _key_column_X_key(self, idx): # note this method was missing before # [ticket:3989], meaning tokens like ``%(column_0_key)s`` weren't # working even though documented. return self._column_X(idx).key
https://github.com/sqlalchemy/sqlalchemy/issues/5919
Traceback (most recent call last): File "/home/kshutt/.config/JetBrains/PyCharm2020.3/scratches/scratch_4.py", line 41, in <module> table.__table__.create(engine) File "/home/kshutt/mandate/lib/python2.7/site-packages/sqlalchemy/sql/schema.py", line 928, in create bind._run_visitor(ddl.SchemaGenerator, self, checkfirst...
IndexError
def _key_column_X_name(self, idx): return self._column_X(idx, "name")
def _key_column_X_name(self, idx): return self._column_X(idx).name
https://github.com/sqlalchemy/sqlalchemy/issues/5919
Traceback (most recent call last): File "/home/kshutt/.config/JetBrains/PyCharm2020.3/scratches/scratch_4.py", line 41, in <module> table.__table__.create(engine) File "/home/kshutt/mandate/lib/python2.7/site-packages/sqlalchemy/sql/schema.py", line 928, in create bind._run_visitor(ddl.SchemaGenerator, self, checkfirst...
IndexError
def _key_column_X_label(self, idx): return self._column_X(idx, "_ddl_label")
def _key_column_X_label(self, idx): return self._column_X(idx)._ddl_label
https://github.com/sqlalchemy/sqlalchemy/issues/5919
Traceback (most recent call last): File "/home/kshutt/.config/JetBrains/PyCharm2020.3/scratches/scratch_4.py", line 41, in <module> table.__table__.create(engine) File "/home/kshutt/mandate/lib/python2.7/site-packages/sqlalchemy/sql/schema.py", line 928, in create bind._run_visitor(ddl.SchemaGenerator, self, checkfirst...
IndexError
def _constraint_name(const, table): if isinstance(table, Column): # this path occurs for a CheckConstraint linked to a Column # for column-attached constraint, set another event # to link the column attached to the table as this constraint # associated with the table. event....
def _constraint_name(const, table): if isinstance(table, Column): # for column-attached constraint, set another event # to link the column attached to the table as this constraint # associated with the table. event.listen( table, "after_parent_attach", ...
https://github.com/sqlalchemy/sqlalchemy/issues/5919
Traceback (most recent call last): File "/home/kshutt/.config/JetBrains/PyCharm2020.3/scratches/scratch_4.py", line 41, in <module> table.__table__.create(engine) File "/home/kshutt/mandate/lib/python2.7/site-packages/sqlalchemy/sql/schema.py", line 928, in create bind._run_visitor(ddl.SchemaGenerator, self, checkfirst...
IndexError
def _set_parent(self, table, allow_replacements=True): if not self.name: raise exc.ArgumentError( "Column must be constructed with a non-blank name or " "assign a non-blank .name before adding to a Table." ) self._reset_memoizations() if self.key is None: se...
def _set_parent(self, table, allow_replacements=True): if not self.name: raise exc.ArgumentError( "Column must be constructed with a non-blank name or " "assign a non-blank .name before adding to a Table." ) self._reset_memoizations() if self.key is None: se...
https://github.com/sqlalchemy/sqlalchemy/issues/5919
Traceback (most recent call last): File "/home/kshutt/.config/JetBrains/PyCharm2020.3/scratches/scratch_4.py", line 41, in <module> table.__table__.create(engine) File "/home/kshutt/mandate/lib/python2.7/site-packages/sqlalchemy/sql/schema.py", line 928, in create bind._run_visitor(ddl.SchemaGenerator, self, checkfirst...
IndexError
def _replace(self, col): PrimaryKeyConstraint._autoincrement_column._reset(self) self.columns.replace(col) self.dispatch._sa_event_column_added_to_pk_constraint(self, col)
def _replace(self, col): PrimaryKeyConstraint._autoincrement_column._reset(self) self.columns.replace(col)
https://github.com/sqlalchemy/sqlalchemy/issues/5919
Traceback (most recent call last): File "/home/kshutt/.config/JetBrains/PyCharm2020.3/scratches/scratch_4.py", line 41, in <module> table.__table__.create(engine) File "/home/kshutt/mandate/lib/python2.7/site-packages/sqlalchemy/sql/schema.py", line 928, in create bind._run_visitor(ddl.SchemaGenerator, self, checkfirst...
IndexError
def _set_parent(self, table): if not self.name: raise exc.ArgumentError( "Column must be constructed with a non-blank name or " "assign a non-blank .name before adding to a Table." ) if self.key is None: self.key = self.name existing = getattr(self, "table", ...
def _set_parent(self, table): if not self.name: raise exc.ArgumentError( "Column must be constructed with a non-blank name or " "assign a non-blank .name before adding to a Table." ) if self.key is None: self.key = self.name existing = getattr(self, "table", ...
https://github.com/sqlalchemy/sqlalchemy/issues/5919
Traceback (most recent call last): File "/home/kshutt/.config/JetBrains/PyCharm2020.3/scratches/scratch_4.py", line 41, in <module> table.__table__.create(engine) File "/home/kshutt/mandate/lib/python2.7/site-packages/sqlalchemy/sql/schema.py", line 928, in create bind._run_visitor(ddl.SchemaGenerator, self, checkfirst...
IndexError
def copy(self, target_table=None, **kw): elements = [ ( schema._copy_expression(expr, self.parent, target_table), self.operators[expr.name], ) for expr in self.columns ] c = self.__class__( *elements, name=self.name, deferrable=self.def...
def copy(self, **kw): elements = [(col, self.operators[col]) for col in self.columns.keys()] c = self.__class__( *elements, name=self.name, deferrable=self.deferrable, initially=self.initially, where=self.where, using=self.using, ) c.dispatch._update(self....
https://github.com/sqlalchemy/sqlalchemy/issues/5850
=============================================== FAILURES ================================================ _________________________________ ToMetaDataExcludeConstraint.test_copy _________________________________ Traceback (most recent call last): File "/home/jeffh/workspace/vortex-workspace/vfinance/subrepos/SQLAlchemy...
KeyError
def visit_unique_constraint(self, constraint): text = super(SQLiteDDLCompiler, self).visit_unique_constraint(constraint) on_conflict_clause = constraint.dialect_options["sqlite"]["on_conflict"] if on_conflict_clause is None and len(constraint.columns) == 1: col1 = list(constraint)[0] if isi...
def visit_unique_constraint(self, constraint): text = super(SQLiteDDLCompiler, self).visit_unique_constraint(constraint) on_conflict_clause = constraint.dialect_options["sqlite"]["on_conflict"] if on_conflict_clause is None and len(constraint.columns) == 1: on_conflict_clause = list(constraint)[0]....
https://github.com/sqlalchemy/sqlalchemy/issues/5850
=============================================== FAILURES ================================================ _________________________________ ToMetaDataExcludeConstraint.test_copy _________________________________ Traceback (most recent call last): File "/home/jeffh/workspace/vortex-workspace/vfinance/subrepos/SQLAlchemy...
KeyError
def _copy_expression(expression, source_table, target_table): if source_table is None or target_table is None: return expression def replace(col): if ( isinstance(col, Column) and col.table is source_table and col.key in source_table.c ): ...
def _copy_expression(expression, source_table, target_table): def replace(col): if ( isinstance(col, Column) and col.table is source_table and col.key in source_table.c ): return target_table.c[col.key] else: return None return...
https://github.com/sqlalchemy/sqlalchemy/issues/5850
=============================================== FAILURES ================================================ _________________________________ ToMetaDataExcludeConstraint.test_copy _________________________________ Traceback (most recent call last): File "/home/jeffh/workspace/vortex-workspace/vfinance/subrepos/SQLAlchemy...
KeyError
def copy(self, target_table=None, **kw): # ticket #5276 constraint_kwargs = {} for dialect_name in self.dialect_options: dialect_options = self.dialect_options[dialect_name]._non_defaults for ( dialect_option_key, dialect_option_value, ) in dialect_options.ite...
def copy(self, **kw): # ticket #5276 constraint_kwargs = {} for dialect_name in self.dialect_options: dialect_options = self.dialect_options[dialect_name]._non_defaults for ( dialect_option_key, dialect_option_value, ) in dialect_options.items(): c...
https://github.com/sqlalchemy/sqlalchemy/issues/5850
=============================================== FAILURES ================================================ _________________________________ ToMetaDataExcludeConstraint.test_copy _________________________________ Traceback (most recent call last): File "/home/jeffh/workspace/vortex-workspace/vfinance/subrepos/SQLAlchemy...
KeyError
def copy(self, target_table=None, **kw): if target_table is not None: # note that target_table is None for the copy process of # a column-bound CheckConstraint, so this path is not reached # in that case. sqltext = _copy_expression(self.sqltext, self.table, target_table) else: ...
def copy(self, target_table=None, **kw): if target_table is not None: sqltext = _copy_expression(self.sqltext, self.table, target_table) else: sqltext = self.sqltext c = CheckConstraint( sqltext, name=self.name, initially=self.initially, deferrable=self.deferr...
https://github.com/sqlalchemy/sqlalchemy/issues/5850
=============================================== FAILURES ================================================ _________________________________ ToMetaDataExcludeConstraint.test_copy _________________________________ Traceback (most recent call last): File "/home/jeffh/workspace/vortex-workspace/vfinance/subrepos/SQLAlchemy...
KeyError
def copy(self, target_table=None, **kw): sqltext = _copy_expression( self.sqltext, self.column.table if self.column is not None else None, target_table, ) g = Computed(sqltext, persisted=self.persisted) return self._schema_item_copy(g)
def copy(self, target_table=None, **kw): if target_table is not None: sqltext = _copy_expression(self.sqltext, self.table, target_table) else: sqltext = self.sqltext g = Computed(sqltext, persisted=self.persisted) return self._schema_item_copy(g)
https://github.com/sqlalchemy/sqlalchemy/issues/5850
=============================================== FAILURES ================================================ _________________________________ ToMetaDataExcludeConstraint.test_copy _________________________________ Traceback (most recent call last): File "/home/jeffh/workspace/vortex-workspace/vfinance/subrepos/SQLAlchemy...
KeyError
def copy(self, **kw): i = Identity( always=self.always, on_null=self.on_null, start=self.start, increment=self.increment, minvalue=self.minvalue, maxvalue=self.maxvalue, nominvalue=self.nominvalue, nomaxvalue=self.nomaxvalue, cycle=self.cycle, ...
def copy(self, target_table=None, **kw): i = Identity( always=self.always, on_null=self.on_null, start=self.start, increment=self.increment, minvalue=self.minvalue, maxvalue=self.maxvalue, nominvalue=self.nominvalue, nomaxvalue=self.nomaxvalue, ...
https://github.com/sqlalchemy/sqlalchemy/issues/5850
=============================================== FAILURES ================================================ _________________________________ ToMetaDataExcludeConstraint.test_copy _________________________________ Traceback (most recent call last): File "/home/jeffh/workspace/vortex-workspace/vfinance/subrepos/SQLAlchemy...
KeyError
def __init__(self, compiler, element_type, message=None): super(UnsupportedCompilationError, self).__init__( "Compiler %r can't render element of type %s%s" % (compiler, element_type, ": %s" % message if message else "") )
def __init__(self, compiler, element_type): super(UnsupportedCompilationError, self).__init__( "Compiler %r can't render element of type %s" % (compiler, element_type) )
https://github.com/sqlalchemy/sqlalchemy/issues/5836
Traceback (most recent call last): File "/root/git/feed_test_results/venv/lib/python3.7/site-packages/sqlalchemy/sql/visitors.py", line 89, in _compiler_dispatch meth = getter(visitor) AttributeError: 'StrSQLCompiler' object has no attribute 'visit_column_element' The above exception was the direct cause of the follow...
AttributeError
def compiles(class_, *specs): """Register a function as a compiler for a given :class:`_expression.ClauseElement` type.""" def decorate(fn): # get an existing @compiles handler existing = class_.__dict__.get("_compiler_dispatcher", None) # get the original handler. All ClauseEleme...
def compiles(class_, *specs): """Register a function as a compiler for a given :class:`_expression.ClauseElement` type.""" def decorate(fn): # get an existing @compiles handler existing = class_.__dict__.get("_compiler_dispatcher", None) # get the original handler. All ClauseEleme...
https://github.com/sqlalchemy/sqlalchemy/issues/5836
Traceback (most recent call last): File "/root/git/feed_test_results/venv/lib/python3.7/site-packages/sqlalchemy/sql/visitors.py", line 89, in _compiler_dispatch meth = getter(visitor) AttributeError: 'StrSQLCompiler' object has no attribute 'visit_column_element' The above exception was the direct cause of the follow...
AttributeError
def decorate(fn): # get an existing @compiles handler existing = class_.__dict__.get("_compiler_dispatcher", None) # get the original handler. All ClauseElement classes have one # of these, but some TypeEngine classes will not. existing_dispatch = getattr(class_, "_compiler_dispatch", None) i...
def decorate(fn): # get an existing @compiles handler existing = class_.__dict__.get("_compiler_dispatcher", None) # get the original handler. All ClauseElement classes have one # of these, but some TypeEngine classes will not. existing_dispatch = getattr(class_, "_compiler_dispatch", None) i...
https://github.com/sqlalchemy/sqlalchemy/issues/5836
Traceback (most recent call last): File "/root/git/feed_test_results/venv/lib/python3.7/site-packages/sqlalchemy/sql/visitors.py", line 89, in _compiler_dispatch meth = getter(visitor) AttributeError: 'StrSQLCompiler' object has no attribute 'visit_column_element' The above exception was the direct cause of the follow...
AttributeError
def _wrap_existing_dispatch(element, compiler, **kw): try: return existing_dispatch(element, compiler, **kw) except exc.UnsupportedCompilationError as uce: util.raise_( exc.UnsupportedCompilationError( compiler, type(element), message="...
def _wrap_existing_dispatch(element, compiler, **kw): try: return existing_dispatch(element, compiler, **kw) except exc.UnsupportedCompilationError as uce: util.raise_( exc.CompileError( "%s construct has no default compilation handler." % type(element) ),...
https://github.com/sqlalchemy/sqlalchemy/issues/5836
Traceback (most recent call last): File "/root/git/feed_test_results/venv/lib/python3.7/site-packages/sqlalchemy/sql/visitors.py", line 89, in _compiler_dispatch meth = getter(visitor) AttributeError: 'StrSQLCompiler' object has no attribute 'visit_column_element' The above exception was the direct cause of the follow...
AttributeError
def __call__(self, element, compiler, **kw): # TODO: yes, this could also switch off of DBAPI in use. fn = self.specs.get(compiler.dialect.name, None) if not fn: try: fn = self.specs["default"] except KeyError as ke: util.raise_( exc.UnsupportedCompila...
def __call__(self, element, compiler, **kw): # TODO: yes, this could also switch off of DBAPI in use. fn = self.specs.get(compiler.dialect.name, None) if not fn: try: fn = self.specs["default"] except KeyError as ke: util.raise_( exc.CompileError( ...
https://github.com/sqlalchemy/sqlalchemy/issues/5836
Traceback (most recent call last): File "/root/git/feed_test_results/venv/lib/python3.7/site-packages/sqlalchemy/sql/visitors.py", line 89, in _compiler_dispatch meth = getter(visitor) AttributeError: 'StrSQLCompiler' object has no attribute 'visit_column_element' The above exception was the direct cause of the follow...
AttributeError
def __call__(self, element, compiler, **kw): # TODO: yes, this could also switch off of DBAPI in use. fn = self.specs.get(compiler.dialect.name, None) if not fn: try: fn = self.specs["default"] except KeyError as ke: util.raise_( exc.UnsupportedCompila...
def __call__(self, element, compiler, **kw): # TODO: yes, this could also switch off of DBAPI in use. fn = self.specs.get(compiler.dialect.name, None) if not fn: try: fn = self.specs["default"] except KeyError as ke: util.raise_( exc.CompileError( ...
https://github.com/sqlalchemy/sqlalchemy/issues/5836
Traceback (most recent call last): File "/root/git/feed_test_results/venv/lib/python3.7/site-packages/sqlalchemy/sql/visitors.py", line 89, in _compiler_dispatch meth = getter(visitor) AttributeError: 'StrSQLCompiler' object has no attribute 'visit_column_element' The above exception was the direct cause of the follow...
AttributeError
def visit_create_index(self, create, include_schema=False): index = create.element self._verify_index_table(index) preparer = self.preparer text = "CREATE " if index.unique: text += "UNIQUE " # handle clustering option clustered = index.dialect_options["mssql"]["clustered"] if c...
def visit_create_index(self, create, include_schema=False): index = create.element self._verify_index_table(index) preparer = self.preparer text = "CREATE " if index.unique: text += "UNIQUE " # handle clustering option clustered = index.dialect_options["mssql"]["clustered"] if c...
https://github.com/sqlalchemy/sqlalchemy/issues/5751
Traceback (most recent call last): File "C:\dev\sqlalchemy_reproduce\sqlalchemy_reproduce-EWF-LNSc\lib\site-packages\sqlalchemy\engine\base.py", line 1276, in _execute_context self.dialect.do_execute( File "C:\dev\sqlalchemy_reproduce\sqlalchemy_reproduce-EWF-LNSc\lib\site-packages\sqlalchemy\engine\default.py", line 5...
pyodbc.ProgrammingError
def visit_create_index(self, create, include_schema=False): index = create.element self._verify_index_table(index) preparer = self.preparer text = "CREATE " if index.unique: text += "UNIQUE " # handle clustering option clustered = index.dialect_options["mssql"]["clustered"] if c...
def visit_create_index(self, create, include_schema=False): index = create.element self._verify_index_table(index) preparer = self.preparer text = "CREATE " if index.unique: text += "UNIQUE " # handle clustering option clustered = index.dialect_options["mssql"]["clustered"] if c...
https://github.com/sqlalchemy/sqlalchemy/issues/5751
Traceback (most recent call last): File "C:\dev\sqlalchemy_reproduce\sqlalchemy_reproduce-EWF-LNSc\lib\site-packages\sqlalchemy\engine\base.py", line 1276, in _execute_context self.dialect.do_execute( File "C:\dev\sqlalchemy_reproduce\sqlalchemy_reproduce-EWF-LNSc\lib\site-packages\sqlalchemy\engine\default.py", line 5...
pyodbc.ProgrammingError
def visit_on_duplicate_key_update(self, on_duplicate, **kw): statement = self.current_executable if on_duplicate._parameter_ordering: parameter_ordering = [ coercions.expect(roles.DMLColumnRole, key) for key in on_duplicate._parameter_ordering ] ordered_keys = se...
def visit_on_duplicate_key_update(self, on_duplicate, **kw): if on_duplicate._parameter_ordering: parameter_ordering = [ coercions.expect(roles.DMLColumnRole, key) for key in on_duplicate._parameter_ordering ] ordered_keys = set(parameter_ordering) cols = [ ...
https://github.com/sqlalchemy/sqlalchemy/issues/5656
Traceback (most recent call last): File "./reproduction.py", line 315, in <module> Score.__table__.create() File "….virtualenvs/yeepa/lib/python2.7/site-packages/sqlalchemy/sql/schema.py", line 925, in create bind._run_visitor(ddl.SchemaGenerator, self, checkfirst=checkfirst) File "….virtualenvs/yeepa/lib/python2.7/sit...
AttributeError
def visit_on_conflict_do_update(self, on_conflict, **kw): clause = on_conflict target_text = self._on_conflict_target(on_conflict, **kw) action_set_ops = [] set_parameters = dict(clause.update_values_to_set) # create a list of column assignment clauses as tuples insert_statement = self.stack...
def visit_on_conflict_do_update(self, on_conflict, **kw): clause = on_conflict target_text = self._on_conflict_target(on_conflict, **kw) action_set_ops = [] set_parameters = dict(clause.update_values_to_set) # create a list of column assignment clauses as tuples insert_statement = self.stack...
https://github.com/sqlalchemy/sqlalchemy/issues/5656
Traceback (most recent call last): File "./reproduction.py", line 315, in <module> Score.__table__.create() File "….virtualenvs/yeepa/lib/python2.7/site-packages/sqlalchemy/sql/schema.py", line 925, in create bind._run_visitor(ddl.SchemaGenerator, self, checkfirst=checkfirst) File "….virtualenvs/yeepa/lib/python2.7/sit...
AttributeError
def create_for_statement(cls, statement, compiler, **kw): self = cls.__new__(cls) ext_info = statement.table._annotations["parententity"] self.mapper = mapper = ext_info.mapper self.extra_criteria_entities = {} self._resolved_values = cls._get_resolved_values(mapper, statement) extra_criter...
def create_for_statement(cls, statement, compiler, **kw): self = cls.__new__(cls) ext_info = statement.table._annotations["parententity"] self.mapper = mapper = ext_info.mapper self.extra_criteria_entities = {} self._resolved_values = cls._get_resolved_values(mapper, statement) extra_criter...
https://github.com/sqlalchemy/sqlalchemy/issues/5656
Traceback (most recent call last): File "./reproduction.py", line 315, in <module> Score.__table__.create() File "….virtualenvs/yeepa/lib/python2.7/site-packages/sqlalchemy/sql/schema.py", line 925, in create bind._run_visitor(ddl.SchemaGenerator, self, checkfirst=checkfirst) File "….virtualenvs/yeepa/lib/python2.7/sit...
AttributeError
def create_for_statement(cls, statement, compiler, **kw): self = cls.__new__(cls) ext_info = statement.table._annotations["parententity"] self.mapper = mapper = ext_info.mapper self.extra_criteria_entities = {} extra_criteria_attributes = {} for opt in statement._with_options: if opt...
def create_for_statement(cls, statement, compiler, **kw): self = cls.__new__(cls) ext_info = statement.table._annotations["parententity"] self.mapper = mapper = ext_info.mapper top_level_stmt = compiler.statement self.extra_criteria_entities = {} extra_criteria_attributes = {} for opt i...
https://github.com/sqlalchemy/sqlalchemy/issues/5656
Traceback (most recent call last): File "./reproduction.py", line 315, in <module> Score.__table__.create() File "….virtualenvs/yeepa/lib/python2.7/site-packages/sqlalchemy/sql/schema.py", line 925, in create bind._run_visitor(ddl.SchemaGenerator, self, checkfirst=checkfirst) File "….virtualenvs/yeepa/lib/python2.7/sit...
AttributeError
def __init__( self, dialect, statement, schema_translate_map=None, render_schema_translate=False, compile_kwargs=util.immutabledict(), ): """Construct a new :class:`.Compiled` object. :param dialect: :class:`.Dialect` to compile against. :param statement: :class:`_expression.Clause...
def __init__( self, dialect, statement, schema_translate_map=None, render_schema_translate=False, compile_kwargs=util.immutabledict(), ): """Construct a new :class:`.Compiled` object. :param dialect: :class:`.Dialect` to compile against. :param statement: :class:`_expression.Clause...
https://github.com/sqlalchemy/sqlalchemy/issues/5656
Traceback (most recent call last): File "./reproduction.py", line 315, in <module> Score.__table__.create() File "….virtualenvs/yeepa/lib/python2.7/site-packages/sqlalchemy/sql/schema.py", line 925, in create bind._run_visitor(ddl.SchemaGenerator, self, checkfirst=checkfirst) File "….virtualenvs/yeepa/lib/python2.7/sit...
AttributeError
def visit_on_duplicate_key_update(self, on_duplicate, **kw): statement = self.current_executable if on_duplicate._parameter_ordering: parameter_ordering = [ elements._column_as_key(key) for key in on_duplicate._parameter_ordering ] ordered_keys = set(parameter_ordering) ...
def visit_on_duplicate_key_update(self, on_duplicate, **kw): if on_duplicate._parameter_ordering: parameter_ordering = [ elements._column_as_key(key) for key in on_duplicate._parameter_ordering ] ordered_keys = set(parameter_ordering) cols = [ self.statement.t...
https://github.com/sqlalchemy/sqlalchemy/issues/5656
Traceback (most recent call last): File "./reproduction.py", line 315, in <module> Score.__table__.create() File "….virtualenvs/yeepa/lib/python2.7/site-packages/sqlalchemy/sql/schema.py", line 925, in create bind._run_visitor(ddl.SchemaGenerator, self, checkfirst=checkfirst) File "….virtualenvs/yeepa/lib/python2.7/sit...
AttributeError
def visit_on_conflict_do_update(self, on_conflict, **kw): clause = on_conflict target_text = self._on_conflict_target(on_conflict, **kw) action_set_ops = [] set_parameters = dict(clause.update_values_to_set) # create a list of column assignment clauses as tuples insert_statement = self.stack...
def visit_on_conflict_do_update(self, on_conflict, **kw): clause = on_conflict target_text = self._on_conflict_target(on_conflict, **kw) action_set_ops = [] set_parameters = dict(clause.update_values_to_set) # create a list of column assignment clauses as tuples insert_statement = self.stack...
https://github.com/sqlalchemy/sqlalchemy/issues/5656
Traceback (most recent call last): File "./reproduction.py", line 315, in <module> Score.__table__.create() File "….virtualenvs/yeepa/lib/python2.7/site-packages/sqlalchemy/sql/schema.py", line 925, in create bind._run_visitor(ddl.SchemaGenerator, self, checkfirst=checkfirst) File "….virtualenvs/yeepa/lib/python2.7/sit...
AttributeError