# NameError: name not defined (even though it was defined earlier)

**URL:** <https://discourse.psychopy.org/t/nameerror-name-not-defined-even-though-it-was-defined-earlier/20122>\
**Category:** Online experiments\
**Tags:** pavlovia\
**Created:** [February 2, 2021, 10:40am UTC](https://discourse.psychopy.org/t/nameerror-name-not-defined-even-though-it-was-defined-earlier/20122 "2021-02-02T10:40:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dvbridges](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dvbridges/32/1918_2.png) [@dvbridges](https://discourse.psychopy.org/u/dvbridges)\
**Post date:** [February 2, 2021, 4:21pm UTC](https://discourse.psychopy.org/t/nameerror-name-not-defined-even-though-it-was-defined-earlier/20122/2 "2021-02-02T16:21:31Z")

</div>

@stelodae6 , you have both Python and JS errors above, so perhaps something is wring with the general logic. Do you have that code nested in a conditional, where perhaps listInput is not set? Please share the code so we can see what is happening.

---

_[View the full topic](https://discourse.psychopy.org/t/nameerror-name-not-defined-even-though-it-was-defined-earlier/20122)._
