Error while uploading with django-audiofield












0















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...










share|improve this question























  • 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
















0















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...










share|improve this question























  • 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














0












0








0








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...










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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



















  • 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












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
});


}
});














draft saved

draft discarded


















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
















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Contact image not getting when fetch all contact list from iPhone by CNContact

count number of partitions of a set with n elements into k subsets

A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks