Getting Errno 13 access denied error when calling runPython
up vote
0
down vote
favorite
I have a function that calls the method numpy.save('filename.npy', variable)
and this works fine in Spyder. However, when I call the same function using the runPython
command in VBA, I get the error Errno 13 access denied
. This seems to be coming from the method open(file,'wb')
in the numpy.save
function.
It does not seem like an admin rights issue as I can read/write to the directory and the code works in Spyder. Does anyone know what the issue could be please?
python vba numpy
add a comment |
up vote
0
down vote
favorite
I have a function that calls the method numpy.save('filename.npy', variable)
and this works fine in Spyder. However, when I call the same function using the runPython
command in VBA, I get the error Errno 13 access denied
. This seems to be coming from the method open(file,'wb')
in the numpy.save
function.
It does not seem like an admin rights issue as I can read/write to the directory and the code works in Spyder. Does anyone know what the issue could be please?
python vba numpy
I'm not familiar with VBA, but have you checked what the current directory is when you run the Python script usingrunPython
? (You can find that out using theos.getcwd
function in the Python script.) It seems likely that VBA will run the script with a different current directory than the one you chose in Spyder.
– Harry Cutts
Nov 8 at 23:45
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a function that calls the method numpy.save('filename.npy', variable)
and this works fine in Spyder. However, when I call the same function using the runPython
command in VBA, I get the error Errno 13 access denied
. This seems to be coming from the method open(file,'wb')
in the numpy.save
function.
It does not seem like an admin rights issue as I can read/write to the directory and the code works in Spyder. Does anyone know what the issue could be please?
python vba numpy
I have a function that calls the method numpy.save('filename.npy', variable)
and this works fine in Spyder. However, when I call the same function using the runPython
command in VBA, I get the error Errno 13 access denied
. This seems to be coming from the method open(file,'wb')
in the numpy.save
function.
It does not seem like an admin rights issue as I can read/write to the directory and the code works in Spyder. Does anyone know what the issue could be please?
python vba numpy
python vba numpy
edited Nov 8 at 23:53
martineau
64.8k887174
64.8k887174
asked Nov 8 at 22:47
user10536803
62
62
I'm not familiar with VBA, but have you checked what the current directory is when you run the Python script usingrunPython
? (You can find that out using theos.getcwd
function in the Python script.) It seems likely that VBA will run the script with a different current directory than the one you chose in Spyder.
– Harry Cutts
Nov 8 at 23:45
add a comment |
I'm not familiar with VBA, but have you checked what the current directory is when you run the Python script usingrunPython
? (You can find that out using theos.getcwd
function in the Python script.) It seems likely that VBA will run the script with a different current directory than the one you chose in Spyder.
– Harry Cutts
Nov 8 at 23:45
I'm not familiar with VBA, but have you checked what the current directory is when you run the Python script using
runPython
? (You can find that out using the os.getcwd
function in the Python script.) It seems likely that VBA will run the script with a different current directory than the one you chose in Spyder.– Harry Cutts
Nov 8 at 23:45
I'm not familiar with VBA, but have you checked what the current directory is when you run the Python script using
runPython
? (You can find that out using the os.getcwd
function in the Python script.) It seems likely that VBA will run the script with a different current directory than the one you chose in Spyder.– Harry Cutts
Nov 8 at 23:45
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53217311%2fgetting-errno-13-access-denied-error-when-calling-runpython%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I'm not familiar with VBA, but have you checked what the current directory is when you run the Python script using
runPython
? (You can find that out using theos.getcwd
function in the Python script.) It seems likely that VBA will run the script with a different current directory than the one you chose in Spyder.– Harry Cutts
Nov 8 at 23:45