win32com.client import Dispatch on 64 bit

890 views
Skip to first unread message

Seda Cavdaroglu

unread,
Mar 26, 2013, 8:29:47 AM3/26/13
to psychop...@googlegroups.com
Hello,

I have been running my experiment on a 32 bit Win XP machine for a while and now have to run it on a 64 bit Win7 laptop.  I need to create, read form and write#
into some excel files hence I have been using Dispatch  from win32com.client.  Yet, now when I try to run it on my 64 bit laptop, I face the following error:

IOError: [Errno 13] Permission denied: 'C:\\Program Files\\PsychoPy2\\lib\\site-packages\\win32com\\gen_py\\__init__.py'

I tried running it as admin and saving it both under Programmes, Programmes(x86).  Neither helped.  I am using Standalone Psychopy 1-74.01-win32

Any ideas?

Jonathan Peirce

unread,
Apr 1, 2013, 12:13:59 PM4/1/13
to psychop...@googlegroups.com
I've no idea about Dispatch, but PsychoPy standalone comes with the the
openpyxl package which works well for reading/writing. The problem
you're having below is that the win32com package seems to be trying to
write to its own directory, but because that's in program files you
don't have permission. You could try relaxing the permissions on the
entire PsychoPy2 folder and sub-directories.

Jon
> --
> You received this message because you are subscribed to the Google
> Groups "psychopy-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to psychopy-user...@googlegroups.com.
> To post to this group, send email to psychop...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/psychopy-users/-/MtxlxRb5iwAJ.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
Jonathan Peirce
Nottingham Visual Neuroscience

http://www.peirce.org.uk/

Reply all
Reply to author
Forward
0 new messages