rpi_wordclock icon indicating copy to clipboard operation
rpi_wordclock copied to clipboard

Nearly finished..

Open tom4727 opened this issue 3 years ago • 13 comments

Moin. I just see the finishline :-)

Just after

cd ~/rpi_wordclock sudo python wordclock.py

Raspberry says:

ModuleNotFoundError: No module named „ConfigParser“.

Can anybody help?

tom4727 avatar Dec 06 '21 17:12 tom4727

https://techglimpse.com/fix-no-module-named-import-error/

Maybe this helps?

Calimerorulez avatar Dec 06 '21 17:12 Calimerorulez

Which python version are you using ? python --version

Which Raspian Version have you installed ?

You should use python3 instead of python2.

Take a look at this discussion: https://github.com/bk1285/rpi_wordclock/issues/211

phenze avatar Dec 07 '21 06:12 phenze

Moin, my version is Python 3.9.2. another prob is that sudo scons is allready missing.

tom4727 avatar Dec 11 '21 13:12 tom4727

$pip install configparser Collecting configparser Using cached configparser-3.3.0r2.tar.gz Building wheels for collected packages: configparser Running setup.py bdist_wheel for configparser Stored in directory: /root/.cache/pip/wheels/1a/3e/f9/d34006ad6b1edfe5006aa704f5ee305c553344a7a6d8550c29 Successfully built configparser Installing collected packages: configparser Successfully installed configparser-3.3.0.post2 install: Fehlender Zieldatei‐Operand hinter 'configparser' „install --help“ liefert weitere Informationen. bash: Collecting: Kommando nicht gefunden. bash: Using: Kommando nicht gefunden. bash: Building: Kommando nicht gefunden. bash: Running: Kommando nicht gefunden. bash: Stored: Kommando nicht gefunden. bash: Successfully: Kommando nicht gefunden. bash: Installing: Kommando nicht gefunden.

tom4727 avatar Dec 11 '21 13:12 tom4727

sudo: scons: Befehl nicht gefunden

tom4727 avatar Dec 11 '21 13:12 tom4727

thank you for your help and kindness. now there is that issue:

sudo pip3 install ConfigParser Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting ConfigParser Downloading https://www.piwheels.org/simple/configparser/configparser-5.2.0-py3-none-any.whl (19 kB) Installing collected packages: ConfigParser Successfully installed ConfigParser-5.2.0 pi@raspberrypi:~ $ cd ~/rpi_wordclock sudo python wordclock.py Traceback (most recent call last): File "/home/pi/rpi_wordclock/wordclock.py", line 1, in import ConfigParser ModuleNotFoundError: No module named 'ConfigParser'

tom4727 avatar Dec 11 '21 13:12 tom4727

I would advise to use the develop branch: https://github.com/bk1285/rpi_wordclock/tree/develop with its installation instructions.

FrankX0 avatar Dec 11 '21 15:12 FrankX0

thx FrankX0 :-) i think this solved my issue. the cronjob is now working (i think). now i will get all the components together and will have a look, if all is working togehter.

tom4727 avatar Dec 12 '21 10:12 tom4727

@tom4727 what to do if i got the same error which you got No module named 'ConfigParser'

RahulYadav2207 avatar Jan 31 '22 09:01 RahulYadav2207

Reading the instructions here :

  • https://github.com/bk1285/rpi_wordclock/tree/develop
  • https://github.com/bk1285/rpi_wordclock/issues/211

or all the instructions in this issue.

I think your main problem is that you dont use python3 (https://github.com/bk1285/rpi_wordclock/issues/211#issuecomment-966865031)

phenze avatar Jan 31 '22 09:01 phenze

Did you switch to the development branch ?

git checkout --track origin/develop

phenze avatar Jan 31 '22 16:01 phenze

That is all explained here: https://github.com/bk1285/rpi_wordclock/tree/develop

git clone https://github.com/bk1285/rpi_wordclock.git
cd rpi_wordclock/
git checkout --track origin/develop

Do you know how to use a Linux Terminal and what the commands are doing ? If not do this tutorial:

  • https://ubuntu.com/tutorials/command-line-for-beginners#1-overview

For a basic overview what git does:

  • https://rogerdudler.github.io/git-guide/

phenze avatar Feb 01 '22 06:02 phenze

@bk1285: this might be a good time to make the develop branch the new main branch?

FrankX0 avatar Feb 01 '22 07:02 FrankX0

Done, @FrankX0 :)

bk1285 avatar Sep 01 '22 21:09 bk1285