Page 1 of 1

Need Help , i can't install python on my rapberry

Posted: Thu Feb 23, 2017 10:34 am
by LYacineT
I try ton install python on my raspberry but i have this probleme, do you know what does it means?

Code: Select all

 sudo apt-get install python-dev                                                                                                                      Reading package lists... Done
Building dependency tree
Reading state information... Done
python-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 268 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up python3-gi (3.14.0-1) ...
Sorry: TypeError: source code string cannot contain null bytes
Sorry: TypeError: source code string cannot contain null bytes
dpkg: error processing package python3-gi (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python3-gi-cairo:
 python3-gi-cairo depends on python3-gi (= 3.14.0-1); however:
  Package python3-gi is not configured yet.

dpkg: error processing package python3-gi-cairo (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gedit:
 gedit depends on python3-gi (>= 3.0); however:
  Package python3-gi is not configured yet.
 gedit depends on python3-gi-cairo (>= 3.0); however:
  Package python3-gi-cairo is not configured yet.

dpkg: error processing package gedit (--configure):
 dependency problems - leaving unconfigured
E: Sub-process /usr/bin/dpkg returned an error code (1)

Re: Need Help , i can't install python on my rapberry

Posted: Thu Feb 23, 2017 1:11 pm
by alphanumeric
What OS are you running? Python is already installed in Raspbian.

Code: Select all

python-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 268 not upgraded.
To me that message indicates its already installed and up to date.

Re: Need Help , i can't install python on my rapberry

Posted: Thu Feb 23, 2017 5:16 pm
by LYacineT
python 3 is already installed, but i can't install another program, like vlc, i have the same error message,

Re: Need Help , i can't install python on my rapberry

Posted: Thu Feb 23, 2017 5:28 pm
by alphanumeric
What OS are you running? If Raspbian, is it the latest version, Pixel?

Re: Need Help , i can't install python on my rapberry

Posted: Thu Feb 23, 2017 6:59 pm
by texy
LYacineT wrote:python 3 is already installed, but i can't install another program, like vlc, i have the same error message,
That is now a different subject to the opening post. Show us the exact error message.
Texy

Re: Need Help , i can't install python on my rapberry

Posted: Thu Feb 23, 2017 7:45 pm
by kusti8
It may be a bad download where you can just apt-get clean to remove and retry but if it persists for different packages as well it might be a corrupted OS. Try a fresh install and see if that makes it better.