Categories
Raspberry Pi User Help

import Spacy on RPI in Pycharm and other IDE gives error

I successfully installed Spacy using pip install spacy and alternatively through Pycharms virtual env, but when I import spacy in my program it’s giving me the following error; home/pi/.virtualenvs/cv/bin/python /home/pi/PycharmProjects/testSpeech/main.py Traceback (most recent call last): File "/home/pi/PycharmProjects/testSpeech/main.py", line 2, in <module> import spacy File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/spacy/__init__.py", line 10, in <module> from thinc.neural.util import prefer_gpu, require_gpu File […]

Categories
Raspberry Pi User Help

import Spacy on RPI in Pycharm and other IDE gives error

I successfully installed Spacy using pip install spacy and alternatively through Pycharms virtual env, but when I import spacy in my program it’s giving me the following error; home/pi/.virtualenvs/cv/bin/python /home/pi/PycharmProjects/testSpeech/main.py Traceback (most recent call last): File "/home/pi/PycharmProjects/testSpeech/main.py", line 2, in <module> import spacy File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/spacy/__init__.py", line 10, in <module> from thinc.neural.util import prefer_gpu, require_gpu File […]

Categories
Mastering Development

How to add zip packages downloaded from github to anaconda

I have download a zip package https://github.com/aburgasser/splat from github and unzip it to my local files (I am not able to use conda install or pip install this package directly in anaconda prompt). I tried using anaconda prompt and used C:\Users\20130\Desktop\SPLAT\splat-master>python setup.py install Traceback (most recent call last): File "setup.py", line 15, in from splat.initialize […]

Categories
Cryptocurrency Ethereum Mastering Development

AttributeError: type object ‘Transaction’ has no attribute ‘exclude’

When I execute a python script to deploy smart contracts, it throws the following exceptions: Traceback (most recent call last): File "contrCompDeploy.py", line 7, in <module> from web3 import Web3, HTTPProvider File "/home/fabric/.local/lib/python3.6/site-packages/web3/__init__.py", line 7, in <module> from eth_account import Account # noqa: E402 File "/home/fabric/.local/lib/python3.6/site-packages/eth_account/__init__.py", line 1, in <module> from eth_account.account import Account # […]

Categories
Cryptocurrency Ethereum Mastering Development

Deploy to testnet with brownie

I’m looking to deploy some code to the kovan testnet with Brownie. However I keep getting an error accessing accounts. Here is the command I’m running: brownie run scripts/deploy_price_consumer_v3.py –network kovan Here is the error: Running ‘scripts/deploy_price_consumer_v3.py::main’… File "brownie/_cli/run.py", line 49, in main return_value = run(args["<filename>"], method_name=args["<function>"] or "main") File "brownie/project/scripts.py", line 66, in run […]

Categories
Cryptocurrency Ethereum Mastering Development

Deploy to testnet with brownie

I’m looking to deploy some code to the kovan testnet with Brownie. However I keep getting an error accessing accounts. Here is the command I’m running: brownie run scripts/deploy_price_consumer_v3.py –network kovan Here is the error: Running ‘scripts/deploy_price_consumer_v3.py::main’… File "brownie/_cli/run.py", line 49, in main return_value = run(args["<filename>"], method_name=args["<function>"] or "main") File "brownie/project/scripts.py", line 66, in run […]

Categories
Mastering Development

Mysql file is not linking to python

import sqlite3 def ConnectData(): con = sqlite3.connect("libbooks.db") cur = con.cursor() cur.execute(”’CREATE TABLE IF NOT EXISTS libbooks (id INTEGER PRIMARY KEY, MTy text, Ref text, Title text, Fna text, Sna text, Adr1 text, Adr2 text, Pcd text, MNo text, BkID text, BkT text, Atr text, DBo text, Ddu text, sPr text, Lrf text, Dod text, DonL […]

Categories
Cryptocurrency Ethereum Mastering Development

How to parse the node information in the nodes directory by leveldb?

I want to get all the node IP addresses of ETH, so I need to parse the geth/nodes directory, but I can’t find the specific data format and cannot parse it. I found a same problem, but there is no solution: Format of LevelDB files in nodes directory? Trouble pulling contents with python leveldb API […]

Categories
Mastering Development

cant run a django project

just starting with django, it is a bit too much for me reading this error log. if anyone has any opinions it would be much appreciated. thanks in advance. Traceback (most recent call last): File "c:\users\deanpc\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\deanpc\appdata\local\programs\python\python39\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\deanPC\AppData\Local\Programs\Python\Python39\Scripts\django-admin.exe\__main__.py", line […]

Categories
Artificial Intelligence (AI) Mastering Development

Layer dense expects 1 input(s), but it received 2 input tensors, how do I change that

So I am a beginner, just approaching tensorflow2 and keras, I was just playing around and trying to make some models when i stumbled across the following error: Traceback (most recent call last): File "/home/arch_poppin/dev/AI/reviews/rev.py", line 7, in <module> x = layers.Dense(8, activation=’relu’)([input1, input2]) File "/usr/lib/python3.8/site-packages/tensorflow/python/keras/engine/base_layer.py", line 930, in __call__ return self._functional_construction_call(inputs, args, kwargs, File […]