Edgewall Software

Ticket #1597 (closed defect: worksforme)

Opened 4 years ago

Last modified 3 years ago

Timeline and browse source fail after installation

Reported by: philippe.marzin@… Owned by: jonas
Priority: low Milestone:
Component: general Version: 0.8.1
Severity: critical Keywords:
Cc:

Description

I did everything described in the TracOnWindow? page - use svn 1.1.4, Python-2.3 - everything works fine, except Timeline and Browse source where I get the error lines below - I put all dll in system32. The only thing I did not do is to import things into the svn repository.

Oops... Trac detected an internal error:

DLL load failed: Le module sp�cifi� est introuvable.

If you think this really should work and you can reproduce it. Then you should consider to report this problem to the Trac team.

Go to http://trac.edgewall.com/ and create a new ticket where you describe the problem, how to reproduce it. Don't forget to include the python traceback found below.

TracGuide — The Trac User and Administration Guide Python traceback

Traceback (most recent call last):

File "C:\pmn\pmn-home\Python-2.3\Lib\site-packages\trac\core.py", line 531, in cgi_start

real_cgi_start()

File "C:\pmn\pmn-home\Python-2.3\Lib\site-packages\trac\core.py", line 526, in real_cgi_start

dispatch_request(path_info, args, req, env)

File "C:\pmn\pmn-home\Python-2.3\Lib\site-packages\trac\core.py", line 439, in dispatch_request

module = module_factory(args, env, database, req)

File "C:\pmn\pmn-home\Python-2.3\Lib\site-packages\trac\core.py", line 172, in module_factory

import sync

File "C:\pmn\pmn-home\Python-2.3\Lib\site-packages\trac\sync.py", line 22, in ?

from svn import fs, util, delta, repos, core

File "C:\pmn\pmn-home\Python-2.3\lib\svn\fs.py", line 28, in ?

import libsvn.fs

File "C:\pmn\pmn-home\Python-2.3\lib\libsvn\fs.py", line 4, in ?

import _fs

ImportError?: DLL load failed: Le module sp�cifi� est introuvable.

Attachments

Change History

Changed 4 years ago by cboos

  • priority changed from normal to low
  • milestone 0.8.2 deleted

It seems that the Subversion bindings are not correctly installed.

Double-check point 17. in TracOnWindows#InstallTracPrerequisites

What's not clearly explained there however is that you either have to put the libraries in the place your Python executable will expect them to be (in Lib or better, Lib/site-packages or you have to modify your PYTHONPATH environment variable so that it points to the place you unpacked the python bindings. Note that putting the python bindings dll in system32 is pointless Python will not look there...

You can always check that you've done a correct setup once you can successfully do a

>>> import svn.fs

at the python command-line.

Please don't forget to close that ticket when it worksforyou :)

Changed 4 years ago by PMN

  • status changed from new to closed
  • resolution set to worksforme

Thank you for your answer. clarification: I did everything fine and put the dlls I could find into system32 after I found it did not work. By the way >>>import svn.fs was working that's why I was desperate somehow.

Afetr reading your message, I had the idea to define PYTHONPATH into the apache location

<Location "/cgi-bin/trac.cgi">

SetEnv TRAC_ENV "E:\data-www\trac\pmo.db" SetEnv LOC_TIME fr_FR SetEnv PYTHONPATH "C:\pmn\pmn-home\Python-2.3"

</Location>

And it worked! So many, many thanks.

Changed 3 years ago by anonymous

Note about Windows: I also discovered that when my apache was running under the default system account that I would get this failure. By defining an active directory service account and associating it with the apache service, these 'DLL load failed' problems all went away.

Question: How hard would it be to report the DLL which is being sought?

Add/Change #1597 (Timeline and browse source fail after installation)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.