I have a MindsDB model named hrd and I intended to delete the model by running the below command as per the documentation.
db.models.deleteOne({name: "hrd"})
While running the command and I got hit with the below error.
MongoServerError 'unsupported operand type(s) for >>: 'NoneType' and 'int'
How can I delete specific models from a MongoDB database integration in MindsDB?
I have this same issue. There's an open issue on their Github page. Right now deleting the model in MongoDB Compass works.
This open issue is being resolved by the MindsDB engineering team, and will be fixed in the next release (24-48hrs).
Related
I've recently migrated a MySQL database from local to Google Cloud Platform in preparation for deployment. When I first did this, I encountered:
MySQLdb._exceptions.OperationalError: (1055, "Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'testing.Event.EventID' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by")
Annoying, but no problem: a quick search revealed it could be turned off in the tags section of the GCP console, and that seemed to be OK as I wasn't too worried about the risks of turning it off. This worked, or so I thought. The same issue continues to appear days after setting the "Traditional" tag on my GCP SQL instance.
Even when I run the query:
SELECT ##sql_mode;
The result I get is:
STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
Which does not contain the only_full_group_by setting, and nonetheless I receive the error: this is incompatible with sql_mode=only_full_group_by
Is there some reason that this error would continue to appear despite not being in the setting that the error code says causes the error?
I'm not able to access data of TraCI package which should apparently have instances of all Domain classes.I tried creating those classes manually but it caused some connection problems.
I was running the simulation when an error occurred
'NoneType' object has no attribute '_sendReadOneStringCmd'
for the code
result = self._connection._sendReadOneStringCmd
On investigating further i found that self._connection is being set to None though initials it was set to a Connection type object.
I think this is because I initialized TrafficLaneDomain() LaneAreaDomain() and similar other classes in my code.
The Documentation attached shows the instances present ,but i'm unable to acces it.
Is this the error or anything else might be wrong?
TraCI DOC Home
I'm not able anymore to change my database on arangodb.
If I try to create a collection I get the error:
Collection error: cannot create collection: invalid database directory
If I try to delete a collection I get the error:
Couldn't delete collection.
Besides that some of the collections are now corrupted.
I've been working with this db for 2 months and I'm only getting these errors now.
Thanks.
If anyone gets the same error anytime in life, it was just a temporary error due to server overload.
I just joined a project using Django, and am attempting to initialize my own development server. When I attempt to do so, the migration fails for one of my apps. A model for this app has a sorl.thumbnail.ImageField, to add a logo. When the migration is attempted, I get the following error message:
FATAL ERROR - The following SQL query failed: ALTER TABLE "accounts_account" ADD CONSTRAINT "logo_id_refs_file_ptr_id_7c3d1997" FOREIGN KEY ("logo_id") REFERENCES "filer_image" ("file_ptr_id") DEFERRABLE INITIALLY DEFERRED;
The error was: relation "filer_image" does not exist
I'm not sure what the problem could be, as apparently there was no problem in creating the production database or subsequent migrations.
I believe I have correctly installed sorl-thumbnail, and all of its dependencies.
Your help would be much apperciated.
I'm pulling the answer provided by Johndt6 from a comment to this answer for future search-ability.
The solution is to add filer to the INSTALLED_APPS tuple.
I have been working on an application using django and mysql, am trying now to work on the tutorial from this here
http://docs.djangoproject.com/en/1.2/ref/contrib/gis/tutorial/
but it failed the moment I ran syncdb with the following error
AttributeError: 'DatabaseOperations' object has no attribute 'geo_db_type'
When I read around, it says that this can be solved if changed the backend to use postGIS. Is there a way to continue using mysql as my backend and yet be able to use geodjango? if not, is it possible to use both in the same project?
Regards,
set django.contrib.gis.db.backends.mysql in your settings.DATABASE engine db config.
Does your MySQL have spatial data types installed? What do you get if you do:
CREATE TABLE geom (g GEOMETRY);
If that doesn't recognise the GEOMETRY type, then you need to upgrade/recompile/reconfigure your MySQL.