Edgewall Software
Modify

Opened 7 years ago

Closed 13 months ago

#12930 closed defect (fixed)

Spambayes dependency conflicts with dnspython

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: plugin - spam-filter
Component: plugin/spamfilter Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Ryan J Ollos)

$ pip install dnspython
Collecting dnspython
  Using cached dnspython-1.15.0-py2.py3-none-any.whl
Installing collected packages: dnspython
Successfully installed dnspython-1.15.0
$ python -c "import dns"
$ pip install spambayes
Collecting spambayes
Collecting lockfile>=0.2 (from spambayes)
  Using cached lockfile-0.12.2-py2.py3-none-any.whl
Collecting pydns>=2.0 (from spambayes)
Installing collected packages: lockfile, pydns, spambayes
Successfully installed lockfile-0.12.2 pydns-2.3.6 spambayes-1.1b2
$ python -c "import dns"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/rjollos/Documents/Workspace/trac-dev/pve-spamfilter/lib/python2.7/site-packages/dns/__init__.py", line 14, in <module>
    import Type,Opcode,Status,Class
ImportError: No module named Opcode

I edited SpamFilter@129 before determining that pydns is required by spambayes, so the suggestion of uninstall pydns is not the right solution.

Oddly, I have these same package versions installed in a virtualenv hosting trac-hacks.org and don't see the conflict for that case.

Attachments (0)

Change History (4)

comment:1 by Ryan J Ollos, 7 years ago

Description: modified (diff)

in reply to:  description comment:2 by Ryan J Ollos, 7 years ago

Replying to Ryan J Ollos:

I edited SpamFilter@129 before determining that pydns is required by spambayes, so the suggestion of uninstall pydns is not the right solution.

Reverted in SpamFilter@130.

comment:3 by thomas.moschny@…, 5 years ago

pydns installs files to DNS/*, while dnspython installs files to dns/*, hence there is no conflict on a case-sensitive file system.

comment:4 by Dirk Stöcker, 13 months ago

Resolution: fixed
Status: assignedclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Ryan J Ollos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.