मैं Django/जनहित याचिका/इमेजिंग के साथ कुछ पीडीएफ उत्पन्न करने के लिए और सब कुछ अच्छा है जब तक मैं पीडीएफ में कुछ छवियों डाल करने के लिए प्रयास करने के कोशिश कर रहा हूँ:_imaging सी मॉड्यूल स्थापित नहीं है (खिड़कियों पर)
Exception Type: ImportError
Exception Value:
The _imaging C module is not installed
Exception Location: D:\install\python27\lib\site-packages\PIL\Image.py in __getattr__, line 37
Python Executable: D:\install\python27\python.exe
Python Version: 2.7.1
Python Path:
['D:\\~Sasha\\Portman',
'D:\\install\\python27\\lib\\site-packages\\setuptools-0.6c11-py2.7.egg',
'D:\\install\\python27\\lib\\site-packages\\pisa-3.0.33-py2.7.egg',
'D:\\install\\python27\\lib\\site-packages\\html5lib-0.95-py2.7.egg',
'D:\\install\\python27\\lib\\site-packages\\pypdf-1.13-py2.7.egg',
'D:\\install\\PyCharm 2.0.2\\helpers',
'D:\\~Sasha\\Portman',
'D:\\~Sasha',
'C:\\Windows\\system32\\python27.zip',
'D:\\install\\python27\\DLLs',
'D:\\install\\python27\\lib',
'D:\\install\\python27\\lib\\plat-win',
'D:\\install\\python27\\lib\\lib-tk',
'D:\\install\\python27',
'D:\\install\\python27\\lib\\site-packages',
'D:\\install\\python27\\lib\\site-packages\\PIL']
जनहित याचिका जनहित याचिका वेबसाइट से पूर्व संकलित बंडल के माध्यम से स्थापित किया गया था और आयात _imaging इस उत्पादन दे रहा था:
Python 2.7.1 (r271:86832, Feb 7 2011, 11:33:02) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import _imaging
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: DLL load failed: %1 is not a valid Win32 application.
अजगर कर सके x64 इस मुद्दे के कारण हो सकता है?
Python 2.7.1 (r271:86832, Feb 7 2011, 11:33:02) [MSC v.1500 64 bit (AMD64)] on win32
मैं जनहित याचिका के 64 के लिए पहले से बने पैकेज मिला है और मौजूदा बंडल के शीर्ष पर स्थापित है, अब सांत्वना के माध्यम से आयात करता है काम:
>>> import _imaging
import _imaging # dynamically loaded from D:\install\python27\lib\site-packages\PIL\_imaging.pyd
लेकिन मैं जब कोशिश कर एक ही त्रुटि मिलती रहती है पीडीएफ फ़ाइल उत्पन्न करने के लिए।
ये ठीक है, स्थापित 64 और देखें: >>> आयात _imaging आयात _imaging # गतिशील विकास से भरी हुई: \ स्थापित \ python27 \ lib \ साइट-संकुल \ जनहित याचिका \ _imaging.pyd लेकिन अब भी वही त्रुटि – abolotnov
@abolotnov हो रही Http://www.lfd.uci.edu/~gohlke/pythonlibs/#pil से पीआईएल लाइब्रेरी के साथ बस परीक्षण, पायथन x64 मेरे लिए काम करता है। बस पहले पुराने को अनइंस्टॉल करना सुनिश्चित करें। –
सर्वर को फिर से शुरू किया और हे-हो! धन्यवाद! – abolotnov