Deviot
Deviot copied to clipboard
dev osx examples fail on some libraries
To work around another issue I added a symblink in libraries to a local library. But it seems to break stuff Maybe this can be ignored or fixed.
Traceback (most recent call last):
File "/Users/.../Library/Application Support/Sublime Text 3/Packages/Deviot (Arduino IDE)/libraries/quick_menu.py", line 406, in callback_library
library_path = os.path.join(library_path, '*')
UnboundLocalError: local variable 'library_path' referenced before assignment
Traceback (most recent call last):
File "/Users/.../Library/Application Support/Sublime Text 3/Packages/Deviot (Arduino IDE)/libraries/quick_menu.py", line 406, in callback_library
library_path = os.path.join(library_path, '*')
UnboundLocalError: local variable 'library_path' referenced before assignment
and on rebuild lib
Exception in thread Thread-880:
Traceback (most recent call last):
File "./python3.3/threading.py", line 901, in _bootstrap_inner
File "./python3.3/threading.py", line 858, in run
File "/Users/.../Library/Application Support/Sublime Text 3/Packages/Deviot (Arduino IDE)/libraries/libraries.py", line 310, in save_installed_list
self.quicked(out)
File "/Users/.../Library/Application Support/Sublime Text 3/Packages/Deviot (Arduino IDE)/libraries/libraries.py", line 139, in quicked
id = item['id']
KeyError: 'id'
oops nope this is not the cause, It is something with the library.
example
ucglib
I think when a library has a src folder in it examples fails to open, errors are above,
This must be something with this macbook still, my other one worked fine yesterday same library. suspect related to pathing
I'll add the logger to debug all this problem this weekend, it sholdn't be happening and I don't think it's the src folder, I'll let you know
Problem exists on windows also
Traceback (most recent call last):
File "C:\Users\...\Documents\projects\bin\sublimetext\Data\Packages\Deviot (Arduino IDE)\libraries\quick_menu.py", line 406, in callback_library
library_path = os.path.join(library_path, '*')
UnboundLocalError: local variable 'library_path' referenced before assignment
Traceback (most recent call last):
File "C:\Users\...\Documents\projects\bin\sublimetext\Data\Packages\Deviot (Arduino IDE)\libraries\quick_menu.py", line 406, in callback_library
library_path = os.path.join(library_path, '*')
UnboundLocalError: local variable 'library_path' referenced before assignment
Exception in thread Thread-46563:
Traceback (most recent call last):
File "./python3.3/threading.py", line 901, in _bootstrap_inner
File "./python3.3/threading.py", line 858, in run
File "C:\Users\...\Documents\projects\bin\sublimetext\Data\Packages\Deviot (Arduino IDE)\libraries\libraries.py", line 310, in save_installed_list
self.quicked(out)
File "C:\Users\...\Documents\projects\bin\sublimetext\Data\Packages\Deviot (Arduino IDE)\libraries\libraries.py", line 139, in quicked
id = item['id']
KeyError: 'id'
I've push a possible fix for this errors:
Traceback (most recent call last):
File "C:\Users\...\Documents\projects\bin\sublimetext\Data\Packages\Deviot (Arduino IDE)\libraries\quick_menu.py", line 406, in callback_library
library_path = os.path.join(library_path, '*')
UnboundLocalError: local variable 'library_path' referenced before assignment
Traceback (most recent call last):
File "C:\Users\...\Documents\projects\bin\sublimetext\Data\Packages\Deviot (Arduino IDE)\libraries\quick_menu.py", line 406, in callback_library
library_path = os.path.join(library_path, '*')
UnboundLocalError: local variable 'library_path' referenced before assignment
The KeyError: 'id' it's triggered when you install a new library, do you know what library were you installing when this error appeared?
I can easily hide the error, but I'll like to know why the API is not sending an ID or I'm loosing it somewhere.
I need to replicate error
Its happens alot, I think it was adsfruit ads1x lib for ads1015 ads1115