Discussion:
[BitPim-devel] new makedist error
sod/sgt-d
2006-05-25 16:32:19 UTC
Permalink
I know some things were added, not sure exactly what I need. but I am
getting a new error when I try to run makedist:



C:\bitpim\buildrelease>makedist.py

Using package file src/package.py

Traceback (most recent call last):

File "C:\bitpim\buildrelease\makedist.py", line 589, in ?

pkg=__import__(os.path.splitext(os.path.basename(pkg))[0])

ImportError: No module named package



Variables by last 8 frames, innermost last



Frame ? in C:\bitpim\buildrelease\makedist.py at line 589

eh = <function eh at 0x00A5F4F0>

sanitycheck = <function sanitycheck at 0x00A5F330>

recursiveglob = <function recursiveglob at 0x00A0BBF0>

pkg = 'src/package.py'

getconfig = <function getconfig at 0x00A5F3F0>

formatexception = <function formatexception at 0x00A5F370>

windowsbuild = <function windowsbuild at 0x00A5F270>

makeconfig = <function makeconfig at 0x00A5F4B0>

PATH_CXFREEZE = '/opt/cx_Freeze-3.0.2'

rmrf = <function rmrf at 0x00A0BC30>

manifest_template = '\n<?xml version="1.0" encoding="UTF-8"
standalone="yes"?>\

n<assembly xmlns="urn

setconfig = <function setconfig at 0x00A5F430>

RT_MANIFEST = 24

__file__ = 'C:\\bitpim\\buildrelease\\makedist.py'

run = <function run at 0x00A0BBB0>

linuxrpmbuild = <function linuxrpmbuild at 0x00A5F2B0>

saveconfig = <function saveconfig at 0x00A5F470>

opd = <function dirname at 0x009B59F0>

opb = <function basename at 0x009B59B0>

__name__ = '__main__'

opj = <function join at 0x009B5870>

dosubs = <function dosubs at 0x00A5F230>

__doc__ = 'Builds a binary distribution of a Python program\n\nThis
cod

e runs on Windows,

WINXP_MANIFEST = '\n<?xml version="1.0" encoding="UTF-8"
standalone="yes"?>\n<

assembly xmlns="urn

clean = <function clean at 0x00A5F030>

macbuild = <function macbuild at 0x00A5F2F0>

PATH_INNOSETUP = 'c:\\program files\\inno setup 5\\compil32.exe'

setupconfig = <function setupconfig at 0x00A5F3B0>



thanks,



-sgt
Simon C
2006-05-25 20:25:49 UTC
Permalink
Post by sod/sgt-d
C:\bitpim\buildrelease>makedist.py
You need to run in the directory below buildrelease.
c:/bitpim>buildrelease/makedist.py

Simon
sod/sgt-d
2006-05-25 20:54:17 UTC
Permalink
thank you, that helped.



on to the next problems.



i was never able to locate a download for jarow or jaro/winkler.



and i'm not sure if the "1.4 (oddish)" problem at the bottom will hold me up
either.



jaro/winkler string matcher Using (slow) Python version of Jaro/Winkler.
Build

C module in native/strings.

Traceback (most recent call last):

File "c:\bitpim\buildrelease\makedist.py", line 594, in ?

pkg.sanitycheck() # theirs

File "c:\bitpim\src\package.py", line 82, in sanitycheck

import native.strings.jarow

ImportError: No module named jarow



Variables by last 8 frames, innermost last



Frame ? in c:\bitpim\buildrelease\makedist.py at line 594

eh = <function eh at 0x00A5F4F0>

sanitycheck = <function sanitycheck at 0x00A5F330>

recursiveglob = <function recursiveglob at 0x00A0BBF0>

getconfig = <function getconfig at 0x00A5F3F0>

formatexception = <function formatexception at 0x00A5F370>

windowsbuild = <function windowsbuild at 0x00A5F270>

makeconfig = <function makeconfig at 0x00A5F4B0>

PATH_CXFREEZE = '/opt/cx_Freeze-3.0.2'

rmrf = <function rmrf at 0x00A0BC30>

manifest_template = '\n<?xml version="1.0" encoding="UTF-8"
standalone="yes"?>\

n<assembly xmlns="urn

setconfig = <function setconfig at 0x00A5F430>

RT_MANIFEST = 24

__file__ = 'c:\\bitpim\\buildrelease\\makedist.py'

run = <function run at 0x00A0BBB0>

linuxrpmbuild = <function linuxrpmbuild at 0x00A5F2B0>

saveconfig = <function saveconfig at 0x00A5F470>

opd = <function dirname at 0x009B59F0>

__warningregistry__ = Keys [("Non-ASCII character '\\xa9' in file
c:\\bitpim\\s

rc\\package.py on line 286, but no encoding declared; see
http://www.python.org/

peps/pep-0263.html for details", <class exceptions.DeprecationWarning at
0x00998

1B0>, 589)]

{("Non-ASCII character '\\xa9' in file
c:\\bitpim\\src\\packa

ge.py on line 286,

opb = <function basename at 0x009B59B0>

__name__ = '__main__'

opj = <function join at 0x009B5870>

dosubs = <function dosubs at 0x00A5F230>

__doc__ = 'Builds a binary distribution of a Python program\n\nThis
cod

e runs on Windows,

WINXP_MANIFEST = '\n<?xml version="1.0" encoding="UTF-8"
standalone="yes"?>\n<

assembly xmlns="urn

clean = <function clean at 0x00A5F030>

macbuild = <function macbuild at 0x00A5F2F0>

PATH_INNOSETUP = 'c:\\program files\\inno setup 5\\compil32.exe'

setupconfig = <function setupconfig at 0x00A5F3B0>



Frame sanitycheck in c:\bitpim\src\package.py at line 82

ver = '3.3.5'

expect = '1.4 (oddish)'



thanks,



-sgt
Roger Binns
2006-05-26 06:42:17 UTC
Permalink
Post by sod/sgt-d
i was never able to locate a download for jarow or jaro/winkler.
You don't download it - you need to compile it.
Post by sod/sgt-d
and i'm not sure if the "1.4 (oddish)" problem at the bottom will hold me up
either.
That is the version of Paramiko that is a required component for a
redistributable build.

If you run packaging/buildmodules.py then all the pieces that need
to be compiled will be.

You will need the MinGW compiler in your path.

Roger
sod/sgt-d
2006-05-26 13:01:44 UTC
Permalink
thanks a ton!

I will check paramiko again, I could have sworn mine was already at "1.4
(oddish)"

as for compiiling, thanks for the tip... but I am getting errors with
jarow:

c:\bitpim>packaging\buildmodules.py
===== src/native/usb
===== src/native/strings
running build
running build_ext
building 'jarow' extension
creating build
creating build\temp.win32-2.3
creating build\temp.win32-2.3\Release
c:\bin\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\python23\include
-IC:\p
ython23\PC -c jarow.c -o build\temp.win32-2.3\Release\jarow.o
writing build\temp.win32-2.3\Release\jarow.def
creating build\lib.win32-2.3
c:\bin\mingw\bin\gcc.exe -mno-cygwin -shared -s
build\temp.win32-2.3\Release\jar
ow.o build\temp.win32-2.3\Release\jarow.def -LC:\python23\libs
-LC:\python23\PCB
uild -lpython23 -o build\lib.win32-2.3\jarow.pyd
build\temp.win32-2.3\Release\jarow.o(.text+0x7d0):jarow.c: undefined
reference t
o `_imp__PyString_Type'
build\temp.win32-2.3\Release\jarow.o(.text+0x7de):jarow.c: undefined
reference t
o `_imp__PyString_Type'
build\temp.win32-2.3\Release\jarow.o(.text+0x807):jarow.c: undefined
reference t
o `_imp__PyUnicode_Type'
build\temp.win32-2.3\Release\jarow.o(.text+0x815):jarow.c: undefined
reference t
o `_imp__PyUnicode_Type'
build\temp.win32-2.3\Release\jarow.o(.text+0x84b):jarow.c: undefined
reference t
o `_imp__PyString_Type'
build\temp.win32-2.3\Release\jarow.o(.text+0x859):jarow.c: undefined
reference t
o `_imp__PyUnicode_Type'
build\temp.win32-2.3\Release\jarow.o(.text+0x8ba):jarow.c: undefined
reference t
o `_imp__PyUnicode_Type'
build\temp.win32-2.3\Release\jarow.o(.text+0x8c8):jarow.c: undefined
reference t
o `_imp__PyString_Type'
build\temp.win32-2.3\Release\jarow.o(.text+0x937):jarow.c: undefined
reference t
o `_imp__PyExc_TypeError'
error: command 'gcc' failed with exit status 1
Roger Binns
2006-05-26 14:40:44 UTC
Permalink
Post by sod/sgt-d
I will check paramiko again, I could have sworn mine was already at "1.4
(oddish)"
You weren't getting any error in that exception trace. One of the
variables happened to have that string as a value.
Post by sod/sgt-d
as for compiiling, thanks for the tip... but I am getting errors with
o `_imp__PyString_Type'
Save this as mingwsetup.bat and run it:

https://svn.sourceforge.net/svnroot/bitpim/subprojects/apsw/trunk/mingwsetup.bat

You have to have various silly library files built that say what
symbols come from which DLLs. It only needs to be run once.

Roger
sod/sgt-d
2006-05-26 15:44:19 UTC
Permalink
ugh, one thing after another...

C:\python23>mingwsetup.bat
C:\python23>set PYTHONDIRBASE=c:\Python
C:\python23>set WINSYS32=C:\WINDOWS\system32
C:\python23>pexports C:\WINDOWS\system32\python23.dll 1>py23exports.def
C:\python23>dlltool --dllname python23.dll --def py23exports.def
--output-lib c:\Python23\libs\libpython23.a
dlltool: installation problem, cannot exec `as'
C:\python23>del py23exports.def
MinGW is setup for Python 23
You do not have Python 24 installed

C:\python23>dlltool --version
GNU dlltool 2.13.90 20030111
Copyright 2002 Free Software Foundation, Inc.

C:\python23>as --version
GNU assembler 2.13.90 20030111
Copyright 2002 Free Software Foundation, Inc.
This assembler was configured for a target of `mingw32'.

Simon C
2006-05-26 14:17:13 UTC
Permalink
Post by sod/sgt-d
as for compiiling, thanks for the tip... but I am getting errors with
-LC:\python23\PCB
Where did you install python? The linker is expecting to find it in
c:\python23.

Make sure you have version 2.3.x, not 2.4.

Simon
sod/sgt-d
2006-05-26 15:41:51 UTC
Permalink
yes, that is my version and the same folder, c:\python23

-----Original Message-----
From: bitpim-devel-***@lists.sourceforge.net
[mailto:bitpim-devel-***@lists.sourceforge.net] On Behalf Of Simon C
Sent: Friday, May 26, 2006 9:17 AM
To: bitpim-***@lists.sourceforge.net
Subject: RE: [BitPim-devel] new makedist error
Post by sod/sgt-d
as for compiiling, thanks for the tip... but I am getting errors with
-LC:\python23\PCB
Where did you install python? The linker is expecting to find it in
c:\python23.

Make sure you have version 2.3.x, not 2.4.

Simon



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
Loading...