[TransWarp] ZConfig and MS-like file paths

Yaroslav Samchuk yarcat at ank-sia.com
Tue Jul 15 08:27:21 EDT 2003


This is a full traceback and the bull path, how i'm trying to invoke my 
application

E:\Python22\python.exe E:\Python22\Scripts\peak ZConfig 
E:\src\Test\App\app_config.xml E:\src\Test\testfiles\SocketServer.cfg

Traceback (most recent call last):
   File "E:\Python22\Scripts\peak", line 7, in ?
     sys.exit(
   File "E:\Python22\Lib\site-packages\peak\running\commands.py", line 
133, in run
     return self.interpret(self.argv[1]).run()
   File "E:\Python22\Lib\site-packages\peak\running\commands.py", line 
133, in run
     return self.interpret(self.argv[1]).run()
   File "E:\Python22\Lib\site-packages\peak\running\commands.py", line 
227, in interpret
     return self.getSubcommand(
   File "E:\Python22\Lib\site-packages\peak\binding\components.py", line 
360, in lookupComponent
     result = adapt(name, IComponentKey).lookup( component, default )
   File "E:\Python22\Lib\site-packages\peak\binding\components.py", line 
433, in lookup
     creationParent=component
   File "E:\Python22\Lib\site-packages\peak\naming\api.py", line 51, in 
lookup
     return InitialContext(parent, **options)[name]
   File "E:\Python22\Lib\site-packages\peak\naming\contexts.py", line 
355, in __getitem__
     if ctx is not self: return ctx[name]
   File "E:\Python22\Lib\site-packages\peak\naming\contexts.py", line 
357, in __getitem__
     obj = self._getOb(name)
   File "E:\Python22\Lib\site-packages\peak\naming\contexts.py", line 
437, in _getOb
     state = self._get(name)
   File "E:\Python22\Lib\site-packages\peak\config\load_zconfig.py", 
line 103, in _get
     ob = adapt(naming.lookup(self,url), naming.IStreamFactory)
   File "E:\Python22\Lib\site-packages\peak\naming\api.py", line 51, in 
lookup
     return InitialContext(parent, **options)[name]
   File "E:\Python22\Lib\site-packages\peak\naming\contexts.py", line 
354, in __getitem__
     ctx, name = self.resolveToInterface(name)
   File "E:\Python22\Lib\site-packages\peak\naming\contexts.py", line 
237, in resolveToInterface
     raise exceptions.InvalidName(
peak.exceptions.InvalidName: Unknown scheme E in 
Base(body='\\src\\BBS\\ank\\BBS\\app_config.xml',scheme='E')



if i don't use absolute paths in ZConfig scheme and zcfg, everything is 
fine and work as it have to work:

E:\Python22\python.exe E:\Python22\Scripts\peak ZConfig 
\src\Test\App\app_config.xml \src\Test\testfiles\SocketServer.cfg

I was trying to use "file:e:/src/Test/App/app_config.xml". In this case 
I also have an InvalidName exception. Using 
"file:e:\\src\\Test\\App\\app_config.xml", I have IOError exception ([2] 
File or directory not found '')


--
Best regards,
Yaroslav




More information about the PEAK mailing list