Go to advanced search

by micksulley
Fri Feb 08, 2019 11:33 am
Forum: Python
Topic: Cannot install pysftp
Replies: 9
Views: 1287

Re: Cannot install pysftp - Fixed!

In case anyone else has this problem this is what I did to get it workng Fresh install of Raspbian Stretch - still didn't work, so after much research, trial and error - sudo apt-get install python-pip pip install --user -U setuptools sudo pip install --upgrade pip sudo apt-get install libffi-dev su...
by micksulley
Sun Dec 23, 2018 10:53 pm
Forum: Troubleshooting
Topic: SSH breaks but ping still works
Replies: 0
Views: 300

SSH breaks but ping still works

One of my Pi's which runs headless has an intermittent problem. The SSH connections breaks and I cannot re-open it, but I can still ping it, so it hasn't crashed completely. It has happened several times but can run fine for days. What can cause this? Running Raspbian Stretch I looked through the lo...
by micksulley
Sun Dec 23, 2018 10:26 pm
Forum: Python
Topic: Cannot install pysftp
Replies: 9
Views: 1287

Re: Cannot install pysftp

Thanks for your help. I think I will do a fresh install from scratch and start again.
by micksulley
Sun Dec 23, 2018 5:56 pm
Forum: Python
Topic: Cannot install pysftp
Replies: 9
Views: 1287

Re: Cannot install pysftp

No it is Jessie lite, runs headless so no desktop stuff.

How can I upgrade to Stretch? I thought that
sudo apt-get update
sudo apt-get dist-upgrade
would do it, but just tried that and it is still Jessie
by micksulley
Sat Dec 22, 2018 9:05 am
Forum: Python
Topic: Cannot install pysftp
Replies: 9
Views: 1287

Re: Cannot install pysftp

Thanks for the reply. I had libff6 but not libffi-dev, so I install that and tried again. It failed again,, control@pi-solar-old:~ $ pip install pysftp Downloading/unpacking pysftp Downloading pysftp-0.2.9.tar.gz Running setup.py (path:/tmp/pip-build-BdmCHc/pysftp/setup.py) egg_info for package pysf...
by micksulley
Fri Dec 21, 2018 4:53 pm
Forum: Python
Topic: Cannot install pysftp
Replies: 9
Views: 1287

Cannot install pysftp

Running Raspian, just done dist-upgrade so it is up to date. According to https://pypi.org/project/pysftp/ I should be able to install pysftp with 'pip install pysftp', which worked on my desktop (Linux Mint) but does not work on my Pi. I have tried it with and without sudo. This is what I see contr...
by micksulley
Fri Nov 23, 2018 10:39 pm
Forum: Troubleshooting
Topic: What is faillog? How to diagnose a crash.
Replies: 2
Views: 445

Re: What is faillog? How to diagnose a crash.

Thanks for the reply, at least I know what faillog is now :) It locked up again shortly afterwards, I couldn't access the web page it generates and couldn't ssh into it, but I was about to have dinner so left it. When I cam back to it it was running again, so had recovered without reboot. I noticed ...
by micksulley
Fri Nov 23, 2018 9:10 pm
Forum: Troubleshooting
Topic: What is faillog? How to diagnose a crash.
Replies: 2
Views: 445

What is faillog? How to diagnose a crash.

One of my Pi's, which runs headless, had crashed. Power cycle and it is up again but I am trying to determine what caused it, so a few questions - 1) How can I see what caused the crash? I have looked at some of the log files, the one which show something is daemon.log, here is an extract Nov 23 10:...
by micksulley
Sun Oct 28, 2018 5:18 pm
Forum: General discussion
Topic: Cannot Search Forum
Replies: 31
Views: 2369

Cannot Search Forum

I can no longer search the forum. The search icon in the top bar is there, but that searches the main site not the forum. There used to be a search box just to the right on 'New Topic' from memory, but it is no longer there and I cannot search the forum at all.

What is going on?
by micksulley
Tue Oct 02, 2018 3:06 pm
Forum: Troubleshooting
Topic: wifi dies
Replies: 8
Views: 465

Re: wifi dies

Changed to a 3m USB3 cable, no difference, wifi dies after a few minutes. I did notice that it re-tries if I unplug the USB and plug in again, I also noticed that wifi is technically working in that it adds a neighbours wifi to the list, but will not reconnect to mine. Can this be down to using a do...
by micksulley
Mon Oct 01, 2018 7:21 pm
Forum: Troubleshooting
Topic: Apache and SSH both die
Replies: 0
Views: 108

Apache and SSH both die

I have a pi3 which is running a headless control system. I can access information via a web page on the Pi. At random times, maybe weeks apart, I cannot access the web page, getting an error Forbidden You don't have permission to access /solar/solar_devices_2.php on this server. Apache/2.4.10 (Raspb...
by micksulley
Sun Sep 30, 2018 10:24 am
Forum: Troubleshooting
Topic: wifi dies
Replies: 8
Views: 465

Re: wifi dies

It is a USB3 cable, but I have just ordered a 3M USB3 to be safe.

However if that was the problem I would have expected the wifi to maybe be unreliable but to be able to reconnect, whereas when it goes a reboot seems to be the only cure.
by micksulley
Sat Sep 29, 2018 10:34 pm
Forum: Troubleshooting
Topic: wifi dies
Replies: 8
Views: 465

Re: wifi dies

The extension is 5m long.
The router transmits 2.4 and 5Ghz simultaneously
by micksulley
Sat Sep 29, 2018 4:18 pm
Forum: Troubleshooting
Topic: wifi dies
Replies: 8
Views: 465

wifi dies

I have a Pi3 in my garage and I am trying to connect via wifi. Because of the position of the Pi it could get a good signal, so I used a USB cable and wifi dongle to get to a better position for signal. I have disabled the internal wifi by adding dtoverlay=pi3-disable-wifi to the end of /boot/config...
by micksulley
Sun Sep 09, 2018 10:59 am
Forum: Troubleshooting
Topic: wifi connect as ip but not as pi.local
Replies: 0
Views: 144

wifi connect as ip but not as pi.local

My pi is called pi-ox. It has an IP of 192.168.1.70 which is fixed by the access point binding the wifi dongle mac address to the IP address. From the pi I can ping the router and other devices and connect to the internet. From my desktop I can ping the pi via it's IP but not as pi-ox.local I have a...
by micksulley
Mon Apr 30, 2018 11:25 am
Forum: Automation, sensing and robotics
Topic: Universal G-Code Sender - Visualizer
Replies: 2
Views: 1155

Re: Universal G-Code Sender - Visualizer

Many thanks MrGreg.
I have downloaded it and tried it out, seems to work fine. I now need to go through the documentation to get to grips with it :)
by micksulley
Sun Apr 29, 2018 10:19 am
Forum: Automation, sensing and robotics
Topic: Universal G-Code Sender - Visualizer
Replies: 2
Views: 1155

Universal G-Code Sender - Visualizer

Hi, How do I get the Visualize function to work in UGS? I am running version 2.0.0 stable on a Raspberry Pi. I have checked that Java is version 8. When I load g-code and press the Visualize button nothing happens. If I run UGS from a terminal I see loads of messages which don't mean a lot to me. Th...
by micksulley
Mon Jan 29, 2018 9:06 pm
Forum: Python
Topic: Connect to MariaDB from Python
Replies: 4
Views: 5094

Re: Connect to MariaDB from Python - Fixed

Yes that was it, all working now.
Many Thanks
Mick
by micksulley
Mon Jan 29, 2018 2:56 pm
Forum: Python
Topic: Connect to MariaDB from Python
Replies: 4
Views: 5094

Connect to MariaDB from Python

Up to date Raspbian. I have installed MariaDB following this link https://howtoraspberrypi.com/mariadb-raspbian-raspberry-pi/ and I am trying to connect to it from within Python following information here https://mariadb.com/resources/blog/how-connect-python-programs-mariadb but it fails at the impo...
by micksulley
Sat Jan 27, 2018 10:40 am
Forum: General discussion
Topic: How to download stock (share) prices
Replies: 3
Views: 658

Re: How to download stock (share) prices

Thanks Dougie. Look like it is time to learn JSON :)
by micksulley
Fri Jan 26, 2018 9:25 pm
Forum: General discussion
Topic: How to download stock (share) prices
Replies: 3
Views: 658

How to download stock (share) prices

I have some Python code which I wrote a few years back which would download a stock price from a Yahoo site using url = "http://download.finance.yahoo.com/d/quotes.csv?s=%s&f=sl1d1c1hgv" % symbol This site seems to have disappeared. Does anyone know of another site giving the ability to auto downloa...
by micksulley
Sat Dec 30, 2017 11:45 pm
Forum: Other programming languages
Topic: MariaDB PDO Driver - No Value
Replies: 6
Views: 1546

Re: MariaDB PDO Driver - No Value - Fixed

That has fixed it!
Thanks Dougie
by micksulley
Sat Dec 30, 2017 9:11 pm
Forum: Other programming languages
Topic: MariaDB PDO Driver - No Value
Replies: 6
Views: 1546

Re: MariaDB PDO Driver - No Value

OK maybe my database is not good, that is something I can look at later. The point is that it all worked in MySQL but now does not in MariaDB. It looks to me that the problem is that PDO drivers are not enabled, but I don't know what to do about it.
by micksulley
Sat Dec 30, 2017 5:06 pm
Forum: Other programming languages
Topic: MariaDB PDO Driver - No Value
Replies: 6
Views: 1546

Re: MariaDB PDO Driver - No Value

Here is the result from the dump cabin@pi-cabin:~ $ mysqldump -d -u cabin -p cabin Enter password: -- MySQL dump 10.16 Distrib 10.1.23-MariaDB, for debian-linux-gnueabihf (armv7l) -- -- Host: localhost Database: cabin -- ------------------------------------------------------ -- Server version 10.1.2...
by micksulley
Sat Dec 30, 2017 4:41 pm
Forum: Other programming languages
Topic: MariaDB PDO Driver - No Value
Replies: 6
Views: 1546

MariaDB PDO Driver - No Value

I have been using MySQL on Pi's for a while, but on a new install I have MariaDB and I am having trouble getting it to work. I can access the database from command line and also from Tora, but when I try with a web page I get an error 'could not find driver' If I run phpinfo() inder PDO I see PDO dr...

Go to advanced search