aarongarrett / inspyred

Python library for bio-inspired computational intelligence
MIT License
187 stars 58 forks source link

Can't pip install in Python 3 #2

Closed metakermit closed 10 years ago

metakermit commented 10 years ago

Your README states that you support Python 3+, but I am experiencing errors installing the package.

(s3)➜  trunk  pip install inspyred
Downloading/unpacking inspyred
  Downloading inspyred-1.0.tar.gz (80kB): 80kB downloaded
  Running setup.py egg_info for package inspyred
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/home/kermit/.virtualenvs/s3/build/inspyred/setup.py", line 6, in <module>
        import paver.tasks
      File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
      File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
      File "paver-minilib.zip/paver/tasks.py", line 69
        print output
                   ^
    SyntaxError: invalid syntax
aarongarrett commented 10 years ago

From user Amir Meshkat:

I am using Python 3.33 64-bit on a windows7 machine: Installing Inspyred package on Python 3+, via the pip or source code was impossible, and there was a simple solution! I have just replaced the paver-minilib.zip with a compatible version in the source files and I think you should know about this issue. https://github.com/rkruppe/paver/blob/python3/paver-minilib.zip

In the next release, I will make this change to the installation. Until then, I think this should solve the problem.

Jacob-Barhak commented 10 years ago

Regardless of this specific incident, Is the issue with pip install? or is it with some dependency?

If this is with pip install, why not create a conda installer through BinStar?

If there is interest, I will be happy to help.

saulshanabrook commented 10 years ago

@inspyred What do I need to do to be able to pip install inspyred on Python 3?

aarongarrett commented 10 years ago

Did you see the earlier post with Amir Meshkat's solution? Did replacing the paver-minilib.zip file work for you?

saulshanabrook commented 10 years ago

Where and how do I replace paver-minilib.zip?

aarongarrett commented 10 years ago

Oh, I understand your confusion. When you try to use pip, it pulls the gzip archive from PyPI (https://pypi.python.org/packages/source/i/inspyred/inspyred-1.0.tar.gz#md5=f1ed3898ec0056a950a6b54e04f0b8b4). If you just download that file directly and open the archive, you'll see the paver zip file inside. Extract that archive to some directory (really doesn't matter where), replace the paver zip file with the one Amir suggests, and then run the setup.py script from that directory. That should install it correctly for you.

saulshanabrook commented 10 years ago

Ah thanks. Is it possible to release a new version on PyPI with the updated paver file?

On Mon, May 5, 2014 at 3:23 PM, inspyred notifications@github.com wrote:

Oh, I understand your confusion. When you try to use pip, it pulls the gzip archive from PyPI ( https://pypi.python.org/packages/source/i/inspyred/inspyred-1.0.tar.gz#md5=f1ed3898ec0056a950a6b54e04f0b8b4). If you just download that file directly and open the archive, you'll see the paver zip file inside. Extract that archive to some directory (really doesn't matter where), replace the paver zip file with the one Amir suggests, and then run the setup.py script from that directory. That should install it correctly for you.

— Reply to this email directly or view it on GitHubhttps://github.com/inspyred/inspyred/issues/2#issuecomment-42227256 .

aarongarrett commented 10 years ago

Yes, and I will when I release the next version (likely August). I assume you don't want to wait for that.

Aaron Garrett, Ph.D. Assistant Professor Computer Science 131 Ayers Hall Jacksonville State University Jacksonville, AL 36265 agarrett@jsu.edu 256-782-5364

On Mon, May 5, 2014 at 2:25 PM, Saul Shanabrook notifications@github.comwrote:

Ah thanks. Is it possible to release a new version on PyPI with the updated paver file?

On Mon, May 5, 2014 at 3:23 PM, inspyred notifications@github.com wrote:

Oh, I understand your confusion. When you try to use pip, it pulls the gzip archive from PyPI (

https://pypi.python.org/packages/source/i/inspyred/inspyred-1.0.tar.gz#md5=f1ed3898ec0056a950a6b54e04f0b8b4).

If you just download that file directly and open the archive, you'll see the paver zip file inside. Extract that archive to some directory (really doesn't matter where), replace the paver zip file with the one Amir suggests, and then run the setup.py script from that directory. That should install it correctly for you.

— Reply to this email directly or view it on GitHub< https://github.com/inspyred/inspyred/issues/2#issuecomment-42227256> .

— Reply to this email directly or view it on GitHubhttps://github.com/inspyred/inspyred/issues/2#issuecomment-42227506 .

phantomas1234 commented 9 years ago

Hi @aarongarrett, I'd love to use inspyred under python 3.4. Any chance you could release a new version?

aarongarrett commented 9 years ago

I think so. Let me work on it.

On Mon, Mar 30, 2015 at 2:59 PM Nikolaus Sonnenschein < notifications@github.com> wrote:

Hi @aarongarrett https://github.com/aarongarrett, I'd love to use inspyred under python 3.4. Any chance you could release a new version?

— Reply to this email directly or view it on GitHub https://github.com/aarongarrett/inspyred/issues/2#issuecomment-87809838.

ameshkat commented 9 years ago

Hello this is Amir Unfortunately the previous link to paver-minilib.zip is not valid any more :( But you could find another version here : https://github.com/paver/paver/blob/master/paver-minilib.zip?raw=true