Seite 1 von 2
Verfasst: Sonntag 11. April 2010, 21:21
von waki
Code: Alles auswählen
$ make -f Makefile.pre.in boot
rm -f *.o *~
rm -f *.a tags TAGS config.c Makefile.pre python sedscript
rm -f *.so *.sl so_locations
VERSION=`python -c "import sys; print sys.version[:3]"`; \
installdir=`python -c "import sys; print sys.prefix"`; \
exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \
make -f ./Makefile.pre.in VPATH=. srcdir=. \
VERSION=$VERSION \
installdir=$installdir \
exec_installdir=$exec_installdir \
Makefile
make[1]: Entering directory `/c/Users/Kille/Programme/py-lame-0.1'
make[1]: *** No rule to make target `Files'. Stop.
make[1]: Leaving directory `/c/Users/Kille/Programme/py-lame-0.1'
make: *** [boot] Error 2
Variable erstellt, geht trotzdem nicht

Verfasst: Sonntag 11. April 2010, 21:40
von Leonidas
Ok, dieses Makefile-Gewurstel ist echt nicht hübsch, nimm mal diese ``setup.py``:
Code: Alles auswählen
from distutils.core import setup, Extension
module1 = Extension('lame',
sources = ['lamemodule.c'])
setup (name = 'lame',
version = '0.1',
description = 'lame interface',
ext_modules = [module1])
Verfasst: Sonntag 11. April 2010, 21:47
von waki
ausgeführt, installation erfolgriech aber hab keine lame modul zum importieren -.-
Code: Alles auswählen
C:\Users\Kille\Programme\py-lame-0.1>setup.py install
running install
running build
running build_ext
building 'lame' extension
error: None
C:\Users\Kille\Programme\py-lame-0.1>python
Python 2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import lame
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named lame
>>> import pylame
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named pylame
>>>
Verfasst: Sonntag 11. April 2010, 22:23
von Leonidas
Schau mal ob bei dir in ``site-packages`` irgendeine ``.pyd``-Datei liegt, die vom Namen her passt.
Verfasst: Montag 12. April 2010, 12:09
von waki
im ganzen python ordner ist nichts mit lame....
Verfasst: Montag 12. April 2010, 12:20
von Leonidas
Dann schau mal ob im ``build``-Ordner irgendsowas rumliegt. Bei mir wars ne ``lame.so``.
Verfasst: Montag 12. April 2010, 12:44
von waki
welchen build ordner meinst du jetzt?
Verfasst: Montag 12. April 2010, 12:50
von Leonidas
Der der im gleichen Ordner liegt wie die ``setup.py``.
Verfasst: Montag 12. April 2010, 13:04
von waki
da ist keiner ^^
Verfasst: Montag 12. April 2010, 14:27
von querdenker
derdon hat geschrieben:waki hat geschrieben:€: Wie schwer es sein kann, eine dumme libary zum laufen zu bingen -.-
Mit Linux wär das nicht passiert!

Mit ein paar sinnvollen Angaben bei der Eröffnung des Threads und einem gerüttelt Maß Grundlagenwissen beim TO....

Verfasst: Montag 12. April 2010, 14:46
von Leonidas
Führe mal ``python setup.py build_ext`` in dem Ordner aus und kopiere die Ausgaben ins Pastebin...
Verfasst: Montag 12. April 2010, 15:07
von waki
Code: Alles auswählen
C:\Users\Kille\Programme\py-lame-0.1>python setup.py build_ext
running build_ext
building 'lame' extension
error: None
....
Verfasst: Montag 12. April 2010, 15:09
von Leonidas
Ah, ich denke du musst distutils noch sagen, dass du MinGW nutzen willst. Dieses "Error: None" verwundert mich dann doch etwas, weil bei mir baut das.
Verfasst: Montag 12. April 2010, 16:15
von waki
ich nutze msys....und wie sag ich das dem ? ^^
Verfasst: Montag 12. April 2010, 16:39
von Leonidas
Puh, ist schon 4 Jahre her dass ich das letzte mal Windows verwendet habe, daher nur aus der Erinnerung: Leg neben der ``setup.py`` eine ``setup.ini`` an, mit diesem Inhalt:
[build_ext]
compiler=mingw32
Dann kannst du ``python setup.py build_ext`` aufrufen und schauen ob es besser wird.
Verfasst: Montag 12. April 2010, 20:16
von waki
leider nicht
Keiner da der windows verwendet und sich damit auskennt?