zerlgi / pyalienfx

Automatically exported from code.google.com/p/pyalienfx
GNU General Public License v3.0
0 stars 0 forks source link

AttributeError: M17XR3 instance has no attribute 'REGION_ALL_BUT_POWER' #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. start pyAlienFX GUI as root in terminal
2. press "Apply"
3. see error msg in terminal

What is the expected output? 
settings applied

What do you see instead?
settings not applied and message "AttributeError: M17XR3 instance has no 
attribute 'REGION_ALL_BUT_POWER'" appears in terminal window

What version of the product are you using? On what operating system?
0.2a / Python 2.7.1

Please provide any additional information below.
full message trace :

Traceback (most recent call last):
  File "./pyAlienFX.py", line 442, in on_Apply_pressed
    self.Set_Conf()
  File "./pyAlienFX.py", line 295, in Set_Conf
    self.controller.Add_Loop_Conf(self.computer.REGION_ALL_BUT_POWER,"fixed","000000","000000")
AttributeError: M17XR3 instance has no attribute 'REGION_ALL_BUT_POWER'

Original issue reported on code.google.com by zel...@gmail.com on 6 Dec 2011 at 3:12

GoogleCodeExporter commented 9 years ago
Same issue on Gentoo, Python 2.7.2.

Original comment by archenr...@gmail.com on 29 Dec 2011 at 12:33

GoogleCodeExporter commented 9 years ago
I'm sorry I just saw that bug ! 
Sorry it took so long to correct it ! 
It will be corrected in the 0.2.2a which will be released today !

Original comment by ledjfou125 on 5 Jan 2012 at 11:35

GoogleCodeExporter commented 9 years ago
Hi!! Awesome program!! But i can't work it out on Mac, since this website, 
http://www.tonymacx86.com/viewtopic.php?f=170&t=45864, says it can. I'm not 
used to this terminal commands and such, can you help me???? 

Original comment by igna...@gmail.com on 17 Apr 2012 at 5:53

GoogleCodeExporter commented 9 years ago
Hey ! 

Ok first of all ! Do you have an alienware or a mac ?!? Because this soft is 
for an alienware ! 
Now from what you wrote I guess that you have a m17r3 with mac os on it ? Am I 
right ??
In that case I'll be delighted that my soft work on it but I do not know 
anything about ma is so you'll have to see with the forum you sent me !

If not please can you be more specific ?

Original comment by ledjfou125 on 17 Apr 2012 at 12:52

GoogleCodeExporter commented 9 years ago
I have an M11x osx installed!!! I've win 7 n lion dual boot. I know i can go 
back to win 7 to change the colour and back to lion again, but if i can change 
it straight from osx it'll be great!! Cheers FYI: Some people says mac and 
linux are similar, coding wise, their terminal commands are similar too, but 
i've no idea how to work it out... and also what do i need to do after i run 
the install.py to run the software? Thanks heaps!!

Original comment by igna...@gmail.com on 18 Apr 2012 at 2:06

GoogleCodeExporter commented 9 years ago
It's the R1 BTW

Original comment by igna...@gmail.com on 18 Apr 2012 at 2:06

GoogleCodeExporter commented 9 years ago
Okay i tried again, this is what i did:
1. intalling: seems fine
2. I ran pyAlienFX_daemon.py n this is what i got:        

Ignasiuss-Alienware-M11x:pyalienfx 3 ignasiussetiaputra$ sudo 
'/Users/ignasiussetiaputra/Downloads/pyalienfx/pyAlienFX_daemon.py'
Initializing Driver  ...
Comnputer M11XR1 found ! Loading the parameters ...
Traceback (most recent call last):
  File "/Users/ignasiussetiaputra/Downloads/pyalienfx/pyAlienFX_daemon.py", line 303, in <module>
    Daemon = ServCmd()
  File "/Users/ignasiussetiaputra/Downloads/pyalienfx/pyAlienFX_daemon.py", line 70, in __init__
    s.driver = AlienFX_Driver()
  File "/Users/ignasiussetiaputra/Downloads/pyalienfx/AlienFX/AlienFXEngine.py", line 57, in __init__
    self.Take_over()
  File "/Users/ignasiussetiaputra/Downloads/pyalienfx/AlienFX/AlienFXEngine.py", line 109, in Take_over
    self.dev.detach_kernel_driver(0)
  File "/Users/ignasiussetiaputra/Downloads/pyalienfx/usb/core.py", line 695, in detach_kernel_driver
    self._ctx.backend.detach_kernel_driver(self._ctx.handle, interface)
  File "/Users/ignasiussetiaputra/Downloads/pyalienfx/usb/_debug.py", line 52, in do_trace
    return f(*args, **named_args)
  File "/Users/ignasiussetiaputra/Downloads/pyalienfx/usb/backend/libusb10.py", line 565, in detach_kernel_driver
    _check(_lib.libusb_detach_kernel_driver(dev_handle, intf))
  File "/Users/ignasiussetiaputra/Downloads/pyalienfx/usb/backend/libusb10.py", line 357, in _check
    raise USBError(_str_error[retval.value])
usb.core.USBError: Operation not supported or unimplemented on this platform

I dun know what that means but i tried running pyAlienFX.py n this is what i got

Ignasiuss-Alienware-M11x:pyalienfx 3 ignasiussetiaputra$ sudo 
'/Users/ignasiussetiaputra/Downloads/pyalienfx/pyAlienFX.py'Traceback (most 
recent call last):
  File "/Users/ignasiussetiaputra/Downloads/pyalienfx/pyAlienFX.py", line 26, in <module>
    import pygtk
ImportError: No module named pygtk
Ignasiuss-Alienware-M11x:pyalienfx 3 ignasiussetiaputra$ 

Original comment by igna...@gmail.com on 18 Apr 2012 at 2:44

GoogleCodeExporter commented 9 years ago
The issue comes from the libUSB, I understand the problem but there isn't much 
that I can do ...

Do you use the libUSB compiled for mac ??

Also for the second error message you need to install GTK and pyGTK for the 
software to work on your mac !!!

Original comment by ledjfou125 on 18 Apr 2012 at 4:51

GoogleCodeExporter commented 9 years ago
Hi, i installed libusb that is attached to the forum i mentioned before... and 
what is gtk and pygtk? thanks

Original comment by igna...@gmail.com on 18 Apr 2012 at 6:10

GoogleCodeExporter commented 9 years ago
Google : mac OS X pyGTK install

http://www.google.com/search?client=safari&rls=en&q=mac+OS+X+pyGTK+install&ie=UT
F-8&oe=UTF-8

Original comment by ledjfou125 on 18 Apr 2012 at 4:34

GoogleCodeExporter commented 9 years ago
Hey I tried again and this showed up:
Ignasiuss-Alienware-M11x:~ ignasiussetiaputra$ sudo 
'/Users/ignasiussetiaputra/Downloads/pyalienfx 3/pyAlienFX.py'
Password:
Initializing Driver  ...
Comnputer M11XR1 found ! Loading the parameters ...
Initializing Controller ...
[Errno 61] Connection refused
Trying to load the driver manually
Initializing Interface ...
Traceback (most recent call last):
  File "/Users/ignasiussetiaputra/Downloads/pyalienfx 3/pyAlienFX.py", line 766, in <module>
    gui.main()
  File "/Users/ignasiussetiaputra/Downloads/pyalienfx 3/pyAlienFX.py", line 74, in main
    self.AlienFX_Main()
  File "/Users/ignasiussetiaputra/Downloads/pyalienfx 3/pyAlienFX.py", line 85, in AlienFX_Main
    self.gtk_AlienFX_Main.add_from_file('./glade/AlienFXMain.glade')
glib.GError: Failed to open file './glade/AlienFXMain.glade': No such file or 
directory

Original comment by igna...@gmail.com on 19 Apr 2012 at 4:11

GoogleCodeExporter commented 9 years ago
Hah!!! Just scrap those things above ^^^ 
Got it working!!! just needed to cd the folder!!! Python Alien FX Work 
flawlessly with Mac OSX 10.7 Lion!!! Thanks Man!!!

Original comment by igna...@gmail.com on 19 Apr 2012 at 3:26

GoogleCodeExporter commented 9 years ago
hey I'm Super happy to hear this ! 

May I ask You to write a tuto on how to make it work here ? So that I can 
update the wiki for other People ??

It would help a lot of people I'm sure ! 

Thanks

Original comment by ledjfou125 on 23 Apr 2012 at 10:09

GoogleCodeExporter commented 9 years ago
Hi I am so sorry, I know it has been a year since I resolved the Mac OSX 
problem. now I'm going to tell you exactly  what i did.

1.Install this libusb package 
(http://www.anyma.ch/blogs/research/2011/08/13/libusb-for-macosx-lion-10-7/)
2.Install PyGTK 
(http://sourceforge.net/projects/macpkg/files/PyGTK/2.24.0/PyGTK.pkg/download)
3.Install Python for mac (http://www.python.org/download/)
4.Install pyAlienFX in command prompt:
       cd (drag pyalienfx folder into command prompt)
       sudo python install.py
4.Run pyAlienFX_daemon.py
       cd (drag pyalienfx folder into command prompt)
       sudo python pyAlienFX_daemon.py
5.Run pyAlienFX.py
       cd (drag pyalienfx folder into command prompt)
       sudo python pyAlienFX.py
6.From now on, you can open the pyAlienFX.py file with python launcher straight 
away

This was tested on Alienware M11x R1 running Mac OSX 10.7

Thank you, if you wanna ask anything just email me on ignaz96@gmail.com

Original comment by igna...@gmail.com on 11 Sep 2013 at 9:39