Opened 1 year ago
Last modified 1 year ago
Error: unable to create image directory
System Information
Installed Plugins
It looks like it creates a directory named formulas within htdocs_dir. See formula.py line 132. Perhaps it is just a permissions issue?
Thanks for your promptly reply!
Regards
Replying to luizfernando:
* The question is: since I am installing the plugin globally, shouldn't it use the htdocs dir given by the htdocs_location parameter on trac.ini?
I guess we need to figure out what exception is being thrown by os.mkdir. I'm new to Python, but can we do that by inserting raise into the except: block?
To answer your other question, it might be useful to print the directory path
try: os.mkdir(imagePath) except: return "<b>Error: unable to create image directory %s</b><br>" % imagePath
Creating manually the project local htdocs dir solves the problem.
This makes me think that you have permission to create the directory manually, but Trac does not.