How to fix scrapy.utils.http deprecated warning - scrapyd

I am getting depreciation error while trying to scrapy deploy. Pretty new at this scraping.
deploy.py:23: ScrapyDeprecationWarning: Module scrapy.utils.http is deprecated, Please import from `w3lib.http nstead. from scrapy.utils.http import basic_auth_header
unknown target: local
Any help apreciated

feedback said "please import from w3lib.http.nstead", so i guess you need to modify the file "scrapyd-deploy"

Related

firebase/flutter - App Check debug provider in an emulator

I try to get a local debug token according to the instructions, but I don't see any in the console. I implemented this code as given. Is it maybe because the release and debug app-check don't work at the same time?
Guide: https://firebase.google.com/docs/app-check/android/debug-provider?hl=en#java_1, Point 3 doesn't work for me
MainActivity.java
import com.google.firebase.FirebaseApp;
import com.google.firebase.appcheck.FirebaseAppCheck;
import com.google.firebase.appcheck.playintegrity.PlayIntegrityAppCheckProviderFactory;
import com.google.firebase.appcheck.debug.DebugAppCheckProviderFactory;
FirebaseApp.initializeApp(/*context=*/ this);
FirebaseAppCheck firebaseAppCheck = FirebaseAppCheck.getInstance();
firebaseAppCheck.installAppCheckProviderFactory(PlayIntegrityAppCheckProviderFactory.getInstance());
firebaseAppCheck.installAppCheckProviderFactory(DebugAppCheckProviderFactory.getInstance());
build.gradle
implementation 'com.google.firebase:firebase-appcheck-debug:16.1.1'
is there maybe another way to get the local debug token so i can add it in the firebase console?

This rules does not apply to identifier [2] - Rundeck

Working on Rundeck enterprise, I had one ruleset which was working fine with the older version but as we moved into new rundeck version same ruleset is throwing this error:
This rules does not apply to identifier [2]
Ruleset I applied for is:
[connection-to-db] run-at-start
[create-instance] run-after:connection-to-db if:export.source_infra_info!=None if:export.instance_count!=0
[sleep] run-after:create-instance if:export.source_infra_info!=None if:export.instance_count!=0
[call-api] run-after:sleep if:export.source_infra_info!=None if:export.instance_count!=0
[decommission-instance] run-after:call-api if:export.source_infra_info!=None if:export.instance_count!=0 if:export.return_code!=200
Now sure where I went wrong, feels like with version update might be some keywords got changed etc.
Would anyone can help on this, please let me know, if any other information required here.
thanks in advance

Script fails at import Gtk

I've spent some time looking into this and I can't seem to find anyone else with this issue which leads me to believe that I may just be stupid...
I have a few python scripts that attempt to use Gtk to create windows and they fail with the error message "Unable to init server: Could not connect: Connection refused". I've tracked this down to Gtk because I get the same error with the following script:
import gi
gi.require_version("Gtk","3.0")
from gi.repository import Gtk
Any and all help would be very much appreciated.

Magento2 Code Migration Tool Issue with Custom Module Migration

Anyone faced this error?
I'm trying to migrate a custom module.
When I run this command, I get the error below. Please advise.
php bin/migrate.php migrateModuleStructure source destination
PHP Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\Serialize\SerializerInterface in /var/www/code-migration-develop/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:50
Thanks in advance.
Found from ShaneVBG at https://github.com/magento/code-migration/issues/103
Add to app/etc/di.xml in # ~ line 91
<preference for="Magento\Framework\Serialize\SerializerInterface" type="Magento\Framework\Serialize\Serializer\Json" />

Kamailio-Asterisk - route "FROMASTERISK" not found

I'm trying to implement Kamailio 4.1 with Asterisk 12.1.0 regarging this tutorial:
http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb
And when I try to compile kamaili.cfg, I still got this error:
Apr 19 16:59:31 debian /usr/local/sbin/kamailio[5751]: ERROR: <core> [route.c:1137]: fix_actions(): route "FROMASTERISK" not found at /usr/local/etc/kamailio/kamailio.cfg:780
I have loaded all modules like in tutorial.
I tried to find some solve this issue, but with no result.
Thank you for help!
That error mean in your kamailio.cfg file not found section with route "FROMASTERISK"
Also note, that your kamailio config file is /usr/local/etc/kamailio/kamailio.cfg
You have add section or remove route.