On Monday, July 30, 2018 at 3:07:13 PM UTC-7, RjOllos wrote:
>
>
>
> On Monday, July 30, 2018 at 2:38:29 PM UTC-7, RjOllos wrote:
>>
>>
>>
>> On Monday, July 30, 2018 at 6:43:10 AM UTC-7, G Earle wrote:
>>>
>>> I have done a clean install of the new version of Trac v1.2.3 this 
>>> morning, but am having trouble getting *tracd* to honour the *-e* 
>>> option.
>>>
>>> Thus,
>>>
>>> *tracd -p 8000 "C:\Trac_Projects\Trac_Test_Project1"*
>>>
>>> works, but the following does not
>>>
>>> *tracd -p 8000 –e "C:\Trac_Projects\"*
>>>
>>> The latter gives one an error as follows:
>>>
>>>
>>> *Trac_Projects: Error (No Trac environment found at c:\trac_projects 
>>> [Errno 2] No such file or directory: 'c:\\trac_projects\\VERSION')*
>>>
>>> Trying various things out, it's obvious that it's expecting a full Trac 
>>> project within the parent directory itself (ie. in "C:\Trac_Projects).
>>>
>>> The -e option worked on my previous version of Trac v1.2, though I can't 
>>> remember now which sub-version.
>>>
>>> Bizarrely, if I create a second sub-project directory, then I get no 
>>> error, but a null project list.
>>>
>>> Has anyone else encountered this problem please ?
>>>
>>> Thanks.
>>>
>>> Greville
>>>
>>
>> Try removing the trailing slash. I see an exception when the environment 
>> directory path has a trailing slash and is quoted.
>>
>> (pve-x86) 
>> C:\Users\rjollos\Documents\Workspace\trac-dev\tracenvs>C:\Python27-x86\Scripts\tracd.exe
>>  
>> -p 8000 -e "C:\Users\rjollos\Documents\Workspace\trac-dev\tracenvs\"
>> Server starting in PID 3012.
>> Serving on 0.0.0.0:8000 view at http://127.0.0.1:8000/
>> Using HTTP/1.1 protocol version
>> ----------------------------------------
>> Exception happened during processing of request from ('127.0.0.1', 51733)
>> Traceback (most recent call last):
>>   File "C:\Python27-x86\lib\SocketServer.py", line 596, in 
>> process_request_thread
>>     self.finish_request(request, client_address)
>>   File "C:\Python27-x86\lib\SocketServer.py", line 331, in finish_request
>>     self.RequestHandlerClass(request, client_address, self)
>>   File "C:\Python27-x86\lib\SocketServer.py", line 652, in __init__
>>     self.handle()
>>   File "C:\Python27-x86\lib\BaseHTTPServer.py", line 340, in handle
>>     self.handle_one_request()
>>   File "C:\Python27-x86\lib\site-packages\trac\web\wsgi.py", line 210, in 
>> handle_one_request
>>     gateway.run(self.server.application)
>>   File "C:\Python27-x86\lib\site-packages\trac\web\wsgi.py", line 110, in 
>> run
>>     response = application(self.environ, self._start_response)
>>   File "C:\Python27-x86\lib\site-packages\trac\web\standalone.py", line 
>> 92, in __call__
>>     return self.application(environ, start_response)
>>   File "C:\Python27-x86\lib\site-packages\trac\web\main.py", line 547, in 
>> dispatch_request
>>     env_paths)
>>   File "C:\Python27-x86\lib\site-packages\trac\web\main.py", line 814, in 
>> send_project_index
>>     for env_name, env_path in get_environments(environ).items():
>>   File "C:\Python27-x86\lib\site-packages\trac\web\main.py", line 869, in 
>> get_environments
>>     paths = dircache.listdir(env_parent_dir)[:]
>>   File "C:\Python27-x86\lib\dircache.py", line 28, in listdir
>>     mtime = os.stat(path).st_mtime
>> WindowsError: [Error 123] The filename, directory name, or volume label 
>> syntax is incorrect: 
>> 'C:\\Users\\rjollos\\Documents\\Workspace\\trac-dev\\tracenvs"'
>> ----------------------------------------
>>
>> - Ryan
>>
>
> When  "C:\Trac_Projects\" is passed, the value received in Python is 
> C:\Trac_Projects"
>
> I'm not familiar with quoting from the Windows command shell, but \" looks 
> like it's escaping the double-quote character.
>
> - Ryan
>

Open a ticket to improve behavior with invalid path:
https://trac.edgewall.org/ticket/13063

- Ryan 

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" 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].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to