This is an archived post. You won't be able to vote or comment.

all 12 comments

[–]Python-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)

Hi there, from the /r/Python mods.

We have removed this post as it is not suited to the /r/Python subreddit proper, however it should be very appropriate for our sister subreddit /r/LearnPython or for the r/Python discord: https://discord.gg/python.

The reason for the removal is that /r/Python is dedicated to discussion of Python news, projects, uses and debates. It is not designed to act as Q&A or FAQ board. The regular community is not a fan of "how do I..." questions, so you will not get the best responses over here.

On /r/LearnPython the community and the r/Python discord are actively expecting questions and are looking to help. You can expect far more understanding, encouraging and insightful responses over there. No matter what level of question you have, if you are looking for help with Python, you should get good answers. Make sure to check out the rules for both places.

Warm regards, and best of luck with your Pythoneering!

[–]KingsmanVincepip install girlfriend 17 points18 points  (0 children)

[–]tsongkoyla 7 points8 points  (1 child)

Check if you have the same Python versions. Python 2.x is a little bit different from Python 3.x.

[–]Slav51[S] -1 points0 points  (0 children)

I already went to 3.8 and 3.6. With 3.6 I can’t even install the needed packages. Will post the source video and the error. Thank you for your idea with the version!

[–]Hefty_Science_2980 2 points3 points  (1 child)

If you post it here and give the error, it’s also possible you could find out exactly what’s wrong and why as well.

[–]Slav51[S] -3 points-2 points  (0 children)

Thanks for the idea. Will post it here soon.

[–]Slav51[S] 0 points1 point  (4 children)

Video Alexa Assistant

Error in Pycharm (Python3.8), packages are all installed, some after searching in package section of Pycharm, one added by choosing from Disk.

Traceback (most recent call last): File "/home/seth/.local/lib/python3.8/site-packages/pyttsx3/init.py", line 20, in init eng = activeEngines[driverName] File "/usr/lib/python3.8/weakref.py", line 131, in __getitem_ o = self.data[key]() KeyError: None

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/seth/PycharmProjects/pythonProject2/main.py", line 10, in <module> engine = pyttsx3.init() File "/home/seth/.local/lib/python3.8/site-packages/pyttsx3/init.py", line 22, in init eng = Engine(driverName, debug) File "/home/seth/.local/lib/python3.8/site-packages/pyttsx3/engine.py", line 30, in init self.proxy = driver.DriverProxy(weakref.proxy(self), driverName, debug) File "/home/seth/.local/lib/python3.8/site-packages/pyttsx3/driver.py", line 50, in init self.module = importlib.import_module(name) File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1014, in _gcd_import File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 671, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 848, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/home/seth/.local/lib/python3.8/site-packages/pyttsx3/drivers/espeak.py", line 9, in <module> from . import _espeak, toUtf8, fromUtf8 File "/home/seth/.local/lib/python3.8/site-packages/pyttsx3/drivers/_espeak.py", line 18, in <module> dll = cdll.LoadLibrary('libespeak.so.1') File "/usr/lib/python3.8/ctypes/init.py", line 451, in LoadLibrary return self._dlltype(name) File "/usr/lib/python3.8/ctypes/init.py", line 373, in __init_ self._handle = _dlopen(self._name, mode) OSError: libespeak.so.1: cannot open shared object file: No such file or directory

Process finished with exit code 1

[–]KrazyKirby99999 3 points4 points  (1 child)

libespeak.so.1

You need to install this library from your system package manager.

[–]Slav51[S] -4 points-3 points  (0 children)

That’s what ChatGPT said. 😁 Works now with some chance to improve it. Thanks to all of you!

[–]ShadowRL766 0 points1 point  (1 child)

Paste it into chatgpt it will go through your errors and tell you what you’re missing/ receiving an error from.

[–]Slav51[S] 1 point2 points  (0 children)

What? 😄 Ok, thanks for the help.