Bug #9103
closedCan't load module. " Unable to load module: No module named fileinput"
0%
Description
Hello sorry if I missed a post about this subject but I did really look.
Windows 10 64 bit
Chirp build CHIRP daily-20210520
I have developer function checked but when I try to load "cp-decode.py" under file > load module I get the error " Unable to load module: No module named fileinput".
I tried to view the error log in terminal session but I also received an error, see below
C:\Users\pveig> %APPDATA%\CHIRP
'C:\Users\pveig\AppData\Roaming\CHIRP' is not recognized as an internal or external command,
operable program or batch file.
Can someone please give me a step by step instructions with commands on how to load my module
Thanks!!!!!!!!!!!
Files
Updated by Jim Unroe almost 3 years ago
- Status changed from New to Feedback
Peter Veiga wrote:
I have developer function checked but when I try to load "cp-decode.py" under file > load module I get the error " Unable to load module: No module named fileinput".
I would imagine that you have an error in your "cp-decode.py" module. You might include that with this issue.
Peter Veiga wrote:
I tried to view the error log in terminal session but I also received an error, see below
C:\Users\pveig> %APPDATA%\CHIRP
'C:\Users\pveig\AppData\Roaming\CHIRP' is not recognized as an internal or external command,
operable program or batch file.
"CHIRP" as shown above is a folder, not a file. You can't "run" it. You would have to "CD" (change directory) into it
C:\Users\pveig> CD \Users\pveig\AppData\Roaming\CHIRP
and then load the "debug.log" file with an text editor such as Notepad
C:\Users\pveig\AppData\Roaming\CHIRP>notepad debug.log
or just do it from when you are with a command like this.
C:\Users\pveig>notepad C:\Users\pveig\AppData\Roaming\CHIRP\debug.log
Peter Veiga wrote:
Can someone please give me a step by step instructions with commands on how to load my module
You are already know the steps. You just have other issues. What, I don't know without having more info.
Jim KC9HI
Updated by Peter Veiga almost 3 years ago
Thanks for your reply. Please find attached the bug log.
Updated by Peter Veiga almost 3 years ago
- File debug.log-2.txt debug.log-2.txt added
I tride to up load it again under it's original file name again. Please see attached file bug log-2
Updated by Peter Veiga almost 3 years ago
- File cp_decode.py cp_decode.py added
I attached a copy of the file I was trying to upload.
Updated by Jim Unroe almost 3 years ago
In line 6 your "module" is attempting to load another module called "fileinput". It is apparently missing or not in the current folder?
Also I have never seen the Developer Function Load Module used in this way. I have always seen it used to load a driver module that was written to clone a radio.
Jim KC9HI
Updated by Peter Veiga almost 3 years ago
I changed the name to fileinput to see if it would work in the first debug log.
I tried to upload the Original file cp_decode.py in the second attached bug report.
This file may have been modified since it came out but it did work at one time.
This file was used in a YouTube video. Please see link below.
Updated by Jim Unroe almost 3 years ago
Peter Veiga wrote:
I changed the name to fileinput to see if it would work in the first debug log.
I tried to upload the Original file cp_decode.py in the second attached bug report.
This file may have been modified since it came out but it did work at one time.
This file was used in a YouTube video. Please see link below.
As I expected, the file you are trying to use is not a CHIRP "module". According to the video you should be using a file called Waris.py "(link)":https://wiki.w9cr.net/index.php/File:Waris.py. This loads as a module into CHIRP without any errors. Not having a radio or saved CHIRP Radio Images (*.img) file I can't test it any further.
The cp-decode.py "(link)":https://github.com/W9CR/CPSsrec file is a Python program for converting binary codeplugs and has nothing to do with CHIRP. I would expect that you just need a PC with Python to run it.
Jim KC9HI
Updated by Bernhard Hailer almost 3 years ago
- Model affected changed from (All models) to Developer function
Peter Veiga wrote:
Thank you so much!!!!!!!!!!!
Can this ticket be closed? Thank you.
Updated by Bernhard Hailer almost 3 years ago
- Status changed from Feedback to Closed
No more traffic on this ticket.