LYacineT
Posts: 2
Joined: Thu Feb 23, 2017 10:28 am

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

Thu Feb 23, 2017 10:34 am

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)

alphanumeric
Posts: 2547
Joined: Tue Jan 19, 2016 2:17 pm
Location: Sydney, Nova Scotia, Canada

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

Thu Feb 23, 2017 1:11 pm

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.

LYacineT
Posts: 2
Joined: Thu Feb 23, 2017 10:28 am

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

Thu Feb 23, 2017 5:16 pm

python 3 is already installed, but i can't install another program, like vlc, i have the same error message,

alphanumeric
Posts: 2547
Joined: Tue Jan 19, 2016 2:17 pm
Location: Sydney, Nova Scotia, Canada

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

Thu Feb 23, 2017 5:28 pm

What OS are you running? If Raspbian, is it the latest version, Pixel?

texy
Forum Moderator
Forum Moderator
Posts: 5161
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

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

Thu Feb 23, 2017 6:59 pm

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
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

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

Thu Feb 23, 2017 7:45 pm

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.
There are 10 types of people: those who understand binary and those who don't.

Return to “General discussion”