Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arduino doesn't have permission to write to ~/.beansketches/bean/ #27

Open
jcnesci opened this issue Jun 21, 2017 · 2 comments
Open

Arduino doesn't have permission to write to ~/.beansketches/bean/ #27

jcnesci opened this issue Jun 21, 2017 · 2 comments

Comments

@jcnesci
Copy link

jcnesci commented Jun 21, 2017

After installing Bean CLI, I'm wondering why I get this error when pressing Upload button in Arduino.

Arduino: 1.6.12 (Mac OS X), TD: 1.36, Board: "LightBlue Bean (2.0.3)"

Sketch uses 5,822 bytes (18%) of program storage space. Maximum is 32,256 bytes.
Global variables use 670 bytes of dynamic memory.
Traceback (most recent call last):
  File "/Applications/Arduino.app/Contents/Java/hardware/tools/bean/post_compile", line 94, in <module>
    copy_hex(parsed_args)
  File "/Applications/Arduino.app/Contents/Java/hardware/tools/bean/post_compile", line 89, in copy_hex
    shutil.copyfile(tmp_compiled_path, perm_compiled_path)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 83, in copyfile
    with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied: '/Users/jc/.beansketches/bean/lightblue-bean-test-2-photores.hex'
IOError: [Errno 13] Permission denied: '/Users/jc/.beansketches/bean/lightblue-bean-test-2-photores.hex'

Is there a way to increase permissions of these scripts triggered from inside Arduino app so they can write the files?

@estiens
Copy link

estiens commented Jun 28, 2018

Also having this problem

@estiens
Copy link

estiens commented Jun 28, 2018

.beansketches is prob owned by root, you can get around with by doing a sudo chown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants