Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Users

Idiotic newbie question

 

 

Trac users RSS feed   Index | Next | Previous | View Threaded


bill at prezence

May 4, 2008, 6:04 AM

Post #1 of 11 (148 views)
Permalink
Idiotic newbie question

I am a PLC guy, I do html, js, php and mysql, just getting my feet wet in
Python.

I am trying to run trac on XAMPP (win32, apache2.5.2) I have followed the
instructions carefully at http://trac.edgewall.org/wiki/TracOnWindows and
reviewed the instructions at http://trac.edgewall.org/wiki/TracInstall

I am positive I have missed a simple step somewhere, as this is what I get
when I open up localhost:8080
Available Projects
And then nothing.

Some notes: I created the project folder as C:\xampp\htdocs\xampp\projects
I started Tracd and the window says:
C:\xampp\Python2.5.2\Scripts>tracd --hostname=localhost -p 8080 /projects
Server starting in PID 3588.
Serving on http://localhost:8080/
127.0.0.1 - - [04/May/2008 07:46:25] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [04/May/2008 07:46:25] "GET /favicon.ico HTTP/1.1" 404 -
127.0.0.1 - - [04/May/2008 07:46:36] "GET /projects HTTP/1.1" 404 -

I have python2.5.2 in my path environment variables, but not the scripts
directory.

I would also like to run Subversion, I have already told it to create a
repository at xampp\projects, but I want to get Trac running first before I
go any farther.

So any thoughts for a moron beginner?


Bill Johnson
Prezence, Inc.
Industrial Automation & Controls
Training • Troubleshooting • Programming
http://www.prezence.com



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


redetin at gmail

May 4, 2008, 9:34 PM

Post #2 of 11 (140 views)
Permalink
Re: Idiotic newbie question [In reply to]

Bill Johnson kirjoitti:
> I am a PLC guy, I do html, js, php and mysql, just getting my feet wet in
> Python.
>
> I am trying to run trac on XAMPP (win32, apache2.5.2) I have followed the
> instructions carefully at http://trac.edgewall.org/wiki/TracOnWindows and
> reviewed the instructions at http://trac.edgewall.org/wiki/TracInstall
>
> I am positive I have missed a simple step somewhere, as this is what I get
> when I open up localhost:8080
> Available Projects
> And then nothing.
>
> Some notes: I created the project folder as C:\xampp\htdocs\xampp\projects
> I started Tracd and the window says:
> C:\xampp\Python2.5.2\Scripts>tracd --hostname=localhost -p 8080 /projects
> Server starting in PID 3588.
> Serving on http://localhost:8080/
> 127.0.0.1 - - [04/May/2008 07:46:25] "GET / HTTP/1.1" 200 -
> 127.0.0.1 - - [04/May/2008 07:46:25] "GET /favicon.ico HTTP/1.1" 404 -
> 127.0.0.1 - - [04/May/2008 07:46:36] "GET /projects HTTP/1.1" 404 -

You didn't mentioned that you created project with trac-admin.

I suggest that you create two base directories for example c:\trac and
c:\svn

First create subversion:

svnadmin create c:\svn\testproject

Then create trac environment:

trac-admin c:\trac\testproject initenv

Fill in other details, when asking for repository you would but
c:\svn\testproject here.

And now test with tracd:

tracd --hostname=localhost -p 8080 c:\trac\testproject


Now you should have access to just created testproject.

If it works it is time to configure XAMPP to run all that stuff.


--
Jani Tiainen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


bill at prezence

May 5, 2008, 6:41 PM

Post #3 of 11 (137 views)
Permalink
Re: Idiotic newbie question [In reply to]

> You didn't mentioned that you created project with trac-admin.
>
> I suggest that you create two base directories for example c:\trac and
> c:\svn
>
> First create subversion:
>
> svnadmin create c:\svn\testproject
>
> Then create trac environment:
>
> trac-admin c:\trac\testproject initenv
>
> Fill in other details, when asking for repository you would but
> c:\svn\testproject here.
>
> And now test with tracd:
>
> tracd --hostname=localhost -p 8080 c:\trac\testproject
>
>
> Now you should have access to just created testproject.
>
> If it works it is time to configure XAMPP to run all that stuff.

Thank you very much. I saw that in the instructions but couldn't get it to
run. Took me awhile to realize what I had missed (a pesky path environment
variable was all, the one for the python scripts)

I will now trudge on. Seems I can now crash Python 2.5.2 with a single click
. . .


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


asmodai at in-nomine

May 6, 2008, 12:40 AM

Post #4 of 11 (136 views)
Permalink
Re: Idiotic newbie question [In reply to]

-On [20080506 03:41], Bill Johnson (bill[at]prezence.com) wrote:
>I will now trudge on. Seems I can now crash Python 2.5.2 with a single click

That would be odd, since I've run 2.4 and 2.5 installs on both 32- and
64-bit Windows and never experienced a crash at all.

I mean, Python, like any other software program, has its bugs, but I have
not experienced many crashes with it where the Python interpreter would die.

--
Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai
むェルーン ラウフロック ヴゑン デル ウェルヴェン
http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B
If Winter comes, can Spring be far behind..?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


bill at prezence

May 6, 2008, 2:49 AM

Post #5 of 11 (135 views)
Permalink
Re: Idiotic newbie question [In reply to]

Hello, see below:
<snip>
>
> -On [20080506 03:41], Bill Johnson (bill[at]prezence.com) wrote:
> >I will now trudge on. Seems I can now crash Python 2.5.2 with a single
> click
>
> That would be odd, since I've run 2.4 and 2.5 installs on both 32- and
> 64-bit Windows and never experienced a crash at all.
>
> I mean, Python, like any other software program, has its bugs, but I have
> not experienced many crashes with it where the Python interpreter would
> die.
>

I have a repeatable incident, but still have not determined the root cause.
I installed the python hack for apache (doesn't come in xampp) and I am
thinking it might be the culprit.

From the 'Available Projects' screen, clicking on the one and only 'Test
Project 1' will shut python down every time. The short error ignature from
XP is AppName: python.exe AppVer: 0.0.0.0 ModName: libapr.dll
ModVer: 0.9.12.0 Offset: 00007cfc

I will go back and review my install logs, perhaps I mismatched my apache
hack with my python version.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


worldwidehick at gmail

May 6, 2008, 5:18 AM

Post #6 of 11 (136 views)
Permalink
Re: Idiotic newbie question [In reply to]

On May 6, 4:49 am, "Bill Johnson" <b...@prezence.com> wrote:
<snip>
> From the 'Available Projects' screen, clicking on the one and only 'Test
> Project 1' will shut python down every time. The short error ignature from
> XP is AppName: python.exe AppVer: 0.0.0.0 ModName: libapr.dll
> ModVer: 0.9.12.0 Offset: 00007cfc
>
> I will go back and review my install logs, perhaps I mismatched my apache
> hack with my python version.

I think I need to revise my statement. I installed the latest trunk
and I now get a crash much earlier in the process.

I created a new enviroment (svn & trac), however it seems initenv also
crashes Python: when I get to this line of initenv's output I get the
dreaded "python.exe" has encountered a problem and needs to close box.

C:\>trac-admin C:\xampp\htdocs\xampp\projects\test
Welcome to trac-admin 0.11b2
Interactive Trac administration console.
Copyright (c) 2003-2007 Edgewall Software

Type: '?' or 'help' for help on commands.

Trac [C:\xampp\htdocs\xampp\projects\test]> initenv
Creating a new Trac environment at C:\xampp\htdocs\xampp\projects\test

Trac will first ask a few questions about your environment
in order to initalize and prepare the project database.

Please enter the name of your project.
This name will be used in page titles and descriptions.

Project Name [My Project]> Test

Please specify the connection string for the database to use.
By default, a local SQLite database is created in the environment
directory. It is also possible to use an already existing
PostgreSQL database (check the Trac documentation for the exact
connection string syntax).

Database connection string [sqlite:db/trac.db]>

Please specify the type of version control system,
By default, it will be svn.

If you don't want to use Trac with version control integration,
choose the default here and don't specify a repository directory.
in the next question.

Repository type [svn]> svn

Please specify the absolute path to the version control
repository, or leave it blank to use Trac without a repository.
You can also set the repository location later.

Path to repository [/path/to/repos]> C:\xampp\htdocs\xampp\svn

Creating and Initializing Project
Installing default wiki pages
c:\xampp\python2.5.2\lib\site-packages\trac\wiki\default-pages
\CamelCase import
ed from CamelCase
<snip of lots of install data>
c:\xampp\python2.5.2\lib\site-packages\trac\wiki\default-pages
\WikiRestructured
TextLinks imported from WikiRestructuredTextLinks
c:\xampp\python2.5.2\lib\site-packages\trac\wiki\default-pages
\WikiStart import
ed from WikiStart



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


asmodai at in-nomine

May 6, 2008, 6:14 AM

Post #7 of 11 (135 views)
Permalink
Re: Idiotic newbie question [In reply to]

-On [20080506 11:49], Bill Johnson (bill[at]prezence.com) wrote:
>ModName: libapr.dll

I find this one to be very suspect.
This means that it's the SVN SWIG bindings to Python that are causing
issues, not Python itself.

--
Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai
むェルーン ラウフロック ヴゑン デル ウェルヴェン
http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B
If Winter comes, can Spring be far behind..?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


josef.pktd at gmail

May 6, 2008, 1:57 PM

Post #8 of 11 (135 views)
Permalink
Re: Idiotic newbie question [In reply to]

On May 6, 9:14 am, Jeroen Ruigrok van der Werven <asmo...@in-
nomine.org> wrote:
> -On [20080506 11:49], Bill Johnson (b...@prezence.com) wrote:
>
> >ModName: libapr.dll
>
> I find this one to be very suspect.
> This means that it's the SVN SWIG bindings to Python that are causing
> issues, not Python itself.

Are you running svn 1.5.0.? Last weekend I installed svn 1.5.0 beta on
WindowsXP and I managed to crash Python each time I tried to access
the svn-python bindings. The reported file was either libapr.dll or
libapr-1.dll.

So also my Trac access to my local subversion repository did not work
anymore, but that's not the fault of Trac.

I finally ended up uninstalling 1.5.0 since I didn't manage to get any
of my python based programs to work. Uninstall worked fine, and now
everything is running again with svn 1.4.6. You can test the python
bindings directly in python. I think ``import svn.client`` already
crashed python, if I remember correctly.


Josef

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


cdokolas at gmail

May 8, 2008, 12:44 AM

Post #9 of 11 (117 views)
Permalink
Re: Idiotic newbie question [In reply to]

On May 6, 4:14 pm, Jeroen Ruigrok van der Werven <asmo...@in-
nomine.org> wrote:
> -On [20080506 11:49], Bill Johnson (b...@prezence.com) wrote:
>
> >ModName: libapr.dll
>
> I find this one to be very suspect.
> This means that it's the SVN SWIG bindings to Python that are causing
> issues, not Python itself.

I had the same problem. It is a little complicated, but, if I remember
correctly, it goes like this:

The problem lies with the installable SVN package. I got svn-1.4.6-
setup.exe from http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=8100&expandFolder=8100&folderID=8100
which is supposedly "build against Apache 2.2" (so says the folder).
This is not the case and instead of using libapr-1, it uses libapr
(i.e. it is build against Apache 2.0!). When installed, libapr.dll is
installed with svn and the installation path is included in the PATH.

svn-python-1.4.6, on the other hand, has some kind of problem and can
dynamically link with libapr.dll instead of libapr-1.dll, if it is
found first in the path, which makes it crash (Python crashes and,
thus, Apache).

This bugged me for 2 whole weeks. I uninstalled SVN, and just used the
binaries (from svn-win32-1.4.6.zip) which include and use libapr-1.dll

Doc
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


cboos at neuf

May 8, 2008, 1:25 AM

Post #10 of 11 (117 views)
Permalink
Re: Idiotic newbie question [In reply to]

Doc wrote:
>
> On May 6, 4:14 pm, Jeroen Ruigrok van der Werven <asmo...@in-
> nomine.org> wrote:
>
>> -On [20080506 11:49], Bill Johnson (b...@prezence.com) wrote:
>>
>>
>>> ModName: libapr.dll
>>>
>> I find this one to be very suspect.
>> This means that it's the SVN SWIG bindings to Python that are causing
>> issues, not Python itself.
>>
>
> I had the same problem. It is a little complicated, but, if I remember
> correctly, it goes like this:
>
> The problem lies with the installable SVN package. I got svn-1.4.6-
> setup.exe from http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=8100&expandFolder=8100&folderID=8100
> which is supposedly "build against Apache 2.2" (so says the folder).
> This is not the case and instead of using libapr-1, it uses libapr
> (i.e. it is build against Apache 2.0!). When installed, libapr.dll is
> installed with svn and the installation path is included in the PATH.
>
> svn-python-1.4.6, on the other hand, has some kind of problem and can
> dynamically link with libapr.dll instead of libapr-1.dll, if it is
> found first in the path, which makes it crash (Python crashes and,
> thus, Apache).
>
> This bugged me for 2 whole weeks. I uninstalled SVN, and just used the
> binaries (from svn-win32-1.4.6.zip) which include and use libapr-1.dll
>
>

Thanks for your explanations!

Also related:
- http://trac.edgewall.org/ticket/5752
- http://trac.edgewall.org/ticket/6739#comment:9

If anyone feels tempted to yell "damn M$ dll hell!", please take a look
at the long list of weird svn issues which also exist on Linux, Solaris,
... (http://trac.edgewall.org/wiki/TracSubversion#Troubleshooting), then
just replace M$ by anything more general before yelling :-)

-- Christian


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


cdokolas at gmail

May 8, 2008, 2:47 AM

Post #11 of 11 (117 views)
Permalink
Re: Idiotic newbie question [In reply to]

On May 8, 11:25 am, Christian Boos <cb...@neuf.fr> wrote:
> Thanks for your explanations!
>
> Also related:
> -http://trac.edgewall.org/ticket/5752
> -http://trac.edgewall.org/ticket/6739#comment:9

Thanks, I had forgotten that comment 14 (http://trac.edgewall.org/
ticket/5752#comment:14) is mine :P

Doc
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Trac users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.