Page 1 of 1

Exception was thrown and caught with snapshot 4

Posted: Sat Sep 17, 2011 08:50
by maori
Hi Guys

When creating a new project after adding the name and clicking ok i get

Exception message: [Errno 22] invalid mode ('w') or filename: u''

Traceback:
File "C:\Users\Admin\Devel\CEGUI\CEED\mainwindow.py", line 564, in slot_newProject

File "C:\Users\Admin\Devel\CEGUI\CEED\project.py", line 331, in save


CEED revision: Can't execute "hg"
CEED version: snapshot4
HW architecture: ('32bit', 'WindowsPE')
HW type: x86
HW processor: x86 Family 6 Model 23 Stepping 10, GenuineIntel
OS type: Windows
OS release: 7
OS version: 6.1.7601
OS Windows: ('7', '6.1.7601', 'SP1', u'Multiprocessor Free')
SW Python: 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]
SW PySide: 1.0.5
SW Qt: 4.7.3
SW OpenGL: 3.0.1
SW PyCEGUI: 0.8.9090

Re: Exception was thrown and caught with snapshot 4

Posted: Sat Sep 17, 2011 10:51
by Kulik
Have you browsed for a path where to store the project?

I can only reproduce it if I don't select any path to store the project.

I will add more error checking there, thanks a lot for the report!

Re: Exception was thrown and caught with snapshot 4

Posted: Sat Sep 17, 2011 17:27
by maori
indeed i didnt browse a path

however when i did i got a warning saying failed to syncronise

once i added the dir sctructure in manually and pointed the resoucse dir path and setting cegui ver to 7 defualted to 0.8 i got another exception

Exception message: global name 'absoluteSchemePath' is not defined

Traceback:
File "C:\Users\Admin\Devel\CEGUI\CEED\mainwindow.py", line 634, in slot_projectSettings

File "C:\Users\Admin\Devel\CEGUI\CEED\cegui\__init__.py", line 177, in syncToProject


CEED revision: Can't execute "hg"
CEED version: snapshot4
HW architecture: ('32bit', 'WindowsPE')
HW type: x86
HW processor: x86 Family 6 Model 23 Stepping 10, GenuineIntel
OS type: Windows
OS release: 7
OS version: 6.1.7601
OS Windows: ('7', '6.1.7601', 'SP1', u'Multiprocessor Free')
SW Python: 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]
SW PySide: 1.0.5
SW Qt: 4.7.3
SW OpenGL: 3.0.1
SW PyCEGUI: 0.8.9090



sorry if its me doing something tottally wrong if so please let me know

Re: Exception was thrown and caught with snapshot 4

Posted: Sat Sep 17, 2011 18:06
by Kulik
This error was caused by me making a typo when raising an exception.

However at its core the problem is that your schemes folder doesn't exist. Go to Edit->Project settings and select proper paths for everything. Upon resync it should work.

2 minor bugs fixed thanks to you!

Re: Exception was thrown and caught with snapshot 4

Posted: Sat Sep 17, 2011 20:36
by maori
heya Kulik

No probs just ask CE i'am good at breaking things :D

but thanks for the speedy answer

heres another one for you when you hit new file and goto save it it will throw

Exception message: path is on drive E:, start on drive C:

Traceback:
File "C:\Users\Admin\Devel\CEGUI\CEED\mainwindow.py", line 647, in slot_newFileDialog

File "C:\Users\Admin\Devel\CEGUI\CEED\mainwindow.py", line 459, in openEditorTab

File "C:\Users\Admin\Devel\CEGUI\CEED\mainwindow.py", line 371, in createEditorForFile

File "C:\Python27\lib\ntpath.py", line 512, in relpath


CEED revision: Can't execute "hg"
CEED version: snapshot4
HW architecture: ('32bit', 'WindowsPE')
HW type: x86
HW processor: x86 Family 6 Model 23 Stepping 10, GenuineIntel
OS type: Windows
OS release: 7
OS version: 6.1.7601
OS Windows: ('7', '6.1.7601', 'SP1', u'Multiprocessor Free')
SW Python: 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]
SW PySide: 1.0.5
SW Qt: 4.7.3
SW OpenGL: 3.0.1
SW PyCEGUI: 0.8.9090


in this case i saved it as mytheme.scheme the file was saved however but if i then reopen the project i get

Image

Re: Exception was thrown and caught with snapshot 4

Posted: Sat Sep 17, 2011 22:58
by Kulik
I think your project basedir is on E and you are trying to create a file on disk C. I will have to add more error checking there as well.

Also please note that you can't create schemes with CEED at this point (snapshot4). You can only create layouts and imagesets.

Re: Exception was thrown and caught with snapshot 4

Posted: Sun Sep 18, 2011 10:49
by maori
heya

yeah the ceed is on my decktop and i saving my project on E is correct

Also please note that you can't create schemes with CEED at this point (snapshot4). You can only create layouts and imagesets.


ahhh ok then thats the reason sorry about that been looking forward to this tool since CE started thinking about it a while back so am really excited about it
lemme know if you need any thing and i'll help out testing as much as i can