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
Linux Mastering Development Ubuntu

Ubuntu 19.10

First I’m super new to ubuntu like I’m using it for like 20 hours from yahoo_finance import Share yahoo = Share(‘YHOO’) but whenever I run the it The terminal shows: Traceback (most recent call last): File “/usr/lib/python3.7/urllib/request.py”, line 1317, in do_open encode_chunked=req.has_header(‘Transfer-encoding’)) File “/usr/lib/python3.7/http/client.py”, line 1252, in request self._send_request(method, url, body, headers, encode_chunked) File “/usr/lib/python3.7/http/client.py”, […]

Categories
Mastering Development

\_tfq_simulate_ops.so not found while import tensorflow_quantum

Trying import of initial libraries related to tensorflow_quantum: import tensorflow as tf import tensorflow_quantum as tfq import cirq import sympy import numpy as np Getting error in 2nd line: File “Path_to_anaconda_site_packages\tensorflow_core\python\framework\load_library.py”, line 61, in load_op_library lib_handle = py_tf.TF_LoadLibrary(library_filename) NotFoundError: Path_To_Tensorflow_Quantum\core\ops\_tfq_simulate_ops.so not found

Categories
Development

How can I get win32pdhutil to query a performance counter with a slash?

I’m trying to query Windows Performance Counters using win32pdhutil from the pywin32 package in Python, but I run into an error whenever the counter name has a slash. For example, this code works fine: import win32pdhutil query = win32pdhutil.GetPerformanceAttributes(“Memory”, “Available Bytes”) But this code fails: import win32pdhutil query = win32pdhutil.GetPerformanceAttributes(“Memory”, “Cache Faults/sec”) The error message […]

Categories
Development

Django, Materialize, Django-tables2: Expected table or queryset, not str

I have a form and one of the fields is a MultipleChoiceField. The form is rendered in a modal using Materialize. I had issues to render the choices in the form but found this answer I changed the field to: comp = forms.MultipleChoiceField(choices=COMP, widget=forms.Select(choices=COMP, attrs={‘class’: ‘browser-default’})) which solved the rendering issue. Once I submit the […]

Categories
Development

Installing cvxpy on windows with anaconda: failed nosetests misrebally

Please explain what I should do slowly. I am trying to install cvxpy on my machine. I have installed python, visual studio build tools and tried in command prompt but I got errors when I tried to install. So I ditched that idea and installed anaconda and I am now able to install and but […]

Categories
Bitcoin Cryptocurrency Development

Problem with Greenaddress 2of2 Recovery

I’m encountering an unforeseen problem with 2o2 Recovery procedure. I followed all the instruction at https://github.com/greenaddress/garecovery, I’ve correctly installed Ubuntu for Windows, I’ve correctly run through all the step until: $ garecovery-cli 2of2 –nlocktime-file /path/to/downloaded/nlocktimes.zip -o garecovery.csv I’ve passed the correct nlocktimes.zip, I’ve entered the rigth mnemonic, but the output I see is the follow: […]

Categories
Development

It keeps returning with errors when I try to do ‘.author’

Heres the beginning of the command @client.command() async def rps(ctx, *, message): ai_choices = [‘rock’, ‘paper’, ‘scissors’] ai_choice = random.choice(ai_choices) message.lower() Heres the logic statements if ai_choice == message: ctx.send(f'{message.author}, you played {message}, and Miska played {ai_choice}, so {message.author}it\’s a tie!’) elif ai_choice == ‘rock’ and message == ‘paper’: ctx.send(f'{message.author}, you played paper, Miska played […]

Categories
Development

accessing firebird from python cant send new commands after commit

I’m trying to work with a firebird’s SQL with python, but once I make the first “COMMIT” line, everything else requires a new transaction, but I can’t seem to find how do I start one… fbsql.ShowEverythingInTable(“Cakes”, con) #Works fbsql.DropFullTable(‘dummy’,con) #Works fbsql.DropFullTable(‘Cakes’,con) #Works fbsql.CommitTransaction(con) #Works fbsql.ShowEverythingInTable(‘Objects’,con) #YOU SHALL NOT PASS Traceback (most recent call last): File […]

Categories
Development

Install glumpy (or other non-conda packages) in conda environment

I have an Anaconda (newest version) environment with Python 3.7.5 installed, it is my only environment so far. Now I want to install glumpy, which is not listed in the anaconda cloud and channels, but it is cloneable via GitHub und installable via pip. I even have a pre-built wheel lying around, still with the […]