nengo / nengo-loihi

Run Nengo models on Intel's Loihi chip
https://www.nengo.ai/nengo-loihi/
Other
35 stars 12 forks source link

HAS_NXSDK can be false even when nxsdk is installed #253

Open hunse opened 4 years ago

hunse commented 4 years ago

I think the main way for this to happen is if our snip_maker import fails.

We should move the snip_maker import into the if HAS_NXSDK block below where we do other sub-imports within nxsdk. We can wrap it in its own try block there if we want (to just not do the snip_maker monkeypatch if its not there), or just fail completely, but at least then it would be clear why things aren't working.

hunse commented 4 years ago

I think I encountered this when using an inappropriate NxSDK version, which didn't have snip_maker.