Bus Error: 10 (Intro Tutorial)

2012-04-19 Thread Harald Sigh Andertun
Hi all

I am totally new to django. Have followed the intro tutorial until part 
2, 
but when I start the development server and tries to access the admin page 
Python crashes immediately. The console prints "Bus error: 10".
I have been googling for a while now, but can't figure out why this error 
occurs.

Is it a code error, or an environment issue?

I use Python 2.6.2 and Django 1.4.0, and I have choosen sqlite3 as db.

I hope someone can enlighten me in what direction the problem might be ;)

Cheers,
Harald

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/8EP1qv3APR4J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Bus Error: 10 (Intro Tutorial)

2012-04-19 Thread Harald Sigh Andertun
I actually just found the problem (by accident)

I had forgot a comma in the urls.py

urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls))*,*
)
 ^^ here

I am surprised this mistake caused a bus error.

Thanks for the help anyway :)

- Harald


Den torsdag den 19. april 2012 17.50.16 UTC+2 skrev David Markey:
>
> Bus error is usually a very low level problem.
>
> Can you give a screen shot?
>
> If you are on linux, also post dmesg.
>
> On 19 April 2012 16:36, Harald Sigh Andertun wrote:
>
>> Hi all
>>
>> I am totally new to django. Have followed the intro tutorial until part 
>> 2<https://docs.djangoproject.com/en/dev/intro/tutorial02/>, 
>> but when I start the development server and tries to access the admin page 
>> Python crashes immediately. The console prints "Bus error: 10".
>> I have been googling for a while now, but can't figure out why this error 
>> occurs.
>>
>> Is it a code error, or an environment issue?
>>
>> I use Python 2.6.2 and Django 1.4.0, and I have choosen sqlite3 as db.
>>
>> I hope someone can enlighten me in what direction the problem might be ;)
>>
>> Cheers,
>> Harald
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/django-users/-/8EP1qv3APR4J.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/b2YP3DyFrq0J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Bus Error: 10 (Intro Tutorial)

2012-04-19 Thread Harald Sigh Andertun
The syntax error was not the only problem. It helped a bit, but I still got 
bus errors.

I installed Python 2.7 and reinstalled Django-1.4 using pip insted of 
django's own setup.py install

I don't know if I've been wiser, but at least it seems to work now :-)


Den torsdag den 19. april 2012 17.36.53 UTC+2 skrev Harald Sigh Andertun:
>
> Hi all
>
> I am totally new to django. Have followed the intro tutorial until part 
> 2<https://docs.djangoproject.com/en/dev/intro/tutorial02/>, 
> but when I start the development server and tries to access the admin page 
> Python crashes immediately. The console prints "Bus error: 10".
> I have been googling for a while now, but can't figure out why this error 
> occurs.
>
> Is it a code error, or an environment issue?
>
> I use Python 2.6.2 and Django 1.4.0, and I have choosen sqlite3 as db.
>
> I hope someone can enlighten me in what direction the problem might be ;)
>
> Cheers,
> Harald
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/wbphSrYwBCoJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Bus Error: 10 (Intro Tutorial)

2012-04-20 Thread Harald Sigh Andertun
Hi Xavier

I now use Python 2.7 and reinstalled django-1.4 with pip this time. It 
solved the problem. :)

- Harald

Den fredag den 20. april 2012 13.31.19 UTC+2 skrev Xavier Ordoquy:
>
> Hi,
>
> I've never faced such issue with Django on OSX.
> Do you use or import non pure python apps ?
> What python version do you use ? Stock osx one ? homebrew ? homemade ?
>
> Regards,
> Xavier.
>
> Le 19 avr. 2012 à 18:16, Harald Sigh Andertun a écrit :
>
> I'll attach a screenshot. It works for some time, but eventually crashes.
>
> I'm on Mac OS X Lion.
>
>
>
> Den torsdag den 19. april 2012 17.50.16 UTC+2 skrev David Markey:
>>
>> Bus error is usually a very low level problem.
>>
>> Can you give a screen shot?
>>
>> If you are on linux, also post dmesg.
>>
>> On 19 April 2012 16:36, Harald Sigh Andertun 
>> wrote:
>>
>>> Hi all
>>>
>>> I am totally new to django. Have followed the intro tutorial until part 
>>> 2 <https://docs.djangoproject.com/en/dev/intro/tutorial02/>, but when I 
>>> start the development server and tries to access the admin page Python 
>>> crashes immediately. The console prints "Bus error: 10".
>>> I have been googling for a while now, but can't figure out why this 
>>> error occurs.
>>>
>>> Is it a code error, or an environment issue?
>>>
>>> I use Python 2.6.2 and Django 1.4.0, and I have choosen sqlite3 as db.
>>>
>>> I hope someone can enlighten me in what direction the problem might be ;)
>>>
>>> Cheers,
>>> Harald
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Django users" group.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msg/django-users/-/8EP1qv3APR4J.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> To unsubscribe from this group, send email to 
>>> django-users+unsubscr...@googlegroups.com.
>>> For more options, visit this group at 
>>> http://groups.google.com/group/django-users?hl=en.
>>>
>>
>>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/django-users/-/c4km0y-4gekJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/_9XuMoPFAh4J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.