yuxiaorui / pythonxy

Automatically exported from code.google.com/p/pythonxy
0 stars 0 forks source link

lxml broken in python(x,y) 2.7.6.0 #733

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. What version of Python(x,y) have you installed?
2.7.6.0

2. Which components have you installed (Python(x,y) installer:
componentpage):
    b. Have you selected the "Full" component selection?

3. Have you selected the option "Customize installation directories"?
b. No

4. If the answer to 3. is yes, what installation directories have you
chosen?

5. Where did you install Python(x,y) itself?
a. default path

6. Have you installed Python(x,y):
    b. For "All users"

7. What is your operating system?
c. Windows 7

8. Is the operating system 64 bit?
a. Yes

9. When you installed Python(x,y), were you logged in as :
b. an administrator of the machine

10. If you are using Windows Vista/7, have you installed Python(x,y):
a. simply by double-clicking on the installer

11. Regarding installed software on your machine, how did you clean your
machine before installing Python(x,y)  (multiple answers are possible):
b. you uninstalled any previous Python distribution (including the
official .msi)

What steps will reproduce the problem?
1. from lxml import etree

What is the expected output? What do you see instead?
I expect to see a successful import.
Instead I get:

ImportError                               Traceback (most recent call last)
<ipython-input-2-e492e736e32b> in <module>()
----> 1 from lxml import etree

ImportError: DLL load failed: The specified procedure could not be found.

Original issue reported on code.google.com by vanneste...@gmail.com on 5 May 2014 at 8:54

GoogleCodeExporter commented 9 years ago
It is very likely there is an old version of libxml2.dll on the path.

Open a command shell and enter "where libxml2.dll" for example Graphviz ships 
with an old version of libxml2.dll:

C:\Program Files\ConEmu>where libxml2.dll
c:\Programs\Graphviz\bin\libxml2.dll

C:\Program Files\ConEmu>

Original comment by grizzly.nyo on 8 May 2014 at 6:23

GoogleCodeExporter commented 9 years ago
I installed an lxml 3.3.4 binary from PyPI in the mean time (which solved the 
problem), but I can confirm I have a Graphvix libxml2.dll in my path:

where libxml2.dll
C:\Program Files (x86)\Graphviz2.32\bin\libxml2.dll
C:\Python27\DLLs\libxml2.dll

Original comment by vanneste...@gmail.com on 11 May 2014 at 7:55

GoogleCodeExporter commented 9 years ago
Yes - this is fixed in latest lxml xy package (3.3.5).

The DLL names were renamed to avoid collision with other non xy installs.

2.7.6.1 stuff.

Original comment by grizzly.nyo on 17 May 2014 at 8:07