ECToo / xdelta

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

Trouble with Python module on Windows XP #99

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. compile xdelta3.0u source with mingw 5.1.6, python 2.6.4
   python setup.py build -c mingw32
running build
running build_ext
building 'xdelta3main' extension
creating build
creating build\temp.win32-2.6
creating build\temp.win32-2.6\Release
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DPYTHON_MODULE=1 -
DSECONDARY_DJW=1 -DVCDIFF_TOOLS=1 -DGENERIC_ENCODE_TABLES=0 -DXD3_POSIX=1 -
DXD3_USE_LARGEFILE64=0 -DEXTERNAL_COMPRESSION=0 -DREGRESSION_TEST=0 -
DSECONDARY_FGK=0 -DXD3_DEBUG=0 -IC:\Python26\include -IC:\Python26\PC -c 
xdelta3.c -o build\temp.win32-2.6\Release\xdelta3.o -O3 -g -fno-builtin
In file included from xdelta3.c:790:
xdelta3-main.h: In function `get_millisecs_now':
xdelta3-main.h:564: warning: dereferencing type-punned pointer will break 
strict-aliasing rules
writing build\temp.win32-2.6\Release\xdelta3main.def
creating build\lib.win32-2.6
C:\MinGW\bin\gcc.exe -mno-cygwin -shared -s build\temp.win32-
2.6\Release\xdelta3.o build\temp.win32-2.6\Release\xdelta3main.def -
LC:\Python26\libs -LC:\Python26\PCbuild -lpython26 -lmsvcr90 -o 
build\lib.win32-2.6\xdelta3main.pyd

   python setup.py install --compile --force
running install
running build
running build_ext
running install_lib
copying build\lib.win32-2.6\xdelta3main.pyd -> C:\Python26\Lib\site-
packages
running install_egg_info
Removing C:\Python26\Lib\site-packages\xdelta3main-3.0u-py2.6.egg-info
Writing C:\Python26\Lib\site-packages\xdelta3main-3.0u-py2.6.egg-info

2. edit python script
   import xdelta3
3. error print
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "xdelta3.py", line 7, in <module>
    import _xdelta3
ImportError: No module named _xdelta3

What is the expected output? What do you see instead?
expected is import success, but I see error: No module named _xdelta3

What version of the product are you using? On what operating system?
xdelta3.0u, winxp sp3

Please provide any additional information below.
compile in cmd without cgywin

Original issue reported on code.google.com by home...@gmail.com on 21 Dec 2009 at 3:02

GoogleCodeExporter commented 9 years ago
You'll have to get help from someone familiar with python on windows (w/o 
cygwin).  
The point of python managing it's own build & install process is so that I 
don't have to 
know how it works.

Original comment by josh.mac...@gmail.com on 9 Jan 2010 at 1:26

GoogleCodeExporter commented 9 years ago
I remember looking at the SWIG interface a while back, and it wasn't functional 
in
the least; it was apparently expecting things to be made available to it that 
were
not being made available anywhere. Importing xdelta3main (or whatever it was) 
should
work, but it is very limited.

Original comment by uNsanity...@gmail.com on 15 Feb 2010 at 3:25