PIL distributed inside Inkscape (Windows 64 bit)
Hi everyone,
While trying to use the PIL library bundled with the python installation inside the Inkscape directory, for developing a new extension, I got the following error:
import _imaging
Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: DLL load failed: The specified module could not be found.
Even though the _imaging.pyd file was present, I was unable to load it into the python interpreter. Then I found that even I downloaded the x64 installer for Inkscape, the bundled python version was the 32-bit one. After tweaking the windows registry (to make the installer point to the bundled python directory) I managed to install the x64 version of PIL, still without success because the python interpreter was 32-bit.
After forcing the installation of python 2.6 64-bit version over the bundled version, I had to reinstall on this python environment the PIL and lxml libraries, and my plugin finally was able to use PIL.
Should this issue be fixed? I mean bundling python 64bit (+libraries) with Inkscape 64bit installer.
Hello,
Could you please file a bugreport for the extension that not run on inkscape 64bit. https://bugs.launchpad.net/inkscape/+filebug
I use Python in my daily work and came to the conclusion to not use 64 bit python as I run into dead end with some libs not provided as 64bit.
However we could discuss to repacke the given python interpreter to current 2.7 version. I don't think all extensions are 3.4 compatible.
Adib. --
On Sun, Mar 15, 2015 at 4:20 PM, Lorenzo Luengo <loluengo@...400...> wrote:
Hi everyone,
While trying to use the PIL library bundled with the python installation inside the Inkscape directory, for developing a new extension, I got the following error:
import _imaging
Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: DLL load failed: The specified module could not be found.
Even though the _imaging.pyd file was present, I was unable to load it into the python interpreter. Then I found that even I downloaded the x64 installer for Inkscape, the bundled python version was the 32-bit one. After tweaking the windows registry (to make the installer point to the bundled python directory) I managed to install the x64 version of PIL, still without success because the python interpreter was 32-bit.
After forcing the installation of python 2.6 64-bit version over the bundled version, I had to reinstall on this python environment the PIL and lxml libraries, and my plugin finally was able to use PIL.
Should this issue be fixed? I mean bundling python 64bit (+libraries) with Inkscape 64bit installer.
-- Lorenzo Luengo C. Ingeniero Civil Electrónico Cel: 98270385
Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
It is an extension that I am developing for personal use, maybe will release it in near future.
I think that if the inkscape build is for 64 bit system, the underlying python should also be 64 bit, as it prevented me from using a DLL-based python library (PIL) (bundled in the internal python installation), it may be the case for other libraries that others may want to use that are currently shipped and may be unnoticed yet.
It would also be a great idea to test the extensions on python 3.4. What is needed to do this? Just install python 3.4 over the current python install in the inkscape directory?
Regards.
On 3/15/2015 8:31 PM, the Adib wrote:
Hello,
Could you please file a bugreport for the extension that not run on inkscape 64bit. https://bugs.launchpad.net/inkscape/+filebug
I use Python in my daily work and came to the conclusion to not use 64 bit python as I run into dead end with some libs not provided as 64bit.
However we could discuss to repacke the given python interpreter to current 2.7 version. I don't think all extensions are 3.4 compatible.
Adib.
Lorenzo Luengo <loluengo@...360...> writes:
Hi everyone,
While trying to use the PIL library bundled with the python installation
inside the Inkscape directory,
for developing a new extension, I got the following error:
import _imaging
Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: DLL load failed: The specified module could not be found.
Even though the _imaging.pyd file was present, I was unable to load it
into the python interpreter. Then I
found that even I downloaded the x64 installer for Inkscape, the bundled python version was the 32-bit one. After tweaking
the windows registry (to make the
installer point to the bundled python directory) I managed to install the x64 version of PIL, still without success because
the python interpreter was 32-bit.
After forcing the installation of python 2.6 64-bit version over the
bundled version, I had to reinstall on
this python environment the PIL and lxml libraries, and my plugin finally was able to use PIL.
Should this issue be fixed? I mean bundling python 64bit (+libraries) with
Inkscape 64bit installer.
We have this same issue with a laser exporting script I developed. As such in my instructions I've got people to install python seperately which has caused numerous headaches for people.
If this could be fixed it would be a big relief to some of the users of my plugin/extension.
participants (3)
-
Lorenzo Luengo
-
the Adib
-
Turnkey