m0mchil / poclbm

PyOpenCL bitcoin miner
Other
681 stars 387 forks source link

Pls help me to fix it. #72

Open botio opened 11 years ago

botio commented 11 years ago

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

localhost:~ supreme$ /Users/supreme/poclbm/poclbm.py -d 1 http://supremee@gmail.com:s838@pit.deepbit.net: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 commented 11 years ago

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 commented 11 years ago

Dear John :+1: 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 commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

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 commented 9 years ago

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