Awais,

Could you please try the following steps:

1. Re-create your Python environment and activate it.
2. Install the required dependencies using:
   
   $ pip3 install -r ./bitbake/toaster-requirements.txt
   
3. Run the migration command.

It seems the issue is still related to the MySQLdb connection or database 
structure.

If this doesn’t work, try installing `mysql-python` in the virtual environment: 
$ pip install mysql-python


Let me know if that resolves the issue. Otherwise, I’ll attempt to reproduce 
the error in a different Poky environment.

Thanks,  
Alassane

This version is clearer and more concise. Does it meet your expectations?----- 
Original Message -----
From: "Awais Belal" <[email protected]>
To: "toaster" <[email protected]>
Sent: Tuesday, October 22, 2024 5:26:16 PM
Subject: Re: [Toaster] Toaster compatibility issues

The workflow log provided in the last email was from a Ubuntu 22.04 machine. If 
I try the same on a Ubuntu 18.04 machine it still fails with a similar (not the 
same) error 


File 
"/var/www/toaster/.local/lib/python3.6/site-packages/MySQLdb/connections.py", 
line 254, in query 
_mysql.connection.query(self, query) 
django.db.utils.OperationalError: (1833, "Cannot change column 
'package_ptr_id': used in a foreign key constraint 
'orm_customimagepacka_customimagepackage_i_b48c5573_fk_orm_custo' of table 
'toaster.orm_customimagepackage_recipe_appends'") 
and this is for the same 



Applying orm.0020_models_bigautofield...Traceback (most recent call last): 
... 



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#6171): https://lists.yoctoproject.org/g/toaster/message/6171
Mute This Topic: https://lists.yoctoproject.org/mt/109134636/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/toaster/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to