Bitcoin Forum
December 09, 2016, 02:09:51 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: How do I run the Phoenix miner script directly in Windows 7 x64?  (Read 1933 times)
MegaBux
Jr. Member
*
Offline Offline

Activity: 33


View Profile
July 23, 2011, 08:28:47 PM
 #1

I would like to run the Phoenix python script directly and test if there is any performance benefit to doing so.  After installing Python 3.2 for Windows 7 x64, I run the following commands in the source directory containing phoenix.py and always get the same error:

Code:
C:\users\me\downloads\phoenix-1.50\src>.\phoenix.py
  File "C:\users\me\downloads\phoenix-1.50\src\src\phoenix.py", line 98
    except ValueError, e:

Code:
C:\users\me\downloads\phoenix-1.50\src>.\phoenix.py -u http://user:pass@uswest.btcguild.com:8332 -k phatk
  File "C:\users\me\downloads\phoenix-1.50\src\src\phoenix.py", line 98
    except ValueError, e:

Line 98 implies a connection error from the following source.  Do I need to pass the url in a special manner on the command line?

Code:
    def makeConnection(self, requester):
        if not self.connection:
            try:
                self.connection = minerutil.openURL(self.url, requester)
            except ValueError, e:
                print(e)
                exit()
        return self.connection
If you see garbage posts (off-topic, trolling, spam, no point, etc.), use the "report to moderator" links. All reports are investigated, though you will rarely be contacted about your reports.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481249391
Hero Member
*
Offline Offline

Posts: 1481249391

View Profile Personal Message (Offline)

Ignore
1481249391
Reply with quote  #2

1481249391
Report to moderator
1481249391
Hero Member
*
Offline Offline

Posts: 1481249391

View Profile Personal Message (Offline)

Ignore
1481249391
Reply with quote  #2

1481249391
Report to moderator
1481249391
Hero Member
*
Offline Offline

Posts: 1481249391

View Profile Personal Message (Offline)

Ignore
1481249391
Reply with quote  #2

1481249391
Report to moderator
phelix
Legendary
*
Offline Offline

Activity: 1680


nmc:id/phelix


View Profile
July 26, 2011, 11:20:08 AM
 #2

I am very sure there will be no performance benefit from this.

Instaling all the libraries is a big pain in the a** but you can unzip the phoenix.exe with your favorite .zip program. it carries it's own python interpreter and all necessary libraries.

blockchained.com ■ bitcointalk top posts
jedi95
Full Member
***
Offline Offline

Activity: 219


View Profile
July 27, 2011, 03:35:34 PM
 #3

I would like to run the Phoenix python script directly and test if there is any performance benefit to doing so.  After installing Python 3.2 for Windows 7 x64, I run the following commands in the source directory containing phoenix.py and always get the same error:


Phoenix is designed for Python 2.6/2.7. That is most likely the cause of your issue.

Phoenix Miner developer

Donations appreciated at:
1PHoenix9j9J3M6v3VQYWeXrHPPjf7y3rU
deepceleron
Legendary
*
Offline Offline

Activity: 1470



View Profile WWW
August 04, 2011, 07:11:10 AM
 #4

Same problems here, there are no docs about the build versions at all. To get a suitable environment I finally installed:
Python 2.6.6
Python setuptools-0.6c12dev-r85381
Python 2.6 Base-11.5.23
Python 2.6 numpy-1.6.0
Python 2.6 scipy-0.7.1
Python 2.6 Twisted-10.1.0
Python 2.6 zope.interface-3.6.3

Most of those are pre-built here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy

Then I installed boost libraries 1.42 (timedate, python, threads; multithreaded dll), and copied the boost_date_time-vc90-mt-1_42.dll, boost_python-vc90-mt-1_42.dll, and boost_thread-vc90-mt-1_42.dll to the windows\system32 directory

added Python to the path, added a HOME environment variable.

Installed full ATI Stream SDK 2.4.

I then got the pyOpenCL 0.92 (the last version that doesn't complain about kernels using deprecated functions), and built and installed it using MSVC9. Multiple fails to come up with this as my siteconf.py:

BOOST_INC_DIR = [r'C:\Program Files\boost\boost_1_42']
BOOST_LIB_DIR = [r'C:\Program Files\boost\boost_1_42\lib']
BOOST_COMPILER = 'msvc'
BOOST_PYTHON_LIBNAME = ['boost_python-vc90-mt-1_42']
USE_SHIPPED_BOOST = False
CL_TRACE = False
CL_ENABLE_GL = False
CL_INC_DIR = [r'C:\Program Files\AMD APP\include']
CL_LIB_DIR = [r'C:\Program Files\AMD APP\lib\x86']
CL_LIBNAME = ['OpenCL']
CXXFLAGS = ['/EHsc', '/DBOOST_PYTHON_NO_PY_SIGNATURES']
LDFLAGS = ['/FORCE']


Or something like that... with all that, now I can run phoenix source.

 A step-by-step 'how to install python for phoenix.exe' would be many many steps, it would be nice if Jedi95 would just document building, especially how he makes the EXE since I have yet to duplicate the binary he distributes.

phelix
Legendary
*
Offline Offline

Activity: 1680


nmc:id/phelix


View Profile
August 04, 2011, 02:06:35 PM
 #5

I am happy I am not the only one having trouble getting all these libraries installed.

but: did you read my post above? should get you running from script in a minute...

you can then also look through the code and compare it to the source jedi released if you feel like it.

blockchained.com ■ bitcointalk top posts
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!