Project

General

Profile

Actions

Bug #9103

closed

Can't load module. " Unable to load module: No module named fileinput"

Added by Peter Veiga almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
06/04/2021
Due date:
% Done:

0%

Estimated time:
Chirp Version:
daily
Model affected:
Developer function
Platform:
Windows
Debug Log:
I read the instructions above:

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

debug.log (31.5 KB) debug.log Peter Veiga, 06/04/2021 03:27 PM
debug.log-2.txt (27.3 KB) debug.log-2.txt Peter Veiga, 06/04/2021 03:33 PM
cp_decode.py (37.1 KB) cp_decode.py Peter Veiga, 06/04/2021 03:39 PM
Actions #1

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

Actions #2

Updated by Peter Veiga almost 3 years ago

Thanks for your reply. Please find attached the bug log.

Actions #3

Updated by Peter Veiga almost 3 years ago

I tride to up load it again under it's original file name again. Please see attached file bug log-2

Actions #4

Updated by Peter Veiga almost 3 years ago

I attached a copy of the file I was trying to upload.

Actions #5

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

Actions #6

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.

https://www.youtube.com/watch?v=QKpG_1buX5g&t=1s

Actions #7

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.

https://www.youtube.com/watch?v=QKpG_1buX5g&t=1s

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

Actions #8

Updated by Peter Veiga almost 3 years ago

Thank you so much!!!!!!!!!!!

Actions #9

Updated by Peter Veiga almost 3 years ago

Thank you so much!!!!!!!!!!!

Actions #10

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.

Actions #11

Updated by Bernhard Hailer almost 3 years ago

  • Status changed from Feedback to Closed

No more traffic on this ticket.

Actions

Also available in: Atom PDF