Installation von Python-Modul

Probleme bei der Installation?
Antworten
smith0815
User
Beiträge: 99
Registriert: Dienstag 13. April 2010, 11:08

Hi

ich versuche bei mir das Python-Modul Pandas zu installieren, leider klappt das nicht so ganz.
hat einer eine Ahnung woran das liegt?

Die Ausgabe lautet:

Code: Alles auswählen

Processing wesm-pandas-0.3.0-230-g6b959f7.tar.gz
Running wesm-pandas-6b959f7/setup.py -q bdist_egg --dist-dir /tmp/easy_install-dEUtOk/wesm-pandas-6b959f7/egg-dist-tmp-hxjEfJ
warning: no directories found matching 'docs'
no previously-included directories found matching 'docs/build'
no previously-included directories found matching 'docs/gh-pages'
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.pyd' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '.git*' found anywhere in distribution
warning: no previously-included files matching '.DS_Store' found anywhere in distribution
Traceback (most recent call last):
  File "/usr/bin/easy_install", line 9, in <module>
    load_entry_point('distribute==0.6.15', 'console_scripts', 'easy_install')()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1906, in main
    with_ei_usage(lambda:
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1887, in with_ei_usage
    return f()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1910, in <lambda>
    distclass=DistributionWithoutHelpCommands, **kw
  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 363, in run
    self.easy_install(spec, not self.no_deps)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 583, in easy_install
    return self.install_item(None, spec, tmpdir, deps, True)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 633, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 823, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1100, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1089, in run_setup
    run_setup(setup_script, args)
  File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 29, in run_setup
    lambda: execfile(
  File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 70, in run
    return func()
  File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 31, in <lambda>
    {'__file__':setup_script, '__name__':'__main__'}
  File "setup.py", line 236, in <module>
  File "/usr/lib/pymodules/python2.7/numpy/distutils/core.py", line 186, in setup
    return old_setup(**new_attr)
  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/bdist_egg.py", line 179, in run
    cmd = self.call_command('install_lib', warn_dir=0)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/bdist_egg.py", line 166, in call_command
    self.run_command(cmdname)
  File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/install_lib.py", line 20, in run
    self.build()
  File "/usr/lib/python2.7/distutils/command/install_lib.py", line 111, in build
    self.run_command('build_ext')
  File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "setup.py", line 169, in build_extensions
  File "setup.py", line 163, in check_cython_extensions
NameError: global name 'fatal' is not defined
smith0815
User
Beiträge: 99
Registriert: Dienstag 13. April 2010, 11:08

ne leider nicht, denn damals habe ich das Problem gelöst.
Diesmal klappt es aber nicht warum weiß ich nicht.
smith0815
User
Beiträge: 99
Registriert: Dienstag 13. April 2010, 11:08

bin vermutlich ein Schritt weiter.

Im Setup.py von Pandas wird die globale Funktion fatal() aufgerufen wenn kein Cython installiert ist.

habs installiert, jetzt neue Fehlermeldung, komisch ist nur das Numpy installiert ist, inkl. dbg-Version.

Vermutlich hat sich der Grund für die erste Fehlermeldung nicht geändert:

Code: Alles auswählen

Processing wesm-pandas-0.3.0-230-g6b959f7.tar.gz
Running wesm-pandas-6b959f7/setup.py -q bdist_egg --dist-dir /tmp/easy_install-2wcRwj/wesm-pandas-6b959f7/egg-dist-tmp-goxxaQ
warning: no directories found matching 'docs'
no previously-included directories found matching 'docs/build'
no previously-included directories found matching 'docs/gh-pages'
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.pyd' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '.git*' found anywhere in distribution
warning: no previously-included files matching '.DS_Store' found anywhere in distribution
gcc: pandas/src/tseries.c: Datei oder Verzeichnis nicht gefunden
gcc: no input files
gcc: pandas/src/tseries.c: Datei oder Verzeichnis nicht gefunden
gcc: no input files
error: Setup script exited with error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/pymodules/python2.7/numpy/core/include -I/usr/include/python2.7 -c pandas/src/tseries.c -o build/temp.linux-i686-2.7/pandas/src/tseries.o" failed with exit status 1
/usr/lib/pymodules/python2.7/numpy/distutils/misc_util.py:251: RuntimeWarning: Parent module 'numpy.distutils' not found while handling absolute import
  from numpy.distutils import log
CM
User
Beiträge: 2464
Registriert: Sonntag 29. August 2004, 19:47
Kontaktdaten:

Verschiebe mal den Download aus einem tmp-Verzeichnis in ein persistentes (nur der Übersichtlichkeit halber und um sicherzugehen, daß da nicht zwischenzeitlich von Dir oder dem System versehenlich was gelöscht wurde). Dann kontrolliere, ob alle Dateien da sind (gibt es eine md5-Summe oder sozum Abgleich?) und dann würde ich mal checken, ob die Pfade stimmen (PATH, INCLUDEPATH, etc.).
Antworten