PiMiner

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
PurpleSphinx
 
Posts: 4
Joined: Fri Jul 25, 2014 12:24 pm

PiMiner

Post by PurpleSphinx »

I followed the instrustions perfectly here:https://learn.adafruit.com/piminer-rasp ... d-assembly. Everything has gone smoothly untill I put in this command "sudo python PiMiner/PiMiner.py &", an error message comes up saying,

"Traceback (most recent call last)
File "PiMiner.py", Line 5, in <module>
from Adafruit_CharLCDPlate import Adafruit_CharLCDPlate
ImportError: No module named Adafruit_CharLCDPlate"

Please help I honestly have know idea how to fix this, I don't code or anything like that. Thank you!
P.S. The green LEDs turn off then come back on after like 30-45 seconds, after this command "sudo nohup ./cgminer-3.1.1/cgminer --config /home/pi/cgminer.conf -S /dev/ttyUSB0 -S /dev/ttyUSB1 >/dev/null 2>&1&"

User avatar
adafruit_support_mike
 
Posts: 67391
Joined: Thu Feb 11, 2010 2:51 pm

Re: PiMiner

Post by adafruit_support_mike »

How did you install your Adafruit RasPi Python library?

PurpleSphinx
 
Posts: 4
Joined: Fri Jul 25, 2014 12:24 pm

Re: PiMiner

Post by PurpleSphinx »

The same way it says in the tutorial I guess... I'm new to this so I dont really know alot about it, are you talking about this one? https://github.com/adafruit/Adafruit_Python_CharLCD

User avatar
adafruit_support_mike
 
Posts: 67391
Joined: Thu Feb 11, 2010 2:51 pm

Re: PiMiner

Post by adafruit_support_mike »

Yes. That should be someplace where the PiMiner script can find it.. putting it in the same directory is good.

PurpleSphinx
 
Posts: 4
Joined: Fri Jul 25, 2014 12:24 pm

Re: PiMiner

Post by PurpleSphinx »

Well where should I put it? I'm using this https://learn.adafruit.com/adafruit-16x ... y-pi/usage and this part of the tutorial,

sudo apt-get update
sudo apt-get install build-essential python-dev python-smbus python-pip git
sudo pip install RPi.GPIO
git clone https://github.com/adafruit/Adafruit_Python_CharLCD.git
cd Adafruit_Python_CharLCD
sudo python setup.py install

User avatar
adafruit_support_mike
 
Posts: 67391
Joined: Thu Feb 11, 2010 2:51 pm

Re: PiMiner

Post by adafruit_support_mike »

Copy the file Adafruit_CharLCD.py into the same directory as your PiMiner script.

PurpleSphinx
 
Posts: 4
Joined: Fri Jul 25, 2014 12:24 pm

Re: PiMiner

Post by PurpleSphinx »

How do i find the directory for Adafruit_CharLCD.py file?

User avatar
adafruit_support_mike
 
Posts: 67391
Joined: Thu Feb 11, 2010 2:51 pm

Re: PiMiner

Post by adafruit_support_mike »

Have you run the command to clone the repo from Github (posted above)?

That creates a directory that contains Adafruit_CharLCD.py.

User avatar
exon
 
Posts: 56
Joined: Tue Mar 03, 2015 8:12 pm

Re: PiMiner

Post by exon »

Do you have an updated version of PiMiner that will work with https://github.com/adafruit/Adafruit_Python_CharLCD?

Current PiMiner in adafruit repo is pointing towards an import Adafruit_CharLCDPlate which no longer exists in Adafruit_CharLCD under the repo above.

Also, PyMinerDisplay.py gave out the following error:

Code: Select all

TypeError: __init__() takes at least 9 arguments (1 given)
Help please. Thank you

User avatar
haleyma
 
Posts: 13
Joined: Mon Feb 20, 2012 2:00 pm

Re: PiMiner

Post by haleyma »

Just checking to see if you found a solution, exon? I downloaded the Adafruit_Python_CharLCD file and tried to modify the PiMiner.py file to import Adafruit_CharLCD from that file, but I am getting an ImportError: No module named Adafruit_Python_CharLCD even though the file is in my /home/pi directory. Maybe does it have to be inside the PiMiner directory?

User avatar
adafruit_support_mike
 
Posts: 67391
Joined: Thu Feb 11, 2010 2:51 pm

Re: PiMiner

Post by adafruit_support_mike »

I'm afraid that tutorial is far enough out of date that it needs to be redone from the ground up. It's only useful for historical value at this point.

User avatar
haleyma
 
Posts: 13
Joined: Mon Feb 20, 2012 2:00 pm

Re: PiMiner

Post by haleyma »

Thanks, Mike. I appreciate your responding!

User avatar
marvelmike
 
Posts: 2
Joined: Tue Jan 30, 2018 5:00 am

Re: PiMiner

Post by marvelmike »

Hi,
I have the same issue and can't figure out how to update the PiMiner.py script.

Soldering the display was fun and it passes all the display tests provided in the display session perfectly:
"cd examples
sudo python char_lcd_plate.py"


It seems that at some point all the files for PiMiner have been moved by Ada Fruit to a new location, etc. but the paths in the scripts have not been updated to reflect the new names.

Did someone figure it out?

User avatar
adafruit_support_mike
 
Posts: 67391
Joined: Thu Feb 11, 2010 2:51 pm

Re: PiMiner

Post by adafruit_support_mike »

BANNED mining has evolved enough since the tutorial was written that the code only has historical value by now.

User avatar
marvelmike
 
Posts: 2
Joined: Tue Jan 30, 2018 5:00 am

Re: PiMiner

Post by marvelmike »

Dear adafruit_support_mike,

are you saying I spent USD 25.00 on a product that you now say has no operating system?

It was clearly advertised as a hardware kit plus code to operate.
https://learn.adafruit.com/adafruit-16x ... i/overview

There is no reference to obsolete and outdated code. On the contrary, there is writing about the kit having been updated to accommodate 4 USB port Raspberries, etc.

And no, BANNED mining has not evolved beyond wanting to see my hash rate, etc.

Please provide updated code so that the product works as advertised until February 28th, 2018, else I will return my purchase at your expense.

Thank you for your understanding.

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”