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

scrapy – error in scrapy settings that does not allow me to do anything with scrapy

I accidentally changed something in my scrapy settings (I was trying to debug a spider by creating a runner.py file), and I can’t do anything now with scrapy. This is the error I am getting after running any scrapy related command in the command prompt: (scrape_virtual_workspace) C:\Users\Sophocles PC>cd projects (scrape_virtual_workspace) C:\Users\Sophocles PC\projects>scrapy Traceback (most recent […]

Categories
Raspberry Pi User Help

OSError: [Errno 5] Remote I/O error

I was setting up a joystick using this tutorial. When I ran import RPi.GPIO as GPIO import smbus import time address = 0x48 bus = smbus.SMBus(1) cmd = 0x40 Z_Pin = 12 def analogRead(chn): value = bus.read_byte(address) return value def analogWrite(value): bus.write_byte_data(address,cmd,value) def setup(): GPIO.setmode(GPIO.BOARD) GPIO.setup(Z_Pin,GPIO.IN,GPIO.PUD_UP) def loop(): while True: val_Z = GPIO.input(Z_Pin) val_Y = […]

Categories
Raspberry Pi User Help

OSError: [Errno 5] Remote I/O error

I was setting up a joystick using this tutorial When I ran the program I get this as the output Program is starting … Traceback (most recent call last): File "main.py", line 37, in <module> loop() File "main.py", line 24, in loop val_Y = analogRead(0) File "main.py", line 10, in analogRead value = bus.read_byte(address) OSError: […]

Categories
Mastering Development System & Network

Missing my python’s _ctype-xxx.so

A week ago, i installed python3.7 and since then whenever i setup/run a program with python i get an error message for missing modules. First ctypes then _ctypes then ffi. It turns out my _ctypes.cpython-37-x86_64-linux-gnu.so is missing, so i decided to remove python3.7 and reinstall it. What would be the exact steps for that? The […]

Categories
Mastering Development System & Network

Missing my python’s _ctype-xxx.so

A week ago, i installed python3.7 and since then whenever i setup/run a program with python i get an error message for missing modules. First ctypes then _ctypes then ffi. It turns out my _ctypes.cpython-37-x86_64-linux-gnu.so is missing, so i decided to remove python3.7 and reinstall it. What would be the exact steps for that? The […]

Categories
Mastering Development

python for android crashes at start: modul ‘google_speech’ and ‘gtts’ are missing

I wrote a python3 app called chinese_speaker with kivy and google_speech. after compiling with buildozer, I copied it to my smartphone. Every time I tried to start, it always closed immediately. so I activated adb debugging and in the logfiles I found this lines: 09-22 13:29:50.971 13746 13789 I python : File "/home/[user_name]/Documents/Python/Buildozer/chinese_speaker/.buildozer/android/app/main.py", line 10, […]

Categories
Mastering Development

Encoding Issues when reading R Object

I am reading an R object with the readRDS. It should have two columns, a year and a character string. For most rows, the character string is OK, but some have a strange white blob and others seem to have a character vector with escaped special characters and some have special characters like â. I […]

Categories
Mastering Development

how to fix “import keras not working” error

I have used Keras remotely, such as on Colab and AWS. Today, I tried to install Keras on my laptop using pip3 install keras, and the message was that keras was already installed on the computer (I must have installed it before): WARNING: pip is being invoked by an old script wrapper. This will fail […]