-
Notifications
You must be signed in to change notification settings - Fork 189
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
UnboundLocalError: cannot access local variable 'temp_dir' where it is not associated with a value #59
Comments
Hi @Yuvalmaster, is this repository private on both GitHub and GitLab? |
The gitlab project is indeed private, but the GitHub project I tried too is not private. I used one of my public repos |
Any more details on which GitHub project? I can take a look at the error. |
@Yuvalmaster What version are you running? Try running Here is the output of your repo from my machine. Heartbeat-Analysis-Tool---EM
◦ Analyzing beats, saving lives.◦ Developed with the software and tools below.📖 Table of Contents
📍 OverviewThe Heartbeat Analysis Tool is a Python project that aims to analyze heart rate data from log files. It provides functionalities for loading CSV files, saving raw data to a PostgreSQL database, and running analysis on the data for all devices. The tool extracts information such as device type, device ID, and date from the log files and performs further analysis based on the provided heart rate parameters. The value proposition of the project lies in its ability to efficiently process and analyze heart rate data, allowing researchers, healthcare professionals, and fitness enthusiasts to gain insights into cardiovascular health. 📦 Features
📂 Repository Structure└── Heartbeat-Analysis-Tool---EM/
├── .gitignore
├── README.md
├── config/
│ ├── analysis_config.yaml
│ └── db_config_template.yaml
├── dashboard data/
│ └── EM-HR Monitoring-rev0.3.json
├── data/
│ ├── DAVIDHAMELECH_1111_2023-07-02csv.csv
│ ├── HPhire_1111_2023-07-02csv.csv
│ ├── HPhire_1111_2023-07-03csv.csv
│ ├── HSet_1234_2023-07-01csv.csv
│ ├── HSet_1234_2023-07-02.csv
│ ├── HSet_1234_2023-07-03csv.csv
│ ├── Hi_IwillFail.csv
│ ├── Hset_2345_2023-07-02csv.csv
│ └── New Text Document.txt
├── requirements.txt
├── run.bat
└── src/
├── analysis.py
├── data_loader.py
├── database.py
├── log_parser.py
├── main.py
└── setup.py ⚙️ ModulesRoot
Config
Src
🚀 Getting StartedDependencies Please ensure you have the following dependencies installed on your system:
🔧 Installation
git clone https://github.com/Yuvalmaster/Heartbeat-Analysis-Tool---EM
cd Heartbeat-Analysis-Tool---EM
pip install -r requirements.txt 🤖 Running Heartbeat-Analysis-Tool---EMpython main.py 🧪 Testspytest 🛣 Roadmap
🤝 ContributingContributions are always welcome! Please follow these steps:
git checkout -b new-feature-branch
git commit -m 'Implemented new feature.'
git push origin new-feature-branch
📄 LicenseThis project is licensed under the 👏 Acknowledgments
|
I did upgrade but no luck. Still have the same error The above exception was the direct cause of the following exception: Traceback (most recent call last): Traceback (most recent call last): |
@Yuvalmaster Just made a small update.
Let me know if that changes anything. |
No luck yet |
Hi @Yuvalmaster, can you try once more with pip install readmeai==0.4.6 If this does not work, I'll boot up a windows machine when I get a chance and do some further debugging. Theres also a possibility that it could be a permissions issue on your machine. Let me know what happens and we'll go from there.
|
I'm here just to confirm that this issue still exists on my Windows machine, with the latest version installed. EDIT: shutil.rmtree(item) # at line 100 of file `readmeai/services/git.py` with something else that does the same: os.system('rmdir /S /Q "{}"'.format(item.absolute())) Note that it's only a temporary workaround and I hope the creator will fix it someday. |
Hello, Thanks to @minhcrafters the problem is fixed. |
Hi,
I'm trying to run the readme-ai on both a github and gitlab repos without any succsess.
I am using python 3.11.4 using conda as venv (tried also with other venvs).
I've installed using
pip install readmeai
this is the error I get:
The text was updated successfully, but these errors were encountered: