Categories
Linux Mastering Development

Bluetooth keeps changing from A2dp to headset and loses connection on Debian Buster with JBL 4 Speaker

since over a year I am having trouble with the bluetooth connection to my JBL 4 speaker. It looses connection again and again. I created a script according to what I found on the internet to reconnect via keyboard short cut. Sometimes it is connected with it within a view seconds sometimes I had to […]

Categories
Development System & Network

Unable to renew lets encrypt using certbot

I’m running centos 6, I recently tried installing python 3, might have messed something up related to python if I do python2 /usr/local/bin/certbot-auto renew I get file “/usr/local/bin/certbot-auto”, line 20 if [ -z “$HOME” ]; then ^ SyntaxError: invalid syntax If I do /usr/local/bin/certbot-auto renew I get import ssl File “/usr/local/lib/python2.7/ssl.py”, line 146, in <module> […]

Categories
Artificial Intelligence (AI) Development

Has anyone seen this error.. if so how is it fixed?

from keras.layers import Conv2D, UpSampling2D, LeakyReLU, Concatenate, Lambda, Input, UpSampling2D from tensorflow.keras import Model from keras.applications.densenet import DenseNet169 ”’ Following is to get layers for skip connection and num_filters ”’ base_model = DenseNet169(include_top=False,input_shape=(224,224,3)) base_model_output_shape=base_model.layers[-1].output.shape decoder_filters = int(base_model_output_shape[-1]/2) def UpProject(array,filters,name,concat_with): up_i = UpSampling2D((2,2),interpolation=’bilinear’)(array) up_i=Concatenate(name=name+’_concat’)([up_i,base_model.get_layer(concat_with).output]) #skip connection up_i=Conv2D(filters=filters,kernel_size=3,strides=1,padding=’same’,name=name+’_convA’)(up_i) up_i=LeakyReLU(alpha=.2)(up_i) up_i=Conv2D(filters=filters,kernel_size=3,strides=1,padding=’same’,name=name+’_convB’)(up_i) up_i=LeakyReLU(alpha=.2)(up_i) return up_i def get_Model(): #encoder network […]

Categories
Development

tqdm._tqdm.TqdmKeyError: “Unknown argument(s): {‘unit_divisor’: 1024}”

I am trying to upload my library to Pypi via twine and I am getting some error that is related to tqdm. Can anyone please help. The command is twine upload dist/* twine version 1.13.0 python version 3.6 Error : TqdmKeyError(“Unknown argument(s): ” + str(kwargs))) tqdm._tqdm.TqdmKeyError: “Unknown argument(s): {‘unit_divisor’: 1024}” Full Traceback : Traceback (most […]

Categories
Development Linux Ubuntu

deja dup backup fails ascii coded can’t decode byte

I’m a newbie just getting started with elementary / ubuntu 18.04. I’ve installed Deja Dup 37.1 When I try to run my first backup using the default settings I’m getting: ================== Backup Failed Failed with an unknown error ========================================= Traceback (innermost last): File “/usr/bin/duplicity”, line 1555, in with_tempdir(main) File “/usr/bin/duplicity”, line 1541, in with_tempdir fn() […]

Categories
Development

Bert Embeddings Layer raises `TypeError: unsupported operand type(s) for +: ‘NoneType’ and ‘int’` with BiLSTM

I’ve problems integrating Bert Embeddings Layer in a BiLSTM model for word sense disambiguation task, windows 10 python 3.6.4 tenorflow 1.12 keras 2.2.4 No virtual environments were used def baseline_model(output_size, max_seq_len=64, visualize=False, plot=False): hidden_size = 128 # Output size: is the number of words and senses as per my dataset, which is 58_809 in_id = […]

Categories
Development

Buildozer isn’t working when I compile to .apk

when I compile to apk with buildozer. But the error occured # Check configuration tokens # Ensure build layout # Check configuration tokens # Preparing build # Check requirements for android # Run ‘dpkg –version’ # Cwd None Debian ‘dpkg’ package management program version 1.18.4 (amd64). This is free software; see the GNU General Public […]

Categories
Development

Loading TensorFlow1 checkpoint in TensorFlow2 – “Function Call Stack: keras_scratch_graph”

Attempting to load a name based checkpoint of .index, .meta, .data-00000-of-00001 files in tensorflow 2.0.0 as a tf.keras.models.Model gives tensorflow.python.framework.errors_impl.FailedPreconditionError Traceback (most recent call last): File “question2.py”, line 38, in <module> meta_model = load_ckpt() # restore in keras model File “question2.py”, line 32, in load_ckpt out_mdl = tf.keras.models.Model(inputs=_m.input, outputs=out_op[0]) File “/home/dionyssos/tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/training.py”, line 146, in __init__ […]

Categories
Development

Alembic execute SQL as part of migration

I want alembic to get the current stored procedure from DB compare it to the one in the code. If they are different to update the DB. I edited the env.py file to check for this, and generate an upgrade versions of the raw SQL. when running the following : writer = rewriter.Rewriter() @writer.rewrites(ops) def […]