utahta / pythonbrew

Python Environment manager
MIT License
1.44k stars 162 forks source link

gitclone of nif python for blender installs to a point, then there is a problem #148

Open xander2077 opened 8 years ago

xander2077 commented 8 years ago

forked from https://github.com/niftools/blender_nif_plugin

i got as far as what i typed below and i cant find a workaround or the correct py scripts to go further. the py script "distribute_setup.py" may be broken or incompatible.

~/workspace $ sudo python3 distribute_setup.py
  File "distribute_setup.py", line 1
    <html data-adblockkey="MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMLl0RJYcDS0N2xIgi01rOAcEtvCUTUq+IuNz5PA8eXYsfPLRkgnNehO+NbOZAlLoQnSpB5rXuRxRCTF+T1iU9sCAwEAAQ==_P4HKPfdlPs17DithlJNHihq0Dz+vwaOHi8IvbGikPR0Zx4M+ILMSG5fjT0XxW0Lghu5V/t6mAxnFsk1CJbqRVg==" xmlns="http://www.w3.org/TR/REC-html40">
    ^
SyntaxError: invalid syntax

and when i try to do the following

~/workspace $ sudo python3 get-pip.py
You're using an outdated location for the get-pip.py script, please use the one available from https://bootstrap.pypa.io/get-pip.py

this is only doing as per instructions listed here http://niftools.sourceforge.net/doc/blender_nif_plugin/development/setup.html

now i replaced the get-pip.py with the one they recommended in the warning, but the other one with the html4 gobbledy gook is what has me stumped.

the whole text of the script "distribute_setup.py" is as follows and was that way when i downloaded it from the link on the page i linked above

<html data-adblockkey="MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMLl0RJYcDS0N2xIgi01rOAcEtvCUTUq+IuNz5PA8eXYsfPLRkgnNehO+NbOZAlLoQnSpB5rXuRxRCTF+T1iU9sCAwEAAQ==_P4HKPfdlPs17DithlJNHihq0Dz+vwaOHi8IvbGikPR0Zx4M+ILMSG5fjT0XxW0Lghu5V/t6mAxnFsk1CJbqRVg==" xmlns="http://www.w3.org/TR/REC-html40">
    <head>
    <title>python-distribute.org</title>
    <meta name="keywords" value=""/>
    <meta name="description" content="">
        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
        <script type="text/javascript">
        $(document).ready(function () {
            $('#main').attr('src', "/cf.php");
            $('#main').css('visibility', 'visible');
        });

        if (parent.frames.length > 0)
            top.location.replace(document.location);
        </script>
    </head>
    <frameset rows="100%,*" frameborder="no" border="0" framespacing="0" id="frameset">
    <frame id="main" src="/cf.php"></frame>
    <frame id="sub1" src="bh.php?dm=python-distribute.org&kw=python distribute&tt=9c3450b61b7a89c3f14b0c251e207d61&ty=false" style="visibility: hidden;"></frame>
    </frameset>
</htm

i cant go any further with the install and the nif plugin does not show in blender. i tried other methods of installing as well, like targeting the zip file in blender UI and installing that way, or pasting the appropriate files into their respective folders, but still no plugin. this is really starting to put a hurt on workflow, 3 days now of trying to go on a wild goose chase just to figure out how to install a simple plugin.