[Tutor] ImportError: attempted relative import with no known parent package
adityakarthik9 at gmail.com
adityakarthik9 at gmail.com
Tue Jul 13 00:26:39 EDT 2021
Hi.
I am trying to execute a dump file using a .py file.
I am using ubuntu for my projects.
The command I give in the ubuntu terminal is :
python3 main.py file.dump
When I type this command, I get an error stating that:
File "main.py", line 3, in
from .Histogram import Histogram
ImportError: attempted relative import with no known parent package
I am trying to plot histogram for my dump file. So the output of this
command should give me the frequency with which an assembly instruction is
repeated in the dump file.
I am using the program from the following link to get the results.
https://github.com/riscv-newop/riscv-newop/tree/master/rvnewop
From my understanding, the error is occurring due to some directory
mis-match but I made sure that all the files are in the same directory.
I am not sure where I am going wrong.
I request your help.
Kindly revert back at your nearest convenience.
Thank You,
Yours Sincerely,
Aditya Karthik
Sent from [1]Mail for Windows 10
References
Visible links
1. https://go.microsoft.com/fwlink/?LinkId=550986
More information about the Tutor
mailing list