Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pls help me to fix it. #72

Open
botio opened this issue Apr 20, 2013 · 6 comments
Open

Pls help me to fix it. #72

botio opened this issue Apr 20, 2013 · 6 comments

Comments

@botio
Copy link

botio commented Apr 20, 2013

This is my problem when I turn on poclbm.ph . pls help me. thanks

localhost:~ supreme$ /Users/supreme/poclbm/poclbm.py -d 1 http://[email protected]:[email protected]:8332
Traceback (most recent call last):
File "/Users/supreme/poclbm/poclbm.py", line 86, in
import BFLMiner
File "/Users/supreme/poclbm/BFLMiner.py", line 5, in
from serial.serialutil import SerialException

@StraderDynamics
Copy link

I think this error is generated when you are missing the pyserial python module. You can get the module from here. https://pypi.python.org/pypi/pyserial
tar -zxvf
cd folder
python serial.py build
python serial.py install

@botio
Copy link
Author

botio commented Apr 24, 2013

Dear John 👍
Thank u .
but I got the other problem when I turn on poclbm.ph. Could u help me ? pls.


25/04/2013 02:00:11, started OpenCL miner on platform 0, device 1 (ATI Radeon Cypress PRO Prototype)
25/04/2013 02:00:11, Setting server (14yENx9L2KaM3vYfbuzpHKMU8nmWc38Au1 @ http://127.0.0.1:9332)
http://127.0.0.1:9332 25/04/2013 02:00:11, checking for stratum...
Exception in thread Thread-1:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 763, in run
self.__target(_self.__args, *_self.__kwargs)
File "/Users/supreme/poclbm/OpenCLMiner.py", line 162, in mining_thread
self.load_kernel()
File "/Users/supreme/poclbm/OpenCLMiner.py", line 320, in load_kernel
kernel_file = open('phatk.cl', 'r')
IOError: [Errno 2] No such file or directory: 'phatk.cl'

http://127.0.0.1:9332 25/04/2013 02:00:11, no response to getwork, using as stratum
Traceback (most recent call last):
File "/Users/supreme/poclbm/poclbm.py", line 97, in
switch.loop()
File "/Users/supreme/poclbm/Switch.py", line 109, in loop
failback = self.server_source().loop()
File "/Users/supreme/poclbm/StratumSource.py", line 94, in loop
self.socket.connect((address, int(port)))
ValueError: invalid literal for int() with base 10: '//127.0.0.1:9332'

@StraderDynamics
Copy link

It would appear that you are missing many python related dependencies. I have not worked out a module list for python 2.7 yet. Here is a dump from my python 2.6 easy_install script. Change easy_install-2.6 to easy_install-2.7 and it should be ready for your version of Python. If easy_install complains that the module can not be found, just remove it from the list and re-run the easy_install script command. It will skip over the modules already installed. here is my python 2.6 module list. Once all of the python modules are installed, all of your mining apps should function correctly or at least function correctly after being recompiled once these modules are installed.

easy_install-2.6
AddOns
Beaker
BytecodeAssembler
cas
Conch
cups
cupshelpers
decorator
DecoratorTools
distribute
epydoc
ethtool
Extremes
firstaidkit
firstboot
fontforge
FormEncode
fpconst
freeipa
iniparse
iotop
ipaddr
ipapython
iwlib
java-gcj-compat
jsonrpc
kerberos
ksc
lxml
M2Crypto
Magic-file-extensions
Mako
MarkupSafe
matplotlib
MySQL-python
netaddr
netsnmp-python
nose
numpy
paramiko
Paste
PasteDeploy
PEAK-Rules
perf
pexpect
PIL
prioritized-methods
py
PyChart
pycrypto
pycurl
Pygments
pygpgme
pykickstart
pyopencl
PyOpenGL
pyOpenSSL
PyPAM
pysane
pyserial
pytest
python-dateutil
python-default-encoding
python-ldap
python-linux-procfs
python-meh
python-nss
pytools
pytz
pyxdg
PyXML
qpid-python
qpid-tools
Routes
scdate
schedutils
scipy
sckdump
scservices
scservices.dbus
simplejson
SimpleParse
slip
slip.dbus
slip.gtk
smbc
SOAPpy
SSSDConfig
suds
SymbolType
Tempita
ToscaWidgets
transaction
tuna
TurboJson
tw.forms
Twisted-Core
Twisted-Lore
Twisted-Mail
Twisted-Names
Twisted-News
Twisted-Runner
Twisted-Web
Twisted-Words
urlgrabber
WebError
WebFlash
WebOb
WebTest
WSGIProxy
yum-metadata-parser
yum-presto
zenmap
zope.interface

@StraderDynamics
Copy link

I just finished my first run on installing modules under python 2.7. I had to remove many modules that were found under 2.6 but not found under 2.7. I have not verified if this satisfies all of the dependency requirements for Bitcoin mining but if anything it should bring you much closer to a working solution.

easy_install-2.7
AddOns
Beaker
BytecodeAssembler
decorator
DecoratorTools
distribute
Extremes
FormEncode
fpconst
iniparse
ipaddr
jsonrpc
kerberos
lxml
Mako
MarkupSafe
numpy
MySQL-python
netaddr
nose
paramiko
Paste
PasteDeploy
PEAK-Rules
pexpect
PIL
prioritized-methods
py
pycrypto
pycurl
Pygments
pygpgme
PyOpenGL
pyOpenSSL
pyserial
pytest
python-dateutil
python-ldap
pytools
pytz
pyxdg
PyXML
qpid-python
Routes
simplejson
SimpleParse
SOAPpy
suds
SymbolType
Tempita
ToscaWidgets
transaction
TurboJson
tw.forms
WebError
WebFlash
WebOb
WebTest
WSGIProxy
zope.interface

@StraderDynamics
Copy link

Another thing to mention is this. When you launch the poclbm.py, you need to actually be 'IN' that directory or otherwise it will fail to locate files such as phatk.cl, for example.

@krichter722
Copy link

Please change the title to something meaningful and use markdown correctly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants