Printrbot / FirmwareUpdatr

Printrbot Firmware Updater for Mac OS X
MIT License
11 stars 6 forks source link

Fails to flash board #7

Closed ururk closed 6 years ago

ururk commented 6 years ago

For the PrintrBot firmware uploader, on OSX, I can not get it to flash new firmware, the app gives me this “error”

Error!

Unable to flash new firmware. Please check your Printrbot Plus connections and then restart this app to try again.

/bin/sh -c export DYLD_LIBRARY_PATH=/Users/USERNAME/Applications/pbFU.app/Contents/Resources/app/resources/dfu-programmer/lib; /Users/USERNAME/Applications/pbFU.app/Contents/Resources/app/resources/dfu-programmer/bin/dfu-programmer at90usb1286 erase

When I try to run the commands directly in terminal:

COMPUTER:~ USERNAME$ /bin/sh -c export DYLD_LIBRARY_PATH=/Users/USERNAME/Applications/pbFU.app/Contents/Resources/app/resources/dfu-programmer/lib; /Users/USERNAME/Applications/pbFU.app/Contents/Resources/app/resources/dfu-programmer/bin/dfu-programmer at90usb1286 erase
export Apple_PubSub_Socket_Render="/private/tmp/com.apple.launchd.m6Ri56AaVU/Render"
export HOME="/Users/USERNAME"
export LANG="en_US.UTF-8"
export LOGNAME="USERNAME"
export OLDPWD
export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/Server.app/Contents/ServerRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin:/usr/local/mysql/bin"
export PWD="/Users/USERNAME"
export SHELL="/bin/bash"
export SHLVL="2"
export SSH_AUTH_SOCK="/private/tmp/com.apple.launchd.CYO98bVaKW/Listeners"
export TERM="xterm-256color"
export TERM_PROGRAM="Apple_Terminal"
export TERM_PROGRAM_VERSION="400"
export TERM_SESSION_ID="1933819F-413A-43BE-85F7-022645F7EF83"
export TMPDIR="/var/folders/zz/gv_3yc454kj99slpdf4zv6sh0000gn/T/"
export USER="USERNAME"
export XPC_FLAGS="0x0"
export XPC_SERVICE_NAME="0"
export _="/bin/sh"
dyld: Library not loaded: /Users/mick/Downloads/FirmwareUpdatr-master/dfu/lib/libusb-1.0.0.dylib
  Referenced from: /Users/USERNAME/Applications/pbFU.app/Contents/Resources/app/resources/dfu-programmer/bin/dfu-programmer
  Reason: image not found
Abort trap: 6
COMPUTER:~ USERNAME$ 

I’m not 100% certain, but it appears that the dfu-programmer may be hard-linked to the developer’s computer? I didn’t want to dive too deep in to the app to figure out if something else was going on, but thought I’d mention this as a potential bug.

ururk commented 6 years ago

I used homebrew and installed dfu-programmer - it included libusb and other dependencies. My problem may be unrelated.