Build with python 2.7.11: error on install

Bug #1540211 reported by rezso
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Catfish
Fix Released
Undecided
Sean Davis

Bug Description

If I build catfish 1.3.4 with python 2.7.11, the install fails:

Catfish Data Directory: /usr/share/catfish/
Traceback (most recent call last):
  File "setup.py", line 183, in <module>
    cmdclass={'install': InstallAndUpdateDataDirectory}
  File "/usr/lib/python2.7/site-packages/DistUtilsExtra/auto.py", line 100, in setup
    distutils.core.setup(**attrs)
  File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "setup.py", line 163, in run
    update_config(self.install_lib, values)
  File "setup.py", line 37, in update_config
    fin = open(filename, 'r', encoding='utf-8')
TypeError: 'encoding' is an invalid keyword argument for this function

I solved this with using codecs.open().

Revision history for this message
Sean Davis (bluesabre) wrote :

Thanks for the bug report. While I definitely recommend using Python3 for Catfish going forward, I took your suggestion and fixed installation for Python2 and Python3 with the same change. This will be included in the upcoming 1.4.0 release.

https://bazaar.launchpad.net/~catfish-search/catfish-search/trunk/revision/449

Changed in catfish-search:
status: New → Fix Committed
assignee: nobody → Sean Davis (bluesabre)
Sean Davis (bluesabre)
Changed in catfish-search:
milestone: none → 1.4.0
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.