-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: better pacakge naming strategy #3
Comments
Hello, I am trying to use pyJoules to measure the energy consumption of my workloads. The very basic error I am getting when trying to run a simple function is that - the measureit is not present in the source code of pyjoules.energy_meter. is there any solution to this? The error is as follows: ``ImportError Traceback (most recent call last) ImportError: cannot import name 'measureit' from 'pyJoules.energy_meter' (C:\Users\PALLAVI\anaconda3\lib\site-packages\pyJoules\energy_meter.py)" |
Hello ! Sorry, the Readme file was not updated since the last release. I've just fix it. The If you need, you can find more example in the documentation : https://pyjoules.readthedocs.io/en/latest/usages/usage.html |
@altor Thanks for the quick reply. Now the problem is solved. But it has some new issue in energy_meter.py code and the error is coming as follows: ~\anaconda3\lib\site-packages\pyJoules\energy_meter.py in _get_domain_list(self) TypeError: reduce() of empty sequence with no initial value |
Could you post the piece of code that give you this issue ? |
from pyJoules.energy_meter import measure_energy @measure_energy def recursive_fib(n): recursive_fib(10) |
Hello, I have the same exact problem, running:
will give the following error:
|
Hello !
|
@altor It is a windows system and has no GPU card. |
@pallavimitra Ok, sorry but pyJoules don't have support for windows system. You have to run it on GNU/Linux for mac user we try to add support for macOS soon but for the moment you can use this tool : https://github.com/chakib-belgaid/IJoules |
Ok, I was running on Windows too. However, in Linux, there are annoying problems of permissions on the file energy_uj that I wasn't able to solve. I saw the last issue was opened with the same problem but I wasn't able to follow the solution. |
EDIT : Old Message don't follow theses advice this will make security vulnerability on your system Thanks for your feedback ! For the moment, you could change the permission of the following files to be readable by the user that use pyJoules :
In order to help us to find a better solution, could you give us the result of the following commands :
|
Hello ! If you want to talk about this issue please go to the related thread (#13) |
the class that will be mainly used (
measureit
,EnergyContext
,Sample
) must be located in thepyJoules
packageThe text was updated successfully, but these errors were encountered: