python / cpython

The Python programming language
https://www.python.org
Other
62.71k stars 30.06k forks source link

Built-in exception class not found: UnboundLocalError. #32946

Closed 50eff062-408a-4098-b1b2-8222303b9d0c closed 24 years ago

50eff062-408a-4098-b1b2-8222303b9d0c commented 24 years ago
BPO 212113
Nosy @gvanrossum, @warsaw

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields: ```python assignee = 'https://github.com/warsaw' closed_at = created_at = labels = ['library'] title = 'Built-in exception class not found: UnboundLocalError. ' updated_at = user = 'https://bugs.python.org/anonymous' ``` bugs.python.org fields: ```python activity = actor = 'gvanrossum' assignee = 'barry' closed = True closed_date = None closer = None components = ['Library (Lib)'] creation = creator = 'anonymous' dependencies = [] files = [] hgrepos = [] issue_num = 212113 keywords = [] message_count = 3.0 messages = ['1036', '1037', '1038'] nosy_count = 3.0 nosy_names = ['gvanrossum', 'nobody', 'barry'] pr_nums = [] priority = 'high' resolution = 'works for me' stage = None status = 'closed' superseder = None type = None url = 'https://bugs.python.org/issue212113' versions = [] ```

3772858d-27d8-44b0-a664-d68674859f36 commented 24 years ago

I've just compiled Python-1.6b1 for QNX4.25 and QNX/Neutrino 2.1. The Neutrino port works ... but the QNX 4.25 port make problems:

# ./python Built-in exception class not found: UnboundLocalError. Library mismatch? Fatal Python error: Standard exceptions could not be initialized. %1 19800 Abort ./python #

The lookdict() call returns a NULL value in the init phase of python. Any tips for fixing that problem?

Regards

Armin Steinhoff

Armin@Steinhoff.de

3772858d-27d8-44b0-a664-d68674859f36 commented 24 years ago

QNX/Neutrino was compiled with -> GNU gcc QNX 4.25 with -> Watcom 10.6

Armin

gvanrossum commented 24 years ago

Closed. My suspicion is that this was caused by a spurious PYTHONPATH pointing to an old version of the library. The submittor can debug this by using "python -v".