On 1/21/13, Christopher Nelson <chris.nelson.1...@gmail.com> wrote: > [...] > Help! > [...] > In 0.11.6, I can test my > changes to query.py with my TracPM code but that's not ported to or > tested in 1.0 yet [...] > I put my code in > trac/sample-plugins/sampleQueryPreprocessor/sampleQueryPreprocessor.py > and tried and tried to create a setup.py in that directory. Nothing I > try works. I build my egg and deploy it and my trac.log says: > > 2013-01-21 15:45:27,463 Trac[loader] DEBUG: Adding plugin > SampleQueryPreprocessor 0.1 from > /opt/trac/trac1.0/plugins/SampleQueryPreprocessor-0.1-py2.7.egg > 2013-01-21 15:45:27,470 Trac[loader] DEBUG: Loading > SampleQueryPreprocessor from > /opt/trac/trac1.0/plugins/SampleQueryPreprocessor-0.1-py2.7.egg > 2013-01-21 15:45:27,473 Trac[loader] ERROR: Skipping > "SampleQueryPreprocessor = SampleQueryPreprocessor": > Traceback (most recent call last): > File "build/bdist.linux-x86_64/egg/trac/loader.py", line 68, in > _load_eggs > entry.load(require=True) > File "build/bdist.linux-i686/egg/pkg_resources.py", line 1954, in load > entry = __import__(self.module_name, globals(),globals(), ['__name__']) > ImportError: No module named SampleQueryPreprocessor >
Launch the Python interpreter and import that module i.e. SampleQueryPreprocessor . Perhaps you'll notice any failure ? > > My setup.py (modeled on something else I found on my disk that I think > works) is: > > #!/usr/bin/env python > # -*- coding: iso-8859-1 -*- > > from setuptools import find_packages, setup > > setup( > name = 'SampleQueryPreprocessor', > author = 'Chris Nelson', > author_email = 'chris.nel...@sixnet.com', > description = 'Example of a IQueryPreprocessor implementation', > version = '0.1', > license='BSD', > packages=find_packages(exclude=['*tests*']), I'm not sure of whether a single module will be listed here ... > entry_points = """ > [trac.plugins] > SampleQueryPreprocessor=SampleQueryPreprocessor > """, > ) > > What should it be? Better yet, where can I find a tutorial or > reference so I can get this right next time. This is making me > insane! > This might not be related to Trac ... [...] -- Regards, Olemis. Blog ES: http://simelo-es.blogspot.com/ Blog EN: http://simelo-en.blogspot.com/ Featured article: -- You received this message because you are subscribed to the Google Groups "Trac Development" group. To post to this group, send email to trac-dev@googlegroups.com. To unsubscribe from this group, send email to trac-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en.