Getting error in creating new django program - python

this is the error i am getting. i have even dine reinstalling python but it's showing me this only.
i am actually trying to create new django program and this happend out of the blue
Fatal error in launcher: Unable to create process using '"C:\Users\Aadil\AppData\Local\Programs\Python\Python39\python.exe" "C:\Users\Aadil\AppData\Local\Programs\Py thon\Python39\Scripts\django-admin.exe" ': The system cannot find the file specified.

Related

Convert .py file into .exe file by pyinstaller

I am trying to convert the .py file into .exe file by pipinstaller. However, I get such error:
Fatal error in launcher: Unable to create process using '"c:\users\s266479\appdata\local\programs\python\python36-32\python.exe" "C:\Users\S266479\Desktop\pyinstaller.exe" --onefile'
May I know why I have such error? Since the whole python coding and test process are all good.
Thank you so much for your help

getting Fatal error in launcher: Unable to create process using '"c:\python37\python.exe" "C:\Python37\Scripts\pyrcc5.exe"

So i'm a beginner at machine learning and i want to try out this project i found it youtube (link here) but the problem is when i get onto the step where i do pyrcc5 -o resources.py resources.qrc in the command prompt it gives the error:
Fatal error in launcher:
Unable to create process using '"c:\python37\python.exe" "C:\Python37\Scripts\pyrcc5.exe" -o resources.py resources.qrc'
which i don't understand why because i did everything the guy did in the video
Check your "System Environment Variables". There, check out Python & Python scripts path. Make sure those match your Python's path (that you are now in).

Pygame Mixer "Fatal Python error: (pygame parachute) Segmentation Fault" Error [duplicate]

I have written a small program in WindowsXP-python-pygame. It runs fine when I run it in the dos.
Then, I tried to create a windows executable using py2exe. .exe was created without any issue. Initially on running the executable, I got a NotImplemented error which went away after I copied some dll files from pygame folder to the dist folder.
Now I am getting a new error. It reads:
"Fatal Python error: (pygame parachute) Segmentation Fault
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information."
I have already looked at the following pages:
[1] http://pygame.org/wiki/Pygame2exe
[2] http://thadeusb.com/weblog/2009/4/15/pygame_font_and_py2exe
[3] http://www.google.com
These do not seem to be of help. I mean I am getting the error in spite of using all the instructions there. Any idea?
I got it working. Edited the line extra_data in the following place:
pygame.org/wiki/Pygame2exe
to:
self.extra_datas = ["freesansbold.ttf",
"SDL.dll",
"SDL_ttf.dll",
"libfreetype-6.dll",
"zlib1.dll"]
This works!

Tensorflow Simple Audio Recognition Error on Freeze.py

I've been following the tutorials on how to make a Simple Audio Recognition.
First I encountered an error when I entered
python tensorflow/examples/speech_commands/freeze.py
saying
python: can't open file 'tensorflow/examples/speech_commands/freeze.py': [Errno 2] No such file or directory
So I just went to the directory of tensorflow then drag the file in cmd... but then I encountered another error saying:
"tensorflow.python.framework.errors_impl.UnknownError: FindFirstFile failed for: ./config/systemprofile/AppData/Local/Microsoft/Windows/INetCache/Content.IE5 : Access is denied.
; Input/output error"
I'm running it as administrator as you can see here. How can I fix this?
Its working, all i had to do was to run the command line in the TensorFlow source like this

Not writing files while running python script from XCode

I'm trying to execute a python script from a cocoa app I created using XCode. The issue is that, the files are not getting written to the desired location. When I run the script through the terminal, its working fine. I tried running it as root as well. Still not working
Here's the error that's coming up:
convert: unable to open image ` /Users/anil/Desktop/mp_checkmarkgreen_md_d_lt.png': No such file or directory # error/blob.c/OpenBlob/2709.
convert: WriteBlob Failed ` /Users/anil/Desktop/mp_checkmarkgreen_md_d_lt.png' # error/png.c/MagickPNGErrorHandler/1805.
Is there anything else I should be doing while running the script?
The error is 'No such file or directory', is that an extra leading space I see before the first / ?
:-)

Categories