-
Notifications
You must be signed in to change notification settings - Fork 7
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
There is an error in operation. I would like to ask you for help. #241
Comments
Hello @AceWang377 👋, Thank you for your message! Sure, I can help you with that. However, I'll need some more information to provide a detailed answer:
If you could provide these details, I'd be able to assist you better. |
Thank you very much for replying to my message. I'm just learning this stuff so I'm sorry I have some very basic questions for you. My computer is the MacBook M1 version, and yesterday I entered the variable environment TRACARBON_CO2SIGNAL_API_KEY=", then pip installed some necessary packages, and downloaded the software Developer Portal by Blobr. Then run all the code in your code package. py file is also not an error. But when I finally ran tracarbon run in the terminal, an error occurred: File "/Users/wangzixuandemacbook/.conda/envs/pythonProject/bin/tracarbon", line 8, in File "/Users/wangzixuandemacbook/.conda/envs/pythonProject/lib/python3.10/site-packages/tracarbon/cli/init.py", line 146, in main File "/Users/wangzixuandemacbook/.conda/envs/pythonProject/lib/python3.10/site-packages/tracarbon/cli/init.py", line 138, in run File "/Users/wangzixuandemacbook/.conda/envs/pythonProject/lib/python3.10/site-packages/tracarbon/cli/init.py", line 121, in run_metrics File "/Users/wangzixuandemacbook/.conda/envs/pythonProject/lib/python3.10/site-packages/tracarbon/builder.py", line 48, in enter File "/Users/wangzixuandemacbook/.conda/envs/pythonProject/lib/python3.10/site-packages/tracarbon/builder.py", line 58, in start File "/Users/wangzixuandemacbook/.conda/envs/pythonProject/lib/python3.10/site-packages/tracarbon/exporters/exporter.py", line 136, in start File "/Users/wangzixuandemacbook/.conda/envs/pythonProject/lib/python3.10/site-packages/tracarbon/exporters/exporter.py", line 129, in _run File "/Users/wangzixuandemacbook/.conda/envs/pythonProject/lib/python3.10/asyncio/runners.py", line 44, in run File "/Users/wangzixuandemacbook/.conda/envs/pythonProject/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete File "/Users/wangzixuandemacbook/.conda/envs/pythonProject/lib/python3.10/site-packages/tracarbon/exporters/exporter.py", line 154, in _launch_all File "/Users/wangzixuandemacbook/.conda/envs/pythonProject/lib/python3.10/site-packages/tracarbon/exporters/stdout.py", line 17, in launch File "/Users/wangzixuandemacbook/.conda/envs/pythonProject/lib/python3.10/site-packages/tracarbon/general_metrics.py", line 30, in generate File "/Users/wangzixuandemacbook/.conda/envs/pythonProject/lib/python3.10/site-packages/tracarbon/hardwares/sensors.py", line 95, in get_energy_usage ValueError: could not convert string to float: '' 1.Tracarbon version is 0.7.1 Thank you again for taking the time to answer my question, and I look forward to hearing from you. |
Thank you @AceWang377! If the output is too big: I will take a look on why it fails on your Mac. |
Hello, thank you for providing such an excellent project and code. I don’t understand something and would like to ask you for advice. After configuring the api, I ran the command tracarbon run in the terminal but an error was displayed. I would like to ask you for advice on which one should be run. Does the program or what other parts of the program need to be changed before it can run?
error:
ValueError: could not convert string to float: ''
The text was updated successfully, but these errors were encountered: