Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to run the first code block in lab1.ipynb under ict133 #4

Open
KeJun11 opened this issue Sep 25, 2024 · 0 comments
Open

Comments

@KeJun11
Copy link

KeJun11 commented Sep 25, 2024

When I try running the code block, I get an error that doesn't allow me to proceed

# Import some libraries to set up this assignment
from learntools.core import binder;
binder.bind(globals())
from suss.ict133.lab1 import *
print("Setup complete! You're ready to start question 1.")

An error occurs on the line from suss.ict133.lab1 import *

I get an index error at

==== File ..\venv\Lib\site-packages\suss\ict133\lab1.py:29 ===
13 # Enter the classes in order and makesure they have different names
14 # bind_exercises will convert them into ex0, ex1, ex2 for instance.
15 qvars = bind_exercises(globals(), [
16 Question1,
17 Question2,
(...)
27 var_format='q{n}',
28 )
---> 29 __all__ = list(qvars)

=== File ..\venv\Lib\site-packages\learntools\core\utils.py:74, in bind_exercises(g, exercises, start, var_format) ===
72         mpp._prob_map[letter] = prob
73  else:
74         pv = instantiate_probview(prob_cls, value_per_problem)
75         pv._order = str(qno)
76         g[varname] = pv
...
15        return
---> 16 exercise, course = path.split('/')[-1].split('.')[0], path.split('/')[-2]
17 return exercise, course
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant