HemantKArya / Melodfy

Melodfy✨: AI-Powered Piano Audio to MIDI Converter 🎶
MIT License
16 stars 1 forks source link

AttributeError: Cannot reassign members. #1

Open BigYellowTiger opened 6 months ago

BigYellowTiger commented 6 months ago

Hello, I want to run your main.py after installing all requierments, but I get the following error

Traceback (most recent call last): File "D:\all_Project\midiAI\Melodfy\main.py", line 17, in <module> import qtawesome as qta File "D:\Anaconda3\lib\site-packages\qtawesome\__init__.py", line 20, in <module> from qtpy import QtCore, QtWidgets, QtGui File "D:\Anaconda3\lib\site-packages\qtpy\QtCore.py", line 112, in <module> Qt.MidButton = Qt.MouseButton.MiddleButton = Qt.MiddleButton File "D:\Anaconda3\lib\enum.py", line 472, in __setattr__ raise AttributeError('Cannot reassign members.') AttributeError: Cannot reassign members.

can you give me some adivce? thanks

HemantKArya commented 6 months ago

All I can think right now is some version compatibility issue; I recommend you create a separate Virtual Environment using venvcommand. After activating virtual environment install using requirements.txt file using this command python -m pip install -r requirements.txt. And then try to execute main.py because I guess the libraries version inside default conda library may causing these errors.