Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
OS permission denied error
OS permission denied error
I am getting a problem that stems from my post about IR codes. I have installed the Microsoft MCE plugin, and when I go to add action, then transmit IR, then learn IR, I get an OS permissions denied error. I am running WIndows 10. Here is the log
Traceback (most recent call last) (1722):
File "C:\ Program Files (x86)\EventGhost\plugins\MceRemote\_init_...tmpFile=os.tmpfile()
OSError: [Errno 13] Permission denied.
I have tried running the program as an administrator but it will not work. Any help would be appreciated. I need the PC to somehow learn these IR blasts so EG can send them and power up my tv and stereo.
Traceback (most recent call last) (1722):
File "C:\ Program Files (x86)\EventGhost\plugins\MceRemote\_init_...tmpFile=os.tmpfile()
OSError: [Errno 13] Permission denied.
I have tried running the program as an administrator but it will not work. Any help would be appreciated. I need the PC to somehow learn these IR blasts so EG can send them and power up my tv and stereo.
Last edited by jachin99 on Tue Apr 26, 2016 6:09 pm, edited 2 times in total.
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: OS permission denied error
you should be running the windows vista/7 version
K
K
Re: OS permission denied error
I switched to the vista/seven plugin, and got it to learn new codes but I get nothing but the learned code doesn't work. This is what is listed under pronto code for learned IR codes
0000 006D 0000 0026 0158 00A9 0017 0015 0017 003F 0017 003F 0017 003F 0017 003F 0017 003F 0017 003F 0017 0015 0017 003F 0017 0013 0019 0013 0017 0015 0017 0013 0017 0015 0017 0013 0017 003F 0019 0013 0017 003F 0017 0015 0017 003F 0017 0013 0019 003F 0017 0013 0017 0015 0017 003F 0017 0013 0017 003F 0019 0013 0017 003F 0017 0015 0017 003F 0017 003F 0017 05E8 0158 0054 0017 0E4E 0156 0056 0017 0F18
I am going to add action, then transmit IR, then Learn IR, and pressing the power button for my TV in front of my receiver.
0000 006D 0000 0026 0158 00A9 0017 0015 0017 003F 0017 003F 0017 003F 0017 003F 0017 003F 0017 003F 0017 0015 0017 003F 0017 0013 0019 0013 0017 0015 0017 0013 0017 0015 0017 0013 0017 003F 0019 0013 0017 003F 0017 0015 0017 003F 0017 0013 0019 003F 0017 0013 0017 0015 0017 003F 0017 0013 0017 003F 0019 0013 0017 003F 0017 0015 0017 003F 0017 003F 0017 05E8 0158 0054 0017 0E4E 0156 0056 0017 0F18
I am going to add action, then transmit IR, then Learn IR, and pressing the power button for my TV in front of my receiver.
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: OS permission denied error
let me see if i can get my IR receiver up and running so i am looking at the same thing as you.
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: OS permission denied error
yeah i was getting the same error. but it happened when i clicked on the install service. then i click uninstall and then install again and away we went.
seems to be working on my end.
and you have tried sending but you get that error.. ok lemme take a look see at the cod eof rthe plugin and see what i can dig up for ya
seems to be working on my end.
and you have tried sending but you get that error.. ok lemme take a look see at the cod eof rthe plugin and see what i can dig up for ya
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: OS permission denied error
try this for hoots and ha ha's.
put this command into a python script and execute it it by clicking test. click apply first tho
give that a try and let me know if you get the same error, and this is to send the code ou gave me so make sure ou have the ir blaster hooked up. and have you tested the IR blaster yet with the vista mce plugin?? it does have a feature to test to make sure it can transmit and if the transmitter is hooked up.
put this command into a python script and execute it it by clicking test. click apply first tho
Code: Select all
eg.plugins.MCE_Vista.TransmitIR(u'0000 006D 0000 0026 0158 00A9 0017 0015 0017 003F 0017 003F 0017 003F 0017 003F 0017 003F 0017 003F 0017 0015 0017 003F 0017 0013 0019 0013 0017 0015 0017 0013 0017 0015 0017 0013 0017 003F 0019 0013 0017 003F 0017 0015 0017 003F 0017 0013 0019 003F 0017 0013 0017 0015 0017 003F 0017 0013 0017 003F 0019 0013 0017 003F 0017 0015 0017 003F 0017 003F 0017 05E8 0158 0054 0017 0E4E 0156 0056 0017 0F18', 0, 1)
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: OS permission denied error
i also don't know if you are running the latest version of the vista mce plugin so i have attached it.
all you have to do is shutdown eventghost go to your C:\Program Files (x86)\EventGhost\plugins\MceRemote_Vista\ directory and replace the __init__.py file with the one that is attached to this post. that way we know you are on the latest version
all you have to do is shutdown eventghost go to your C:\Program Files (x86)\EventGhost\plugins\MceRemote_Vista\ directory and replace the __init__.py file with the one that is attached to this post. that way we know you are on the latest version
- Attachments
-
- __init__.py
- (29.41 KiB) Downloaded 169 times
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: OS permission denied error
and i know where the error is coming from, for some reason the permissions on you eventghost installation are off, it's actually probably the whole program files directory, but here is what i want you to do to test it.
you are going to have to open a cmd prompt.
so click start, and in the search field type in cmd, wait for it to populate then right click cmd and run as administrator
then i want you to copy and paste this into the cmd window.
this is going to set the permissions on the EventGhost folder and all of it subfolders and items to Everyone with Full control. this can easily be removed if it does not solve the problem.
I haven't messed around with windows 10 all that much so i can't tell you off the top f my head what the default permissions are
but this will tell us if that's what the probelm is, one we know that we can either leave it or we can go alittle leg work and find out what the premissions are supposed to be set to
but here is the command i need you to run
this command breaks down like this
icalcs if the CLI ustility that sets permissions in windows
the next is pretty obvious, it's surrounded by double quotes because the directory has spaces in it
/grant give permissions
Everyone is the usergroup and it includes "Everyone"
the OI and CI are for including all container items and objects (files and folders) and the F is full control
** edit the actual term for the OI and CI is Object Inherit and Container Inherit (meaning that all the files and folders under the EventGhost folder will inherit (get it's permissions from) the EventGhost Folder
sorry just wanted to correct that before someone bashed me for it.
LOL
K
you are going to have to open a cmd prompt.
so click start, and in the search field type in cmd, wait for it to populate then right click cmd and run as administrator
then i want you to copy and paste this into the cmd window.
this is going to set the permissions on the EventGhost folder and all of it subfolders and items to Everyone with Full control. this can easily be removed if it does not solve the problem.
I haven't messed around with windows 10 all that much so i can't tell you off the top f my head what the default permissions are
but this will tell us if that's what the probelm is, one we know that we can either leave it or we can go alittle leg work and find out what the premissions are supposed to be set to
but here is the command i need you to run
Code: Select all
icacls "C:\Program Files (x86)\EventGhost" /grant Everyone:(OI)(CI)F
icalcs if the CLI ustility that sets permissions in windows
the next is pretty obvious, it's surrounded by double quotes because the directory has spaces in it
/grant give permissions
Everyone is the usergroup and it includes "Everyone"
the OI and CI are for including all container items and objects (files and folders) and the F is full control
** edit the actual term for the OI and CI is Object Inherit and Container Inherit (meaning that all the files and folders under the EventGhost folder will inherit (get it's permissions from) the EventGhost Folder
sorry just wanted to correct that before someone bashed me for it.
LOL
K
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: OS permission denied error
if you type in this command into the window it will print off the current permissions of the EventGhost Folder
and this command will save that same screen to a file on your desktop. so if you wanted to attach it and send it over i can tae a look and see if it's right.
the name of the file that will appear on your desktop is
EventGhostPermissions.txt
the default values are attached to this post in a file
K
Code: Select all
icacls "C:\Program Files (x86)\EventGhost"
Code: Select all
icacls "C:\Program Files (x86)\EventGhost" > %userprofile%\Desktop\EventGhostPermissions.txt
EventGhostPermissions.txt
the default values are attached to this post in a file
K
- Attachments
-
- EventGhostPermissions.txt
- (415 Bytes) Downloaded 110 times
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: OS permission denied error
how the vista MCE remote plugin works is that is makes calles to the EG core files to decode the IR commands, and i believe it is having a problem loading those files.
they are located in the C:\Program Files (x86)\EventGhost\eg\Classes\IrDecoder folder.
and there is an os command in the init of that directory that tries to load all of the rest of the files, and that's where i believe the problem is.
they are located in the C:\Program Files (x86)\EventGhost\eg\Classes\IrDecoder folder.
and there is an os command in the init of that directory that tries to load all of the rest of the files, and that's where i believe the problem is.
Re: OS permission denied error
I am totally agree with kgschlosser's comment.Please follow it
Graduated from Soran University with First Class Degree with Honours in Computer Science.
Re: OS permission denied error
I stopped getting os permission problems once I switched to Vista/Seven MCE plugin but I ran those commands anyway, then checked them, and as far as I can tell, Event Ghost has all of the permissions it needs so OS permissions aren't a problem anymore. I also updated the plugin.
My problem now is that when event ghost executes learned IR blasts, nothing happens. I have tried this for the power button on the TV, and the power button on the stereo, and both got the same results. I'm not getting any error messages from event ghost in the log, and I am setting my learn counter to 10 each time. My IR transceiver has two outputs in the back, and one is hard wired to the stereo, and the other to the TV. Ive tried using IR server suite from Media portal, and I have the same problem, I.E. the program will learn the IR codes, but when tested, they do nothing. The Ir transceiver works because it executes blasts from Jriver every day. What can I do from here to figure this out?
My problem now is that when event ghost executes learned IR blasts, nothing happens. I have tried this for the power button on the TV, and the power button on the stereo, and both got the same results. I'm not getting any error messages from event ghost in the log, and I am setting my learn counter to 10 each time. My IR transceiver has two outputs in the back, and one is hard wired to the stereo, and the other to the TV. Ive tried using IR server suite from Media portal, and I have the same problem, I.E. the program will learn the IR codes, but when tested, they do nothing. The Ir transceiver works because it executes blasts from Jriver every day. What can I do from here to figure this out?
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: OS permission denied error
It could be your learned pronto code is not fully correct. How did you do the actual learning? I have noticed that some remotes, you need to tap the button very short and quickly, not pressing the button too long. Have you looked over at remote central to see if you can find ready codes for your devices?
http://www.remotecentral.com/
http://www.remotecentral.com/
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: OS permission denied error
I found a few pronto codes over there for Mitsubishi tvs but they did not list anything that was model specific. None of them worked.
Re: OS permission denied error
I haven't tried this yet. how do I put this into a python script?kgschlosser wrote:try this for hoots and ha ha's.
put this command into a python script and execute it it by clicking test. click apply first tho
give that a try and let me know if you get the same error, and this is to send the code ou gave me so make sure ou have the ir blaster hooked up. and have you tested the IR blaster yet with the vista mce plugin?? it does have a feature to test to make sure it can transmit and if the transmitter is hooked up.Code: Select all
eg.plugins.MCE_Vista.TransmitIR(u'0000 006D 0000 0026 0158 00A9 0017 0015 0017 003F 0017 003F 0017 003F 0017 003F 0017 003F 0017 003F 0017 0015 0017 003F 0017 0013 0019 0013 0017 0015 0017 0013 0017 0015 0017 0013 0017 003F 0019 0013 0017 003F 0017 0015 0017 003F 0017 0013 0019 003F 0017 0013 0017 0015 0017 003F 0017 0013 0017 003F 0019 0013 0017 003F 0017 0015 0017 003F 0017 003F 0017 05E8 0158 0054 0017 0E4E 0156 0056 0017 0F18', 0, 1)
