eaman
Posts: 6
Joined: Wed Jul 18, 2012 10:46 pm

Raspbian Wheezy cannot import name Fla- can't install Django

Wed Jul 18, 2012 10:58 pm

Hello happy people, I'm having a try on the new raspbian image based on wheezy,
using virtualenv (actually even using standard packages from apt) I can't manage to load modules.

I'm on flask, when I try to execute the basic 'hello.py' example[1]:

Code: Select all

root@raspberrypi:~# python hello.py 
Traceback (most recent call last):
  File "hello.py", line 1, in <module>
    from flask import Flask
  File "/root/flask.py", line 1, in <module>
ImportError: cannot import name Flask
BTW: It seems that I can't even install Django in a virtualenv:

Code: Select all

(env)root@raspberrypi:~# easy_install django
Searching for django
Reading http://pypi.python.org/simple/django/
Reading http://www.djangoproject.com/
Best match: Django 1.4
Downloading https://www.djangoproject.com/m/releases/1.4/Django-1.4.tar.gz
Processing Django-1.4.tar.gz
error: No space left on device
[hint='I do have space!']
1. http://flask.pocoo.org/

eaman
Posts: 6
Joined: Wed Jul 18, 2012 10:46 pm

Re: Raspbian Wheezy cannot import name Fla- can't install Dj

Tue Jul 24, 2012 9:05 am

I Found a solution: the problem was /tmp beeing to small to hold django and staff.
Just dis-mount the tmpfs on /tmp and it will be good:

Code: Select all

root@raspberrypi:~# umount /tmp

Euphorbium
Posts: 4
Joined: Sun Dec 09, 2012 5:12 pm

Re: Raspbian Wheezy cannot import name Fla- can't install Dj

Sun Dec 09, 2012 5:14 pm

And what about flask? I am having the same problem.

Return to “Python”

Who is online

Users browsing this forum: No registered users and 11 guests