Heya

ah no I did not convert it, did not know I have to... will google it and 
try it cracking :)

Thanks!

On Monday, 12 November 2012 15:30:33 UTC, Justin Israel wrote:
>
> It is expecting to find your resource python file in the path, named 
> ResourcesQTRecomFarmhouseTools_rc.py
> Either you named it something different when you converted it from the qrc 
> file, or you forgot to convert it using pyrcc4
>
> Also I would recommend using forward slashing for paths regardless of 
> operating system. Python handles it just fine for windows, which makes it 
> universal and you don't have to escape them. 
>
> On Nov 12, 2012, at 3:27 AM, Daz <dariu...@gmail.com <javascript:>> wrote:
>
> Heya
>
> Its in pastebin at the very bottom. That whats I get nothing else. 
>
> Copy here just in case :)
> # Error: No module named ResourcesQTRecomFarmhouseTools_rc
>
> # Traceback (most recent call last):
>
> # File "<maya console>", line 20, in <module>
>
> # File "C:\Program 
> Files\Autodesk\Maya2013\Python\lib\site-packages\PyQt4\uic\__init__.py", 
> line 203, in loadUiType
>
> # exec(code_string.getvalue(), ui_globals)
>
> # File "<string>", line 25, in <module>
>
> # ImportError: No module named ResourcesQTRecomFarmhouseTools_rc #
>
> Thanks !
>
> On Monday, 12 November 2012 09:42:18 UTC, Panupat Chongstitwattana wrote:
>>
>> Would be helpful if you provide us with the error message you're getting.
>>
>> From a quick look, are you getting an I/O Error: 2 or something similar? 
>> From this line
>>
>> baseUI  = "C:\Users\dmakowski\Desktop\PyQTtests\My\ui\ui6.ui"
>>
>> Text with backslashes usually get interpret into special characters. You 
>> might want to change that to double slashes
>>
>> baseUI  = "C:\\Users\\dmakowski\\Desktop\\PyQTtests\\My\\ui\\ui6.ui"
>>
>> Panupat.
>>
>>
>> On Mon, Nov 12, 2012 at 4:37 PM, Daz <dariu...@gmail.com> wrote:
>>
>>> Heya
>>>
>>> Just a little hiccup further down the line... tried googling it but 
>>> nothing pop up... except this topic so pretty funny hehe :)
>>>
>>> Created resource container in QT for my logo widget... and I'm getting 
>>> error when trying to start up the script... any idea how to add it to 
>>> script? I try adding the patch to globals but that did not work :/, 
>>>
>>> http://pastebin.com/pkb37bSy
>>>
>>> http://pastebin.com/LT8rhPXB
>>>
>>> thanks, bye.
>>>
>>> On Saturday, 10 November 2012 01:42:40 UTC, Daz wrote:
>>>>
>>>> Yup I know that just dont know how that can happen if I'm admin on my 
>>>> PC hehe :)
>>>>
>>>> Even running maya as admin dont help arrr...
>>>>
>>>> But naming correctly path worked ehhh... note for future, dont code at 
>>>> 2.00 in the morning whhh
>>>>
>>>> Thanks ! Sorry for wasting time :/
>>>>
>>>> On Saturday, 10 November 2012 01:37:27 UTC, Justin Israel wrote:
>>>>>
>>>>> The last line of the traceback is a pretty good indication:
>>>>> # IOError: [Errno 13] Permission denied: 'D:/Scripts/Daz_Tools/Beta' #
>>>>>
>>>>> You have limited permissions on that location, which it is trying to 
>>>>> read to parse your UI file.
>>>>>
>>>>>
>>>>>
>>>>> On Nov 9, 2012, at 5:28 PM, Daz wrote:
>>>>>
>>>>> Heya
>>>>>
>>>>> Just run in to weird issue... It works fine at work but not at home 
>>>>> not, I did try to install python and other files the same as I did at 
>>>>> work... Any idea why I get this error when starting script maybe?
>>>>>
>>>>> http://pastebin.com/ANuZ43a6
>>>>>
>>>>> Thanks, bye.
>>>>>
>>>>> On Friday, 9 November 2012 17:36:22 UTC, Justin Israel wrote:
>>>>>>
>>>>>> Awesome! May your button coding experience be dynamic, and rewarding!
>>>>>>
>>>>>> On Nov 9, 2012, at 9:19 AM, Daz wrote:
>>>>>>
>>>>>> Uh true ! 
>>>>>>
>>>>>> Here we go... just the part with self.btnCut button that I'm trying 
>>>>>> to add to list that dont want to work... :/
>>>>>>
>>>>>>
>>>>>> http://pastebin.com/vLuGfMcf
>>>>>>
>>>>>> On Friday, 9 November 2012 17:10:33 UTC, Justin Israel wrote:
>>>>>>>
>>>>>>> What are you using for an editor? It seems that you are just having 
>>>>>>> copy/paste errors and maybe a mixture of spaces vs tabs.
>>>>>>> Your best bet is to not use the emails for code. Make use of either 
>>>>>>> pastebin.com, or https://gist.github.com/, or any online code site 
>>>>>>> where people can look at a large amount of code with proper indents.
>>>>>>> It will help you avoid the indent problem.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Nov 9, 2012, at 8:58 AM, Daz wrote:
>>>>>>>
>>>>>>> Heya
>>>>>>>
>>>>>>> Yay that runs like dream, I've edited beginning slightly to use my 
>>>>>>> general folder structure and so on and so far I/you got the button 
>>>>>>> working 
>>>>>>> ! :) 
>>>>>>>
>>>>>>> The steps start now that I want to hock up second button... for some 
>>>>>>> reason I get error with this part of code... any hints why ? :/
>>>>>>>
>>>>>>> # when click this button, run function "btallClicked" 
>>>>>>> self.btnAllLightSettings.clicked.connect( 
>>>>>>> self.btnAllLightSettingsClicked )
>>>>>>> self.btnCut.clicked.connect( self.btnCutClicked )
>>>>>>>
>>>>>>> # show the UI 
>>>>>>> self.show() 
>>>>>>>
>>>>>>>
>>>>>>> def btnAllLightSettingsClicked( self ):
>>>>>>> #anything you want. Let's say, create a sphere 
>>>>>>> settings_Lights.allSettings() 
>>>>>>>
>>>>>>> def btnCutClicked(self):
>>>>>>> settings_Lights.sampleMax 
>>>>>>>
>>>>>>> I end up with 
>>>>>>>
>>>>>>> # Error: unexpected indent
>>>>>>> # File "<maya console>", line 48
>>>>>>> # self.btnCut.clicked.connect( self.btnCutClicked )
>>>>>>> # ^
>>>>>>> # IndentationError: unexpected indent # 
>>>>>>>
>>>>>>> which is very strange. It appears just after I past the second 
>>>>>>> self.btnCut.clicked command. Can I stack them together 1 after another 
>>>>>>> or 
>>>>>>> is there some more complex way of loading them up? :s
>>>>>>>
>>>>>>> I thought I have to script a command for each button for each 
>>>>>>> function to happen... 
>>>>>>>
>>>>>>> On Friday, 9 November 2012 15:32:11 UTC, Panupat Chongstitwattana 
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> grr... forgot parentesis
>>>>>>>>
>>>>>>>> import daz
>>>>>>>> reload(daz)
>>>>>>>>
>>>>>>>> daz.launch()
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> -- 
>>>>>>> view archives: http://groups.google.com/group/python_inside_maya
>>>>>>> change your subscription settings: 
>>>>>>> http://groups.google.com/group/python_inside_maya/subscribe
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> -- 
>>>>>> view archives: http://groups.google.com/group/python_inside_maya
>>>>>> change your subscription settings: 
>>>>>> http://groups.google.com/group/python_inside_maya/subscribe
>>>>>>
>>>>>>
>>>>>>
>>>>> -- 
>>>>> view archives: http://groups.google.com/group/python_inside_maya
>>>>> change your subscription settings: 
>>>>> http://groups.google.com/group/python_inside_maya/subscribe
>>>>>
>>>>>
>>>>> -- 
>>> view archives: http://groups.google.com/group/python_inside_maya
>>> change your subscription settings: 
>>> http://groups.google.com/group/python_inside_maya/subscribe
>>>
>>
>>  -- 
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings: 
> http://groups.google.com/group/python_inside_maya/subscribe
>
>

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to