Bitcoin Forum
May 07, 2024, 01:11:40 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How do I run the Phoenix miner script directly in Windows 7 x64?  (Read 2167 times)
MegaBux (OP)
Newbie
*
Offline Offline

Activity: 31
Merit: 0


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 want to be a moderator, report many posts with accuracy. You will be noticed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715044300
Hero Member
*
Offline Offline

Posts: 1715044300

View Profile Personal Message (Offline)

Ignore
1715044300
Reply with quote  #2

1715044300
Report to moderator
1715044300
Hero Member
*
Offline Offline

Posts: 1715044300

View Profile Personal Message (Offline)

Ignore
1715044300
Reply with quote  #2

1715044300
Report to moderator
phelix
Legendary
*
Offline Offline

Activity: 1708
Merit: 1019



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.
jedi95
Full Member
***
Offline Offline

Activity: 219
Merit: 120


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: 1512
Merit: 1028



View Profile WWW
August 04, 2011, 07:11:10 AM
Last edit: August 04, 2011, 08:48:34 PM by deepceleron
 #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: 1708
Merit: 1019



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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!