Skip to content
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

AttributeError: Cannot reassign members. #1

Open
BigYellowTiger opened this issue Mar 9, 2024 · 1 comment
Open

AttributeError: Cannot reassign members. #1

BigYellowTiger opened this issue Mar 9, 2024 · 1 comment

Comments

@BigYellowTiger
Copy link

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
Copy link
Owner

All I can think right now is some version compatibility issue; I recommend you create a separate Virtual Environment using venv command. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants