Ticket #293 (closed help: worksforme)

  • Remember to check that the log messages do not contain personal information.
  • Tickets containing names or links to copyrighted material will be deleted. Clean them out!
  • For more permissions: register or login with flexget / anon
  • Format your config and logs with {{{ ... }}} wiki formatting

Opened 14 months ago

Last modified 11 months ago

Can't find PyYAML

Reported by: cwernli@… Owned by: paranoidi
Priority: major Milestone: Help
Component: Version: 0.9.4
Keywords: Cc:

Description

As per the instructions I've installed PyYAML via Macports, and also ran the following commands (suggested by the macports-installation):

westgate:~ cwernli$ sudo port install py25-yaml
westgate:~ cwernli$ sudo port install python_select

without encountering any errors.

Yet when I run flexget the following happens:

westgate:flexget cwernli$ ./flexget.py --test
Please install PyYAML from  http://pyyaml.org/wiki/PyYAML or from your distro repository

although PyYAML is already installed, as macports will happily tell me if I run it again:

westgate:flexget cwernli$ sudo port install py25-yaml
Skipping org.macports.activate (py25-yaml ) since this port is already active
---> Cleaning py25-yaml

Some additional info:
westgate:flexget cwernli$ python --version
Python 2.5.4
westgate:flexget cwernli$ uname -a
Darwin westgate.local 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 22:52:17 PDT 2009; root:xnu-1228.12.14~1/RELEASE_I386 i386
westgate:flexget cwernli$ env
MANPATH=/opt/local/share/man:/usr/share/man:/usr/local/share/man:/usr/X11/man[[BR]] SHELL=/bin/bash
USER=cwernli
COMMAND_MODE=unix2003
PATH=/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin[[BR]] PWD=/Users/cwernli/flexget
LANG=it_IT.UTF-8
SHLVL=1
HOME=/Users/cwernli
LOGNAME=cwernli

Any ideas/pointers on what is wrong?

Thanks a lot.

Change History

Changed 14 months ago by paranoidi

  • owner set to paranoidi
  • status changed from new to assigned

Unfortunately I'm MAC illiterate and those OSX instructions were done by some helpful user :)

I have some ideas tough that might help.

First thing that comes into mind is to try firing up python interactive shell:

paranoidi@float~> python
Python 2.5.4 (r254:67916, Feb 17 2009, 20:16:45)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

and type:

>>> import yaml

If PyYAML is installed correctly this shouldn't produce any error. Just print new empty line.

My hunch is that this will not work and you will get error when trying to import yaml because that is what FlexGet tries to do anyway. I would suspect that macports yaml library does not get installed correctly for some reason.

There are couple other ways to install that should work as well.

Try removing the py25-yaml macports and install easy_install to your python (I suspect this is done via macports as well).

After that you should be able to:

sudo easy_install pyyaml

You can also install it manually from  http://pyyaml.org

Last option is that you install latest 1.0 development version. It works quite nicely and has a lot of new features and improvements. It has own virtualenv? and it manages all dependencies automatically.

For development version setup, see: here

However this is development setup so it may need some actions when updating it, they will be listed at bleeding edge news

Changed 11 months ago by paranoidi

  • status changed from assigned to closed
  • resolution set to worksforme
  • milestone changed from 1.0 to Help
Note: See TracTickets for help on using tickets.