• Rosanne

    Just a stupid question, but shouldn't the background picture be an iPad instead of a MacBook ;) ?
    The layout looks great.

    posted in Pythonista read more
  • Rosanne

    In the ios contacts, you can add extra dates, for things like anniveraries. I'd like to use them to add birthdays of children, since they really don't need their own contact entry. The problem is that these dates don't end up in the birthday calendar, so I thought I'd use pythonista to construct such a calendar. Now, maybe I overlooked it, but I couldn't find a way to get to those extra dates, did I miss something?

    If it's not possible to access them, I'll put the dates in the notes field and parse them, but that wouldn't be as elegant.

    posted in Pythonista read more
  • Rosanne

    Also, think about e^x or e^-x or e^4 (without the brackets). For that you definitely need regular expressions.

    import re
    
    formula = re.sub(r'e\^(-?[x0-9.]+?)', 'exp(\1)', formula)
    

    Something like that, haven't tested it, but should give you a start if you want to do something with re.

    posted in Pythonista read more
  • Rosanne

    I guess you'd have to use regular expressions to preprocess the user input before you plot. You have to be careful how you do it though, because e^ should become exp and not e**.

    A quick and dirty solution would be to print a line to tell the user to use ** instead of ^ etc.

    posted in Pythonista read more
  • Rosanne

    I just installed stash (very cool!) and wanted to use pip to install pylint. It seemed to work, but when I tried to run it I got an error saying it needed astroid. When I tried to pip install that I got a 'Failed import test. Check for dependencies' error. From comments on the forum it seemed as it would be trivial to install pylint, am I doing something wrong?

    posted in Pythonista read more
  • Rosanne

    Thank you very much, @JonB! It worked like a charm!

    posted in Pythonista read more
  • Rosanne

    I did that for a couple of other modules, but forgot it for six 😕. I uninstalled with pip, but that doesn't change the error message. Useful link!

    posted in Pythonista read more
  • Rosanne

    I added some traceback to the pip code and found out that the problem is that setuptools doesn't have a find_packages function. I don't understand exactly how this part of the code works, so now I'm stuck. There are people that managed to install pylint, any ideas?

    posted in Pythonista read more
  • Rosanne

    So I found out that astroid needs logilab-commons and six. Logilab-commons also needs six. I installed six, no problem, but now I can't get logilab-commons to install.

    I get this error:

    Trying to run setup.py
    Unable to locate package. Please try manual install
    Removing setup files
    Failed import test. Check for dependencies

    posted in Pythonista read more
  • Rosanne

    I got the import error from astroid, but that one didn't specify a module. It said it extracted a requires file, but I couldn't find that. Maybe I should just google for the astroid dependencies then.

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!