Questions tagged [unbound]
73 questions
0
votes
1 answer
Calculate data dynamically of same row of column with conditions in SQL
I have a table with data of customer with interaction to touchpoint . I need to calculate the time-difference of customer & identify the customer as repeat if the customer is touching the point with in 180 seconds , but if the customer come again…
0
votes
1 answer
Python gives unbound error when variable is defined
Hello I have an error which is telling me variable defined but it's defined line above
What did I do wrong?
My code:
a = open("dialogs/dialogs.txt").read().splitlines()
def parse(string):
string = string.lower().split()
s1 = ""
for l in…
user20545517
0
votes
0 answers
Cant figure out how to get rid of Unbound Local Error; 'global' not working
I'm trying to write a die-rolling program, but I keep getting the Unbound error. I tried putting 'global in front of endGame, but it didn't seem to fix my issue, as well as re-arranging my pseudocodes many different ways. Are there any suggestions…
0
votes
0 answers
How do I update an unbound picture object in subform 2 based on the change focus command of a recordset in subform 1?
I Have a form with 2 subforms. the Mainform is attached to a table called FrmFilters. From this I have created 2 filter objects, the 1st Filter (Filter1) is a drop list which acts as the Link to Subfrm1, the 2nd Filter (Filter2) is a txt object…

Andy
- 1
- 1
0
votes
0 answers
Why does function descriptor create new bound method each time
Could you explain why new bound method is created each time when trying to access same method of the same class instance?
class MyClass:
def my_method(self):
print(f"Called bounded to {self}")
m_unbound =…

GopherM
- 352
- 2
- 8
0
votes
0 answers
vscode/protractor unbound breakpoints
I'm trying to debug a Protractor e2e test of an Angular application. I want to start from the e2e test and stop in the application.
I set a breakpoint in the e2e test and one in an Angular component (which should be hit when running the…

Fanfoue
- 61
- 4
0
votes
1 answer
UnboundLocalError - variable referenced before assignment
I have the following function that I need help debugging. I am getting an error saying
"in checkValidMove
i
UnboundLocalError: local variable 'i' referenced before assignment"
How can I fix this? Please see the function below. Thanks!
def…

Bingolina_Ava
- 3
- 2
0
votes
1 answer
Fixing a surprising Python UnboundLocalError
Hi so I am trying to write a code that sorts an array from a given node such that it has a max heap property. The code is as follows:
def left_child(index):
return (index * 2) + 1
def right_child(index):
return (index + 1) * 2
def…

Lyxcoder
- 33
- 5
0
votes
0 answers
How can I get PIVPN to work alongside Pi-hole and Unbound?
I have a Raspberry Pi running Pi-hole and Unbound. I installed PIVPN and can connect to it without any issues. The problem is websites will not load. Any ideas on how to fix this issue?

Jessica Guerard
- 386
- 3
- 16
0
votes
2 answers
Problem calling variables in a function. UnboundLocalError: local variable 'prev_avg_gain' referenced before assignment
I am trying to write a function to calculate RSI data using input from a list or by pulling live price data from an API.
The script worked fine when feeding it data directly from a list, but while I am trying to convert it to a function, I am…

zanetampa911
- 1
- 2
0
votes
2 answers
How can I access image constructors for a pattern-matching in Vg, Ocaml?
I'm trying to re-write the equal function from the Vg.I module for Ocaml but when I try to do a pattern-matching with an image (of type t) I got an error.
Here is my code :
open Vg;;
open Gg;;
let rec decompose i = match i with
| I.Primitive x ->…

mrBigoudi
- 13
- 2
0
votes
1 answer
A2019: how to get a context menu in a form for an unbound date control like for bound date controls
I'm not sure how it is possible to get the same contextmenu for an unbound form's control like for bound controls, both with a date value.
There are two unbound controls which get their control value…

candide
- 1
- 3
0
votes
0 answers
How to change bound script to unbound for selecting, editing, and creating derivative google docs in drive?
I developed a bound script with a UI accessible from a menu extension and clickable dropdown items embedded in a google doc file. The purpose of the script is to transition from the starting document template, allow team collaboration and editing,…

BGood
- 37
- 4
0
votes
1 answer
Python: TypeError: unbound method list.copy() needs an argument
Given the following methods from a class (sorry the names are in german), but the main question is why do I get an error when calling the method listeEntfernen with liste_links = self.listeEntfernen(self.gewichte, list[x]). I get the Error:…

Daniel P
- 13
- 1
- 2
0
votes
1 answer
Instance variable declared as unbound
I am trying to make a class with two parameters and a simple get method. But I am getting an error :Some type variables are unbound in this type. So my question is what am I doing wrong?
class basket num_apples num_bananas=
object
val mutable…

tacocat
- 23
- 4