Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dreampie fails to start on Ubuntu Budgie 20.10 #78

Open
charwhee opened this issue Mar 9, 2021 · 1 comment
Open

Dreampie fails to start on Ubuntu Budgie 20.10 #78

charwhee opened this issue Mar 9, 2021 · 1 comment

Comments

@charwhee
Copy link

charwhee commented Mar 9, 2021

dreampie

Traceback (most recent call last):
File "/usr/local/bin/dreampie", line 3, in
from dreampielib.gui import main
File "/usr/local/lib/python3.8/dist-packages/dreampielib/gui/init.py", line 240
except StartError, e:
^
SyntaxError: invalid syntax

@furas
Copy link

furas commented May 2, 2021

dreampie was created in Python 2.7 and it needs Python 2.7 to run it.
You have to install in with pip2 install ... or python2 -m pip installl ...

If you don't have Python 2.7 then you can install it from
deadsnakes unofficial Python repo for Ubuntu (and Mint)

https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa

After that you can use Python 3 inside dreampie

 $ dreampie python3
 $ dreampie python3.7
 $ dreampie python3.8

or even ipython or bpython installed in Python 3

 $ dreampie ipython
 $ dreampie bpython

dreampie was created in Python 2.7 and as I know
It could need too much change to simply convert it to Python 3
ie. it uses gtksourceview2 which doesn't exists in Python 3
and I had problem to install it on Linux Mint 20 based on Ubuntu 20.04

If you will have problem with gtksourceview2 in Python 2.7
then download python-gtksourceview2_2.10.1-3_amd64.deb
from

https://ubuntu.pkgs.org/18.04/ubuntu-universe-amd64/python-gtksourceview2_2.10.1-3_amd64.deb.html

and install it with double click

or uncompress it using function built-in in Nautilus/Caja
or using dpkg -x python-gtksourceview2_2.10.1-3_amd64.deb folder

and copy gtksourceview2.so to folder with Python 2

At Linux Mint it is /usr/lib/python2.7/dist-packages/gtksourceview2.so

It may need also to install libgtksourceview2.0-0 with apt-get

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants