Comment 10 for bug 174992

Revision history for this message
Tom Davidson (tjd-mit) wrote : Re: perspective.py requires dependency on python-numpy - causes UnboundLocalError

@prkos: That's true, but you're getiing a different error message than Dmitri and Mourad are. I think you are seeing a different bug...

In fact there are several different issues in this bug report, the first two of which I think should be broken out:

1- The original 'UnboundLocalError: local variable 'sp' referenced before assignment' error that Dmitri reported. I believe Mourad correctly identified this as being due to not converting to paths before running the extension, which is discussed at bug 186582 . Note that the bug title as it stands is wrong: Dmitri only saw this error *after* he installed numpy. A missing numpy is not what causes the error.

2- The 'ValueError: empty string for float' error in the envelope and perspective extensions that prkos sees. This is extensively discussed at bug 176750

3- The delivery of the numpy libraries on various platforms. This seems like what the subject of this bug has evolved into, so I'll update the title. There is also some useful discussion at a couple other bugs:
   - delivery of the lxml libraries on Win32: bug 178022
   - discussion of extensions checking for the existence of numpy/other deps at run time is at bug: 168843 (closed, but some useful comments from Aaron)