Error while uploading with django-audiofield
Hey i am trying to use django-field but came across this error:
Traceback (most recent call last):
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocorehandlersexception.py", line 35, in inner
response = get_response(request)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocorehandlersbase.py", line 128, in _get_response
response = self.process_exception_by_middleware(e, request)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocorehandlersbase.py", line 126, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocontribadminoptions.py", line 575, in wrapper
return self.admin_site.admin_view(view)(*args, **kwargs)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangoutilsdecorators.py", line 142, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangoviewsdecoratorscache.py", line 44, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocontribadminsites.py", line 223, in inner
return view(request, *args, **kwargs)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocontribadminoptions.py", line 1557, in change_view
return self.changeform_view(request, object_id, form_url, extra_context)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangoutilsdecorators.py", line 62, in _wrapper
return bound_func(*args, **kwargs)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangoutilsdecorators.py", line 142, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangoutilsdecorators.py", line 58, in bound_func
return func.__get__(self, type(self))(*args2, **kwargs2)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocontribadminoptions.py", line 1451, in changeform_view
return self._changeform_view(request, object_id, form_url, extra_context)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocontribadminoptions.py", line 1491, in _changeform_view
self.save_model(request, new_object, form, not add)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocontribadminoptions.py", line 1027, in save_model
obj.save()
File "C:UsersSebastianEnvsbloglibsite-packagesdjangodbmodelsbase.py", line 729, in save
force_update=force_update, update_fields=update_fields)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangodbmodelsbase.py", line 769, in save_base
update_fields=update_fields, raw=raw, using=using,
File "C:UsersSebastianEnvsbloglibsite-packagesdjangodispatchdispatcher.py", line 178, in send
for receiver in self._live_receivers(sender)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangodispatchdispatcher.py", line 178, in <listcomp>
for receiver in self._live_receivers(sender)
File "C:UsersSebastianEnvsbloglibsite-packagesaudiofieldfields.py", line 223, in _rename_audio
self._convert_audio(dst_fullpath, instance, ext[1:4])
File "C:UsersSebastianEnvsbloglibsite-packagesaudiofieldfields.py", line 140, in _convert_audio
response = subprocess.Popen(command.split(' '), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "C:Python36Libsubprocess.py", line 707, in __init__
restore_signals, start_new_session)
File "C:Python36Libsubprocess.py", line 992, in _execute_child
startupinfo)
[WinError 2] FileNotFoundError
The audiofile is actually saved in media
directory in the root of the project as specified in settings.py
Don't know where to look for. Have not been able to find a similar topic and the way to solve this...
django
add a comment |
Hey i am trying to use django-field but came across this error:
Traceback (most recent call last):
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocorehandlersexception.py", line 35, in inner
response = get_response(request)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocorehandlersbase.py", line 128, in _get_response
response = self.process_exception_by_middleware(e, request)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocorehandlersbase.py", line 126, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocontribadminoptions.py", line 575, in wrapper
return self.admin_site.admin_view(view)(*args, **kwargs)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangoutilsdecorators.py", line 142, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangoviewsdecoratorscache.py", line 44, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocontribadminsites.py", line 223, in inner
return view(request, *args, **kwargs)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocontribadminoptions.py", line 1557, in change_view
return self.changeform_view(request, object_id, form_url, extra_context)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangoutilsdecorators.py", line 62, in _wrapper
return bound_func(*args, **kwargs)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangoutilsdecorators.py", line 142, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangoutilsdecorators.py", line 58, in bound_func
return func.__get__(self, type(self))(*args2, **kwargs2)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocontribadminoptions.py", line 1451, in changeform_view
return self._changeform_view(request, object_id, form_url, extra_context)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocontribadminoptions.py", line 1491, in _changeform_view
self.save_model(request, new_object, form, not add)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocontribadminoptions.py", line 1027, in save_model
obj.save()
File "C:UsersSebastianEnvsbloglibsite-packagesdjangodbmodelsbase.py", line 729, in save
force_update=force_update, update_fields=update_fields)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangodbmodelsbase.py", line 769, in save_base
update_fields=update_fields, raw=raw, using=using,
File "C:UsersSebastianEnvsbloglibsite-packagesdjangodispatchdispatcher.py", line 178, in send
for receiver in self._live_receivers(sender)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangodispatchdispatcher.py", line 178, in <listcomp>
for receiver in self._live_receivers(sender)
File "C:UsersSebastianEnvsbloglibsite-packagesaudiofieldfields.py", line 223, in _rename_audio
self._convert_audio(dst_fullpath, instance, ext[1:4])
File "C:UsersSebastianEnvsbloglibsite-packagesaudiofieldfields.py", line 140, in _convert_audio
response = subprocess.Popen(command.split(' '), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "C:Python36Libsubprocess.py", line 707, in __init__
restore_signals, start_new_session)
File "C:Python36Libsubprocess.py", line 992, in _execute_child
startupinfo)
[WinError 2] FileNotFoundError
The audiofile is actually saved in media
directory in the root of the project as specified in settings.py
Don't know where to look for. Have not been able to find a similar topic and the way to solve this...
django
As per your error it seems that your file path is not accurate. It is throwing file not found error. If possible then share your views.py file code here.
– Mandeep Thakur
Nov 27 '18 at 15:33
i am changing it in the django.admin. It's not the views.py problem
– seba6m6
Nov 27 '18 at 15:41
it shows me an error after i upload the file(succesfully saved in media directory in the root of the project) but the path to the audio_file is not saved
– seba6m6
Nov 27 '18 at 15:43
add a comment |
Hey i am trying to use django-field but came across this error:
Traceback (most recent call last):
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocorehandlersexception.py", line 35, in inner
response = get_response(request)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocorehandlersbase.py", line 128, in _get_response
response = self.process_exception_by_middleware(e, request)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocorehandlersbase.py", line 126, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocontribadminoptions.py", line 575, in wrapper
return self.admin_site.admin_view(view)(*args, **kwargs)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangoutilsdecorators.py", line 142, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangoviewsdecoratorscache.py", line 44, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocontribadminsites.py", line 223, in inner
return view(request, *args, **kwargs)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocontribadminoptions.py", line 1557, in change_view
return self.changeform_view(request, object_id, form_url, extra_context)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangoutilsdecorators.py", line 62, in _wrapper
return bound_func(*args, **kwargs)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangoutilsdecorators.py", line 142, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangoutilsdecorators.py", line 58, in bound_func
return func.__get__(self, type(self))(*args2, **kwargs2)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocontribadminoptions.py", line 1451, in changeform_view
return self._changeform_view(request, object_id, form_url, extra_context)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocontribadminoptions.py", line 1491, in _changeform_view
self.save_model(request, new_object, form, not add)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocontribadminoptions.py", line 1027, in save_model
obj.save()
File "C:UsersSebastianEnvsbloglibsite-packagesdjangodbmodelsbase.py", line 729, in save
force_update=force_update, update_fields=update_fields)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangodbmodelsbase.py", line 769, in save_base
update_fields=update_fields, raw=raw, using=using,
File "C:UsersSebastianEnvsbloglibsite-packagesdjangodispatchdispatcher.py", line 178, in send
for receiver in self._live_receivers(sender)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangodispatchdispatcher.py", line 178, in <listcomp>
for receiver in self._live_receivers(sender)
File "C:UsersSebastianEnvsbloglibsite-packagesaudiofieldfields.py", line 223, in _rename_audio
self._convert_audio(dst_fullpath, instance, ext[1:4])
File "C:UsersSebastianEnvsbloglibsite-packagesaudiofieldfields.py", line 140, in _convert_audio
response = subprocess.Popen(command.split(' '), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "C:Python36Libsubprocess.py", line 707, in __init__
restore_signals, start_new_session)
File "C:Python36Libsubprocess.py", line 992, in _execute_child
startupinfo)
[WinError 2] FileNotFoundError
The audiofile is actually saved in media
directory in the root of the project as specified in settings.py
Don't know where to look for. Have not been able to find a similar topic and the way to solve this...
django
Hey i am trying to use django-field but came across this error:
Traceback (most recent call last):
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocorehandlersexception.py", line 35, in inner
response = get_response(request)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocorehandlersbase.py", line 128, in _get_response
response = self.process_exception_by_middleware(e, request)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocorehandlersbase.py", line 126, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocontribadminoptions.py", line 575, in wrapper
return self.admin_site.admin_view(view)(*args, **kwargs)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangoutilsdecorators.py", line 142, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangoviewsdecoratorscache.py", line 44, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocontribadminsites.py", line 223, in inner
return view(request, *args, **kwargs)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocontribadminoptions.py", line 1557, in change_view
return self.changeform_view(request, object_id, form_url, extra_context)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangoutilsdecorators.py", line 62, in _wrapper
return bound_func(*args, **kwargs)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangoutilsdecorators.py", line 142, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangoutilsdecorators.py", line 58, in bound_func
return func.__get__(self, type(self))(*args2, **kwargs2)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocontribadminoptions.py", line 1451, in changeform_view
return self._changeform_view(request, object_id, form_url, extra_context)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocontribadminoptions.py", line 1491, in _changeform_view
self.save_model(request, new_object, form, not add)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangocontribadminoptions.py", line 1027, in save_model
obj.save()
File "C:UsersSebastianEnvsbloglibsite-packagesdjangodbmodelsbase.py", line 729, in save
force_update=force_update, update_fields=update_fields)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangodbmodelsbase.py", line 769, in save_base
update_fields=update_fields, raw=raw, using=using,
File "C:UsersSebastianEnvsbloglibsite-packagesdjangodispatchdispatcher.py", line 178, in send
for receiver in self._live_receivers(sender)
File "C:UsersSebastianEnvsbloglibsite-packagesdjangodispatchdispatcher.py", line 178, in <listcomp>
for receiver in self._live_receivers(sender)
File "C:UsersSebastianEnvsbloglibsite-packagesaudiofieldfields.py", line 223, in _rename_audio
self._convert_audio(dst_fullpath, instance, ext[1:4])
File "C:UsersSebastianEnvsbloglibsite-packagesaudiofieldfields.py", line 140, in _convert_audio
response = subprocess.Popen(command.split(' '), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "C:Python36Libsubprocess.py", line 707, in __init__
restore_signals, start_new_session)
File "C:Python36Libsubprocess.py", line 992, in _execute_child
startupinfo)
[WinError 2] FileNotFoundError
The audiofile is actually saved in media
directory in the root of the project as specified in settings.py
Don't know where to look for. Have not been able to find a similar topic and the way to solve this...
django
django
asked Nov 27 '18 at 15:31
seba6m6seba6m6
146
146
As per your error it seems that your file path is not accurate. It is throwing file not found error. If possible then share your views.py file code here.
– Mandeep Thakur
Nov 27 '18 at 15:33
i am changing it in the django.admin. It's not the views.py problem
– seba6m6
Nov 27 '18 at 15:41
it shows me an error after i upload the file(succesfully saved in media directory in the root of the project) but the path to the audio_file is not saved
– seba6m6
Nov 27 '18 at 15:43
add a comment |
As per your error it seems that your file path is not accurate. It is throwing file not found error. If possible then share your views.py file code here.
– Mandeep Thakur
Nov 27 '18 at 15:33
i am changing it in the django.admin. It's not the views.py problem
– seba6m6
Nov 27 '18 at 15:41
it shows me an error after i upload the file(succesfully saved in media directory in the root of the project) but the path to the audio_file is not saved
– seba6m6
Nov 27 '18 at 15:43
As per your error it seems that your file path is not accurate. It is throwing file not found error. If possible then share your views.py file code here.
– Mandeep Thakur
Nov 27 '18 at 15:33
As per your error it seems that your file path is not accurate. It is throwing file not found error. If possible then share your views.py file code here.
– Mandeep Thakur
Nov 27 '18 at 15:33
i am changing it in the django.admin. It's not the views.py problem
– seba6m6
Nov 27 '18 at 15:41
i am changing it in the django.admin. It's not the views.py problem
– seba6m6
Nov 27 '18 at 15:41
it shows me an error after i upload the file(succesfully saved in media directory in the root of the project) but the path to the audio_file is not saved
– seba6m6
Nov 27 '18 at 15:43
it shows me an error after i upload the file(succesfully saved in media directory in the root of the project) but the path to the audio_file is not saved
– seba6m6
Nov 27 '18 at 15:43
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53502983%2ferror-while-uploading-with-django-audiofield%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53502983%2ferror-while-uploading-with-django-audiofield%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
As per your error it seems that your file path is not accurate. It is throwing file not found error. If possible then share your views.py file code here.
– Mandeep Thakur
Nov 27 '18 at 15:33
i am changing it in the django.admin. It's not the views.py problem
– seba6m6
Nov 27 '18 at 15:41
it shows me an error after i upload the file(succesfully saved in media directory in the root of the project) but the path to the audio_file is not saved
– seba6m6
Nov 27 '18 at 15:43