LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   Problems with Linkchecker (https://www.linuxquestions.org/questions/%2Absd-17/problems-with-linkchecker-284259/)

libsys 01-30-2005 07:37 PM

Problems with Linkchecker
 
I'm having problems with the Linkchecker app, which finds broken links on web pages.

I've installed this app on the FreeBSD (version 4.3-release) server which hosts the pages in question. I had to install it on the web server as the site uses a custom-programmed Java authentication system, and I don't think linkchecker can be configured to deal with this kind of authentication.

The full output (including the error) I'm getting when I run linkchecker using "/usr/local/bin/linkchecker <insert web address>" is:

File "/usr/local/bin/linkchecker", line 582, in ?
linkcheck.checker.check_urls(consumer)
File "/usr/local/lib/python2.3/site-packages/linkcheck/checker/__init__.py", line 112, in check_urls
_check_urls(consumer)
File "/usr/local/lib/python2.3/site-packages/linkcheck/checker/__init__.py", line 118, in _check_urls
consumer.logger_start_output()
File "/usr/local/lib/python2.3/site-packages/linkcheck/checker/consumer.py", line 143, in logger_start_output
self.logger.start_output()
File "/usr/local/lib/python2.3/site-packages/linkcheck/logger/text.py", line 89, in start_output
self.writeln(linkcheck.configuration.AppInfo)
File "/usr/local/lib/python2.3/site-packages/linkcheck/logger/__init__.py", line 119, in writeln
self.write(unicode(os.linesep), **args)
File "/usr/local/lib/python2.3/site-packages/linkcheck/logger/__init__.py", line 114, in write self.fd.write(self.encode(s), **args)
File "/usr/local/lib/python2.3/site-packages/linkcheck/ansicolor.py", line 199, in write
if has_colors(self._fp):
File "/usr/local/lib/python2.3/site-packages/linkcheck/ansicolor.py", line 147, in has_colors
curses.setupterm()
AttributeError: 'module' object has no attribute 'setupterm'

Where the "AttributeError" line is the error I'm getting. I've tried searching on the above error message, and just on "setupterm()", but can't find anything helpful. I get the error no matter if I try to run the linkchecker on the files as a web page (eg. using 'html....') or directly on the local system.

I've tried installing the app from both source and the ports tree, but I still get the same error. It appears to me that there is a problem with Ncurses, but I've tried installing the latest version (5.4) from ports and it is supposedly already installed.

The most annoying thing is that as an experiment I tried installing this on a Redhat fedora box and it worked instantly, but I can't run it from that box because of the authentication issues I mentioned above.

I really need to get this up and running as soon as possible - if anyone here knows how to fix this, or can point me in the general direction, I would really appreciate the help.

Thanks,
Guy


All times are GMT -5. The time now is 10:57 AM.