Failed to install Python 3.5.3


#21

yes i did, useless


#22

in your comand terminal type the following:

  • python

  • python3

and see what is the version of the python you have.


#23

I`m re-installing Raspbian current time (4th time), want to try first install python and after that use update and upgrade. So I will try all combinations. Python version was 3.5.2 if I remember right.


#24

cool. First do sudo apt-get update and sudo apt-get upgrade. then do the cayenne install command.


#25

I did it previous time, it doesn`t work, so I will try first install the last version of python. By the way, the last installed version was 3.5.3.


#26

yes that is the version i have and it did not cause any error at my end while installing. so once you have update and upgrade. see what version is python, if 3.5.3 then go ahead and do cayenne installation, if any error please post the entire output for command terminal here.


#27

Got it, thank you!


#28

Finally, it works. The main problem was in synchronization with NTP server. After making changes and some manual correction all worked correctly. Now it is time for experiments.


#29

nice to hear that it is working. looking forward to seeing what you are making with cayenne :slightly_smiling_face:
if you need any help, feel free to ask.


#30

Hi, i have the same error here. I’m using a new sd card and a new Pi to move my stuff fromt he previous cayenne setup. I’m using the latest raspbian release (April 2018) and tested with both RASPBIAN STRETCH LITE and RASPBIAN STRETCH WITH DESKTOP. And yesterday i decided to give it another try, this time i used NOOBS to install RASPBIAN STRETCH WITH DESKTOP, but the error still happens. You can find a log in the attached text file, it contains all the steps after the raspbian installation until i got the Python install error.

Thanks and regards
Sergio

Cayenne log.txt (53.7 KB)


#31

thank you for log file, i will put this to the engineer and see what is causing the installation to fail.


#32

@sergio.agostinho That’s strange, I’m not sure what is causing the failure. Seems like it might be having issues installing some dependencies. Can you try manually installing the psutil package to see if that works using this command?
sudo pip3 install psutil

Please post the output you get from that. Also can you send me your setup log file at /var/log/myDevicesSetup? Thanks.


#33

Hi jburhenn,

it can’t download the paho-mqqt package as you can see in the log below:
Download error on https://pypi.python.org/simple/paho-mqtt/: [Errno 104] Connection reset by peer – Some packages may not be found!
Couldn’t find index page for ‘paho-mqtt’ (maybe misspelled?)
Download error on https://pypi.python.org/simple/: [Errno 104] Connection reset by peer – Some packages may not be found!
No local packages or working download links found for paho-mqtt
error: Could not find suitable distribution for Requirement.parse(‘paho-mqtt’)

  • ‘[’ 1 -ne 0 ‘]’
  • normalEcho ‘Build for Python 3.5.3 failed’
    ++ date
  • echo ‘Mon Jun 25 20:16:21 GMT 2018 Build for Python 3.5.3 failed’
  • exit 1

You can find the requested log info in the attached text files.

Regards
Sergio
Console log.txt (25.2 KB)
myDevicesSetup.txt (9.4 KB)


#34

Can you try manually installing paho-mqtt using sudo pip3 install psutil? If that works then maybe it’s an issue with setuptools. You can try updating that using sudo pip3 install --upgrade setuptools and then re-running the install and see if you still get an error. If you do please provide the output again. Thanks.


#35

sudo pip3 install psutil was already successfully installed when you asked in your previous answer;
sudo pip3 install --upgrade setuptools was successfully updated;
The erro ris still the same, as you see below, it looks like pypi.org is not available anymore…

Download error on https://pypi.org/simple/paho-mqtt/: [Errno 104] Connection reset by peer – Some packages may not be found!
Couldn’t find index page for ‘paho-mqtt’ (maybe misspelled?)
Download error on https://pypi.org/simple/: [Errno 104] Connection reset by peer – Some packages may not be found!
No local packages or working download links found for paho-mqtt
error: Could not find suitable distribution for Requirement.parse(‘paho-mqtt’)

  • ‘[’ 1 -ne 0 ‘]’
  • normalEcho ‘Build for Python 3.5.3 failed’
    ++ date
  • echo ‘Mon Jun 25 22:11:06 GMT 2018 Build for Python 3.5.3 failed’
  • exit 1

#36

Sorry, my mistake. I meant can you try sudo pip3 install paho-mqtt? You might also try sudo pip3 install --upgrade wheel.


#37

What changes did you make?

Thanks.


#38

Now, after your requests i got:
Download error on https://pypi.org/simple/netifaces/: [Errno 104] Connection reset by peer – Some packages may not be found!
Couldn’t find index page for ‘netifaces’ (maybe misspelled?)
Download error on https://pypi.org/simple/: [Errno 104] Connection reset by peer – Some packages may not be found!
No local packages or working download links found for netifaces>=0.10.5
error: Could not find suitable distribution for Requirement.parse(‘netifaces>=0.10.5’)

  • ‘[’ 1 -ne 0 ‘]’
  • normalEcho ‘Build for Python 3.5.3 failed’
    ++ date
  • echo ‘Tue Jun 26 11:41:43 GMT 2018 Build for Python 3.5.3 failed’
  • exit 1

Then after sudo pip3 install netifaces i got:
Download error on https://pypi.org/simple/jsonpickle/: [Errno 104] Connection reset by peer – Some packages may not be found!
Couldn’t find index page for ‘jsonpickle’ (maybe misspelled?)
Download error on https://pypi.org/simple/: [Errno 104] Connection reset by peer – Some packages may not be found!
No local packages or working download links found for jsonpickle
error: Could not find suitable distribution for Requirement.parse(‘jsonpickle’)

  • ‘[’ 1 -ne 0 ‘]’
  • normalEcho ‘Build for Python 3.5.3 failed’
    ++ date
  • echo ‘Tue Jun 26 11:44:13 GMT 2018 Build for Python 3.5.3 failed’
  • exit 1

Then, after sudo pip3 install jsonpickle i got:
Download error on https://pypi.org/simple/iwlib/: [Errno 104] Connection reset by peer – Some packages may not be found!
Couldn’t find index page for ‘iwlib’ (maybe misspelled?)
Download error on https://pypi.org/simple/: [Errno 104] Connection reset by peer – Some packages may not be found!
No local packages or working download links found for iwlib
error: Could not find suitable distribution for Requirement.parse(‘iwlib’)

  • ‘[’ 1 -ne 0 ‘]’
  • normalEcho ‘Build for Python 3.5.3 failed’
    ++ date
  • echo ‘Tue Jun 26 11:46:22 GMT 2018 Build for Python 3.5.3 failed’
  • exit 1

Then, after sudo pip3 install iwlib i got:
Collecting iwlib
Could not find a version that satisfies the requirement iwlib (from versions: )
No matching distribution found for iwlib

And it still doesn’t work, and my alarm triggers are not working, and i think it was a mistake to stop the agent 1 without giving the possibility to correctly upgrade to version 2, but that’s only my personal opinion of course…


#39

which triggers are not working?


#40

I have some triggers connected to digital sensors like in the attached images