Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
How do I install dlls and exes for libtidy and others?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Kevin Ar18  
View profile   Translate to Translated (View Original)
 More options 5 Nov, 15:26
From: Kevin Ar18 <kevina...@hotmail.com>
Date: Thu, 5 Nov 2009 10:26:05 -0500
Local: Thurs 5 Nov 2009 15:26
Subject: How do I install dlls and exes for libtidy and others?

Well, I'm going to go ahead and apologize for sending this off-topic message here, but I just don't know who else to ask.  I tried the Python forums - no response.  I tried the general Python mailing list - no useful info or no response.  I don't know whether my problem is a silly mistake on my part or some weird problem that only a few people may know how to solve (thus the lack of response I'm getting).  However, the problem is a real show-stopper for me.  I can't use a lot of libraries or get anything done because of it....

Problem:
I cannot get libxml2, libxslt, or libtidy to work -- all use external C programs or dlls that are linked into a python library.

All of these libraries return an error that they do not exist (meaning they cannot find the exe or dll).

I go through the process of installing the Python library using easy_install; that works fine.  Then, I install the pre-compiled Windows binaries and/or dlls... but it never works....

* First, off, I never know where to install the pre-compiled binaries.  There instructions never say exactly, but seem to assume I know what to do with the binaries for libxml2, libxslt, and libtidy.
* I tried copying the exe and/or dlls to Python, Python\Lib, and Python\Dll  ... none worked.
* import libxml2, import libxslt, and import libtidy do not work.  For example for libtidy, I get:
import tidy
OSError: Couldn't find libtidy, please make sure it is installed.
* Note: Python\ and Python\Scripts are both part of my OS PATH variable if that matters

My questions.
What is the proper way to setup/install pre-compiled Windows binaries so that they will work with the Python libraries?

What are all the steps?

Is there some things I can do to help diagnose problems?

Could the problem be something different or trivial that I overlooked?

Again, sorry for bringing the problem here... can anyone recommend places that would be good to ask these kinds of questions?

I'll probably start exploring some oddball solutions later (hacks) like calling the program from the command line ... or maybe looking through the python library code and hacking some odd solution.  Still, I would like to find out if I'm doing something wrong.                                      
_________________________________________________________________
Hotmail: Trusted email with Microsoft's powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141664/direct/01/
http://clk.atdmt.com/GBL/go/177141664/direct/01/


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Vanasco  
View profile   Translate to Translated (View Original)
 More options 5 Nov, 18:25
From: Jonathan Vanasco <jonat...@findmeon.com>
Date: Thu, 5 Nov 2009 10:25:38 -0800 (PST)
Local: Thurs 5 Nov 2009 18:25
Subject: Re: How do I install dlls and exes for libtidy and others?
try stackoverflow.com ?

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason S.  
View profile   Translate to Translated (View Original)
 More options 5 Nov, 18:26
From: "Jason S." <jas...@tuffmail.com>
Date: Thu, 5 Nov 2009 10:26:55 -0800 (PST)
Local: Thurs 5 Nov 2009 18:26
Subject: Re: How do I install dlls and exes for libtidy and others?
Kevin,
I can't answer for libxml2/libxslt, but I maintain pytidylib and have
been working on the Windows problem. The released version needs to be
updated to use a different loading mechanism for Windows, but that
would be futile at the moment as the prepackaged tidy.dll has weird
memory errors when used through ctypes, which both pytidylib and the
older uTidyLib use. I have a minimal case that duplicates this, so I'm
pretty sure the dll is the issue. So right now they are *nix
libraries. I have a note in the docs & project page but maybe it
should warn on import.

Unfortunately, I'm not primarily a Windows developer and haven't had
the time to hack and/or recompile tidy.dll from source and release a
new distribution, which I think is what will be required. Do you have
any MSVC-fu?

If your application is not required to be fast, you could call
tidy.exe and pass it command-line parameters, using the subprocess or
commands module.

You could also use mxTidy, which is a C extension rather than using
ctypes and might work better. It uses the original (circa 2000, I
think) Tidy codebase though, not the updated one.
Jason


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Ar18  
View profile   Translate to Translated (View Original)
 More options 5 Nov, 18:41
From: Kevin Ar18 <kevina...@hotmail.com>
Date: Thu, 5 Nov 2009 13:41:14 -0500
Local: Thurs 5 Nov 2009 18:41
Subject: RE: How do I install dlls and exes for libtidy and others?

 <2cd9331c-243c-4daa-bfe2-9c52caf49...@t2g2000yqn.googlegroups.com>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

I finally have libtidy working=2C although I have no idea why the solution =
works and the old method does not.
=20
Essentially=2C I need a special compiled version of libtidy.  Whichever win=
dows dll I was using did not work for some reason.
=20
I spent sevral hours hacking away at the libtidy and ctypes python modules =
to narrow down the cause of the problem. I finally found out that it could =
not recognize the dll -- it said it was not a valid Win3d app or whatever. =
 The solution?
=20
I needed the x64 dll from here:
http://int64.org/projects/tidy-binaries/
=20
This makes me wonder if maybe some of the other libraries have similar majo=
r incompatability or quirkiness to them.
=20
=20

> Unfortunately=2C I'm not primarily a Windows developer and haven't had
> the time to hack and/or recompile tidy.dll from source and release a
> new distribution=2C which I think is what will be required. Do you have
> any MSVC-fu?

Not enough to hack away at the c/c++ source for libtidy.  I have MSVC 2008 =
Express.  Maybe one of those other dlls solves the problem you are having a=
s well?
=20

> If your application is not required to be fast=2C you could call
> tidy.exe and pass it command-line parameters=2C using the subprocess or
> commands module.

That was gonna be one of my last resort options. :)                                      =20
_________________________________________________________________
Bing brings you maps=2C menus=2C and reviews organized in one place.
http://www.bing.com/search?q=3Drestaurants&form=3DMFESRP&publ=3DWLHMT...
a=3DTEXT_MFESRP_Local_MapsMenu_Resturants_1x1=

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason S.  
View profile   Translate to Translated (View Original)
 More options 5 Nov, 18:55
From: "Jason S." <jas...@tuffmail.com>
Date: Thu, 5 Nov 2009 10:55:24 -0800 (PST)
Local: Thurs 5 Nov 2009 18:55
Subject: Re: How do I install dlls and exes for libtidy and others?

> I spent sevral hours hacking away at the libtidy and ctypes python modules =
> to narrow down the cause of the problem. I finally found out that it could =
> not recognize the dll -- it said it was not a valid Win3d app or whatever. =
>  The solution?
> =20
> I needed the x64 dll from here:http://int64.org/projects/tidy-binaries/

Kevin,
Glad it's working. Are you on 64-bit Windows then, or did you find one
of the patched versions on that site to work on 32-bit Windows? I'll
add a link to that site to the pytidylib docs.
Jason

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Ar18  
View profile   Translate to Translated (View Original)
 More options 5 Nov, 19:01
From: Kevin Ar18 <kevina...@hotmail.com>
Date: Thu, 5 Nov 2009 14:01:49 -0500
Local: Thurs 5 Nov 2009 19:01
Subject: RE: How do I install dlls and exes for libtidy and others?

> > to narrow down the cause of the problem. I finally found out that it could =
> > not recognize the dll -- it said it was not a valid Win3d app or whatever. =
> >  The solution?
> > I needed the x64 dll from here:http://int64.org/projects/tidy-binaries/

> Kevin,
> Glad it's working. Are you on 64-bit Windows then, or did you find one
> of the patched versions on that site to work on 32-bit Windows? I'll
> add a link to that site to the pytidylib docs.
> Jason

I'm on Vista x64.

I noticed that it was not recognizing the dll after hacking tidylib and ctypes.

Then I noticed that the binaries do not list Vista (if that matters).

So, I gave a different dll a try.

It might be worth asking the person who compiled the binaries why this might be a problem for people, since he'll know more about it.

P.S.  I've sent you a private email to continue discussing... :)

_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141665/direct/01/


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google