cool thanks man
On 03/06/2013 09:32 AM, Justin Israel wrote:
You can universally use forward slash for paths in python and it will
be valid on linux or windows:
c:/path/to/foo
/path/to/foo
The only time you would deal with backslashes in windows paths is when
you are reading them from shell outputs or drag and dropping them. But
then you would see c:\\path\\to\\foo
You also have os.path.sep for getting the proper way to split or join
per platform.
On Wed, Mar 6, 2013 at 11:56 AM, John VanDerZalm
<[email protected] <mailto:[email protected]>> wrote:
well wouldnt you know... thanks justin that wasnt the full
traceback lol mistake 1! this is what it was..
# Error: 22
# Traceback (most recent call last):
# File "<maya console>", line 4, in <module>
# File
"C:\cloud\pipline\maya\python\pyqt\maya2012\pc-x64\PyQt4\uic\__init__.py",
line 200, in loadUiType
# winfo = compiler.UICompiler().compileUi(uifile, code_string,
from_imports)
# File
"C:\cloud\pipline\maya\python\pyqt\maya2012\pc-x64\PyQt4\uic\Compiler\compiler.py",
line 119, in compileUi
# w = self.parse(input_stream)
# File
"C:\cloud\pipline\maya\python\pyqt\maya2012\pc-x64\PyQt4\uic\uiparser.py",
line 871, in parse
# document = parse(filename)
# File "C:\Program
Files\Autodesk\Maya2012\bin\python26.zip\xml\etree\ElementTree.py", line
862, in parse
# tree.parse(source, parser)
# File "C:\Program
Files\Autodesk\Maya2012\bin\python26.zip\xml\etree\ElementTree.py", line
579, in parse
# source = open(source, "rb")
# IOError: [Errno 22] invalid mode ('rb') or filename:
'C:\tmp\testMayaQT.ui' #
mistake 2
so invalid mode ('rb') or filename: 'C:\tmp\testMayaQT.ui' is the
error and all it means is i needed to change my "\" in the path to
"/". grabbing a path from a exploreer was my problem. but i'm a
linux guy so back to windows. "whatever you need windows"!!!
actaully can anyone tell me why windows has this issue? and how do
people deal with windows paths i'm building on a linux enviroment
and try map it over to windows.
alot of the time i'm using
%MY_CUSTOM_BasePATH_VARIABLE%\pathToMyFile\file.file
explicied file paths can be a problem some time. whats the best
way to manage linux/windows path conflicts? any tips from
Linux/windows TDs
john
On Wed, Mar 6, 2013 at 5:40 AM, Justin Israel
<[email protected] <mailto:[email protected]>> wrote:
Is that the entire traceback?
Have you tried it from the command line with pyuic?
pyuic c:\testMayaQT.ui -o testMayaQTUI.py
On Mar 6, 2013 1:58 AM, "John VanDerZalm"
<[email protected] <mailto:[email protected]>>
wrote:
hi all just having a problem running .ui file in QT,
if i run
from PyQt4 import QtGui,QtCore, uic
uifile = 'c:testMayaQT.ui'
uic.loadUiType(uifile)
i get
# Error: IOError: file C:\Program
Files\Autodesk\Maya2012\bin\python26.zip\xml\etree\ElementTree.py
line 579: 2
anyone have any clues what i'm missing. ive tested it on
many differnet ui file and i get the same. i'm using
designer that ships with maya2012
i know Qt is working becuase if i run this it works
import sip
sip.setapi('QString', 1)
sip.setapi('QVariant',1)
from PyQt4 import QtGui, QtCore
btn = QtGui.QPushButton(QtGui.__file__)
btn.show()
any clues would be much apreciated
john
--
You received this message because you are subscribed to
the Google Groups "Python Programming for Autodesk Maya"
group.
To unsubscribe from this group and stop receiving emails
from it, send an email to
[email protected]
<mailto:python_inside_maya%[email protected]>.
To post to this group, send email to
[email protected]
<mailto:[email protected]>.
For more options, visit
https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the
Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from
it, send an email to
[email protected]
<mailto:python_inside_maya%[email protected]>.
To post to this group, send email to
[email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google
Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to [email protected]
<mailto:python_inside_maya%[email protected]>.
To post to this group, send email to
[email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google
Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Python
Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.