Trouble with Trac
12 posts
• Page 1 of 1
Trouble with Trac
I'm trying to set up the Trac package, things seem to install fine, but when trying to access the application URL, I get the following error:
Traceback (most recent call last):
File "C:\Zoo\Workers\python\zoofcgi.py", line 1072, in <module>
run_wsgi_app(options.wsgi_app)
File "C:\Zoo\Workers\python\zoofcgi.py", line 1007, in run_wsgi_app
wsgi_app = import_function(wsgi_app_path)
File "C:\Zoo\Workers\python\zoofcgi.py", line 1019, in import_function
m = __import__( module )
File "D:\web\cfi-tech.net\trac\trac_wsgi.py", line 21, in <module>
from trac.web.main import dispatch_request
ImportError: No module named trac.web.main
Any thoughts?
Thanks,
-Leo
Traceback (most recent call last):
File "C:\Zoo\Workers\python\zoofcgi.py", line 1072, in <module>
run_wsgi_app(options.wsgi_app)
File "C:\Zoo\Workers\python\zoofcgi.py", line 1007, in run_wsgi_app
wsgi_app = import_function(wsgi_app_path)
File "C:\Zoo\Workers\python\zoofcgi.py", line 1019, in import_function
m = __import__( module )
File "D:\web\cfi-tech.net\trac\trac_wsgi.py", line 21, in <module>
from trac.web.main import dispatch_request
ImportError: No module named trac.web.main
Any thoughts?
Thanks,
-Leo
Re: Trouble with Trac
Hello, Leo
Please clarify the following points:
1. did you install in the root of the site or in a subfolder?
2. please go to that folder and make sure there is venv\lib\site-packages\trac there and that there are files
3. please also provide your web.config
Please clarify the following points:
1. did you install in the root of the site or in a subfolder?
2. please go to that folder and make sure there is venv\lib\site-packages\trac there and that there are files
3. please also provide your web.config
Re: Trouble with Trac
1) Subfolder
2) It only has the following in that folder:
log
deploy_done.py
requirements.txt
trac_wsgi.py
trac_wsgi.pyc
web.config
__init__.py
3)
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<heliconZoo>
<clear />
<application name="TracWsgi.project">
<environmentVariables>
<add name="PYTHONHOME" value="C:\Python27" />
<add name="VIRTUAL_ENV" value="%APPL_PHYSICAL_PATH%\venv" />
<add name="PATH" value="%APPL_PHYSICAL_PATH%\venv\Scripts;%PATH%" />
<add name="PYTHONPATH" value="%APPL_PHYSICAL_PATH%\venv\lib\site-packages;%APPL_PHYSICAL_PATH%\venv\lib;%APPL_PHYSICAL_PATH%;%PYTHONPATH%" />
<add name="DEPLOY_FILE" value="deploy.py" />
<add name="ERROR_LOG_DIR" value="log" />
<add name="WSGI_APP" value="trac_wsgi.application" />
</environmentVariables>
</application>
</heliconZoo>
<handlers>
<add name="TracWsgi.project#x64" path="*" verb="*" modules="HeliconZoo_x64" scriptProcessor="python.2.7.wsgi" resourceType="Unspecified" requireAccess="Script" preCondition="bitness64" />
<add name="TracWsgi.project#x86" path="*" verb="*" modules="HeliconZoo_x86" scriptProcessor="python.2.7.wsgi" resourceType="Unspecified" requireAccess="Script" preCondition="bitness32" />
</handlers>
</system.webServer>
</configuration>
2) It only has the following in that folder:
log
deploy_done.py
requirements.txt
trac_wsgi.py
trac_wsgi.pyc
web.config
__init__.py
3)
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<heliconZoo>
<clear />
<application name="TracWsgi.project">
<environmentVariables>
<add name="PYTHONHOME" value="C:\Python27" />
<add name="VIRTUAL_ENV" value="%APPL_PHYSICAL_PATH%\venv" />
<add name="PATH" value="%APPL_PHYSICAL_PATH%\venv\Scripts;%PATH%" />
<add name="PYTHONPATH" value="%APPL_PHYSICAL_PATH%\venv\lib\site-packages;%APPL_PHYSICAL_PATH%\venv\lib;%APPL_PHYSICAL_PATH%;%PYTHONPATH%" />
<add name="DEPLOY_FILE" value="deploy.py" />
<add name="ERROR_LOG_DIR" value="log" />
<add name="WSGI_APP" value="trac_wsgi.application" />
</environmentVariables>
</application>
</heliconZoo>
<handlers>
<add name="TracWsgi.project#x64" path="*" verb="*" modules="HeliconZoo_x64" scriptProcessor="python.2.7.wsgi" resourceType="Unspecified" requireAccess="Script" preCondition="bitness64" />
<add name="TracWsgi.project#x86" path="*" verb="*" modules="HeliconZoo_x86" scriptProcessor="python.2.7.wsgi" resourceType="Unspecified" requireAccess="Script" preCondition="bitness32" />
</handlers>
</system.webServer>
</configuration>
Re: Trouble with Trac
Thanks for the info.
virtualenv hasn't been created that's why there's no venv folder.
Run Helicon Zoo Manager, open Trac application there
You'll see the Open Console button. Run it. And execute:
deploy_done.py
This should help.
Then show us everything you get as the output for that command.
And please zip and send us your log folder.
virtualenv hasn't been created that's why there's no venv folder.
Run Helicon Zoo Manager, open Trac application there
You'll see the Open Console button. Run it. And execute:
deploy_done.py
This should help.
Then show us everything you get as the output for that command.
And please zip and send us your log folder.
Re: Trouble with Trac
deploy_done.py
--------------------
Running command: C:\Python27\scripts\virtualenv.exe venv
PYTHONHOME is set. You *must* activate the virtualenv before using it
New python executable in venv\Scripts\python.exe
Installing setuptools, pip...done.
Installing requirements
Running command: D:\web\cfi-tech.net\trac\venv\scripts\pip.exe install --requirement=requirements.txt
Requirement already satisfied (use --upgrade to upgrade): trac in c:\python27\lib\site-packages (from -r requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): setuptools>=0.6b1 in c:\python27\lib\site-packages\setuptools-3.5.1-py2.7.egg (from trac->-r requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): Genshi>=0.6 in c:\python27\lib\site-packages (from trac->-r requirements.txt (line 1))
Cleaning up...
Running command: cmd /c D:\web\cfi-tech.net\trac\venv\Scripts\trac-admin.exe trac initenv "My Project" "sqlite:db/trac.db"
'D:\web\cfi-tech.net\trac\venv\Scripts\trac-admin.exe' is not recognized as an internal or external command,
operable program or batch file.
Command "cmd /c D:\web\cfi-tech.net\trac\venv\Scripts\trac-admin.exe trac initenv "My Project" "sqlite:db/trac.db"" returns exit code 1
--------------------
Now going to the trac site shows this error:
--------------------
Trac Error
TracError: No Trac environment found at d:\web\cfi-tech.net\trac\trac
[Errno 2] No such file or directory: 'd:\\web\\cfi-tech.net\\trac\\trac\\VERSION'
--------------------
I am not sure why it's adding an additional \trac to the path?
--------------------
Running command: C:\Python27\scripts\virtualenv.exe venv
PYTHONHOME is set. You *must* activate the virtualenv before using it
New python executable in venv\Scripts\python.exe
Installing setuptools, pip...done.
Installing requirements
Running command: D:\web\cfi-tech.net\trac\venv\scripts\pip.exe install --requirement=requirements.txt
Requirement already satisfied (use --upgrade to upgrade): trac in c:\python27\lib\site-packages (from -r requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): setuptools>=0.6b1 in c:\python27\lib\site-packages\setuptools-3.5.1-py2.7.egg (from trac->-r requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): Genshi>=0.6 in c:\python27\lib\site-packages (from trac->-r requirements.txt (line 1))
Cleaning up...
Running command: cmd /c D:\web\cfi-tech.net\trac\venv\Scripts\trac-admin.exe trac initenv "My Project" "sqlite:db/trac.db"
'D:\web\cfi-tech.net\trac\venv\Scripts\trac-admin.exe' is not recognized as an internal or external command,
operable program or batch file.
Command "cmd /c D:\web\cfi-tech.net\trac\venv\Scripts\trac-admin.exe trac initenv "My Project" "sqlite:db/trac.db"" returns exit code 1
--------------------
Now going to the trac site shows this error:
--------------------
Trac Error
TracError: No Trac environment found at d:\web\cfi-tech.net\trac\trac
[Errno 2] No such file or directory: 'd:\\web\\cfi-tech.net\\trac\\trac\\VERSION'
--------------------
I am not sure why it's adding an additional \trac to the path?
Re: Trouble with Trac
Hello,
I may be the case that the problem is with Trac version.
Please delete the venv folde and in requirements.txt for trac replace the version to trac==0.12.6
Then try executing deploy_done.py again.
I may be the case that the problem is with Trac version.
Please delete the venv folde and in requirements.txt for trac replace the version to trac==0.12.6
Then try executing deploy_done.py again.
Re: Trouble with Trac
I did that and re-ran:
----------
deploy_done.py
Running command: C:\Python27\scripts\virtualenv.exe venv
PYTHONHOME is set. You *must* activate the virtualenv before using it
New python executable in venv\Scripts\python.exe
Installing setuptools, pip...done.
Installing requirements
Running command: D:\web\cfi-tech.net\trac\venv\scripts\pip.exe install --requirement=requirements.txt
Downloading/unpacking trac==0.12.6 (from -r requirements.txt (line 1))
Running setup.py (path:C:\Python27\build\trac\setup.py) egg_info for package trac
C:\Python27\lib\site-packages\setuptools-3.5.1-py2.7.egg\setuptools\dist.py:287: UserWarning: Module genshi was already imported from C:\Python27\lib\site-packages\genshi\__init__.pyc, but c:\python27\build\trac\genshi-0.6.1-py2.7.egg is being added to sys.path
Requirement already satisfied (use --upgrade to upgrade): setuptools>=0.6b1 in c:\python27\lib\site-packages\setuptools-3.5.1-py2.7.egg (from trac==0.12.6->-r requirements.txt (line 1))
Downloading/unpacking Genshi>=0.6,<0.7dev (from trac==0.12.6->-r requirements.txt (line 1))
Running setup.py (path:C:\Python27\build\Genshi\setup.py) egg_info for package Genshi
warning: no previously-included files matching '*' found under directory 'doc\logo.lineform'
warning: no previously-included files found matching 'doc\2000ft.graffle'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Installing collected packages: trac, Genshi
Found existing installation: Trac 1.0.2
Uninstalling Trac:
Successfully uninstalled Trac
Running setup.py install for trac
C:\Python27\lib\site-packages\setuptools-3.5.1-py2.7.egg\setuptools\dist.py:287: UserWarning: Module genshi was already imported from C:\Python27\lib\site-packages\genshi\__init__.pyc, but c:\python27\build\trac\genshi-0.6.1-py2.7.egg is being added to sys.path
Installing trac-admin-script.py script to C:\Python27\Scripts
Installing trac-admin.exe script to C:\Python27\Scripts
Installing trac-admin.exe.manifest script to C:\Python27\Scripts
Installing tracd-script.py script to C:\Python27\Scripts
Installing tracd.exe script to C:\Python27\Scripts
Installing tracd.exe.manifest script to C:\Python27\Scripts
Found existing installation: Genshi 0.7
Uninstalling Genshi:
Successfully uninstalled Genshi
Running setup.py install for Genshi
warning: no previously-included files matching '*' found under directory 'doc\logo.lineform'
warning: no previously-included files found matching 'doc\2000ft.graffle'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Successfully installed trac Genshi
Cleaning up...
Running command: cmd /c D:\web\cfi-tech.net\trac\venv\Scripts\trac-admin.exe trac initenv "My Project" "sqlite:db/trac.db"
'D:\web\cfi-tech.net\trac\venv\Scripts\trac-admin.exe' is not recognized as an internal or external command,
operable program or batch file.
Command "cmd /c D:\web\cfi-tech.net\trac\venv\Scripts\trac-admin.exe trac initenv "My Project" "sqlite:db/trac.db"" returns exit code 1
D:\web\cfi-tech.net\trac>
----------
Going to the site:
----------
Internal Server Error
TracError: IOError: [Errno 2] No such file or directory: 'd:\\web\\cfi-tech.net\\trac\\trac\\VERSION'
----------
----------
deploy_done.py
Running command: C:\Python27\scripts\virtualenv.exe venv
PYTHONHOME is set. You *must* activate the virtualenv before using it
New python executable in venv\Scripts\python.exe
Installing setuptools, pip...done.
Installing requirements
Running command: D:\web\cfi-tech.net\trac\venv\scripts\pip.exe install --requirement=requirements.txt
Downloading/unpacking trac==0.12.6 (from -r requirements.txt (line 1))
Running setup.py (path:C:\Python27\build\trac\setup.py) egg_info for package trac
C:\Python27\lib\site-packages\setuptools-3.5.1-py2.7.egg\setuptools\dist.py:287: UserWarning: Module genshi was already imported from C:\Python27\lib\site-packages\genshi\__init__.pyc, but c:\python27\build\trac\genshi-0.6.1-py2.7.egg is being added to sys.path
Requirement already satisfied (use --upgrade to upgrade): setuptools>=0.6b1 in c:\python27\lib\site-packages\setuptools-3.5.1-py2.7.egg (from trac==0.12.6->-r requirements.txt (line 1))
Downloading/unpacking Genshi>=0.6,<0.7dev (from trac==0.12.6->-r requirements.txt (line 1))
Running setup.py (path:C:\Python27\build\Genshi\setup.py) egg_info for package Genshi
warning: no previously-included files matching '*' found under directory 'doc\logo.lineform'
warning: no previously-included files found matching 'doc\2000ft.graffle'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Installing collected packages: trac, Genshi
Found existing installation: Trac 1.0.2
Uninstalling Trac:
Successfully uninstalled Trac
Running setup.py install for trac
C:\Python27\lib\site-packages\setuptools-3.5.1-py2.7.egg\setuptools\dist.py:287: UserWarning: Module genshi was already imported from C:\Python27\lib\site-packages\genshi\__init__.pyc, but c:\python27\build\trac\genshi-0.6.1-py2.7.egg is being added to sys.path
Installing trac-admin-script.py script to C:\Python27\Scripts
Installing trac-admin.exe script to C:\Python27\Scripts
Installing trac-admin.exe.manifest script to C:\Python27\Scripts
Installing tracd-script.py script to C:\Python27\Scripts
Installing tracd.exe script to C:\Python27\Scripts
Installing tracd.exe.manifest script to C:\Python27\Scripts
Found existing installation: Genshi 0.7
Uninstalling Genshi:
Successfully uninstalled Genshi
Running setup.py install for Genshi
warning: no previously-included files matching '*' found under directory 'doc\logo.lineform'
warning: no previously-included files found matching 'doc\2000ft.graffle'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Successfully installed trac Genshi
Cleaning up...
Running command: cmd /c D:\web\cfi-tech.net\trac\venv\Scripts\trac-admin.exe trac initenv "My Project" "sqlite:db/trac.db"
'D:\web\cfi-tech.net\trac\venv\Scripts\trac-admin.exe' is not recognized as an internal or external command,
operable program or batch file.
Command "cmd /c D:\web\cfi-tech.net\trac\venv\Scripts\trac-admin.exe trac initenv "My Project" "sqlite:db/trac.db"" returns exit code 1
D:\web\cfi-tech.net\trac>
----------
Going to the site:
----------
Internal Server Error
TracError: IOError: [Errno 2] No such file or directory: 'd:\\web\\cfi-tech.net\\trac\\trac\\VERSION'
----------
Re: Trouble with Trac
Hello,
Could you please execute "cmd" -> "set" and provide the entire list of environment variables that you will get.
Also, put the following into your web.config:
<environmentVariables>
<add name="PYTHONHOME" value="" />
...
Could you please execute "cmd" -> "set" and provide the entire list of environment variables that you will get.
Also, put the following into your web.config:
<environmentVariables>
<add name="PYTHONHOME" value="" />
...
Re: Trouble with Trac
Adding <add name="PYTHONHOME" value="" /> fixed everything. It's working now!
Thanks.
Thanks.
12 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests