0

Based on my app I need the django-microblogging==0.2.dev1 package, but when I put that in requirements.txt, it can't find this particular version.

And when I use the version it can find (an older version), I get errors with my application and I believe it's due to this older version.

I was able to google the 0.2.dev1 version and downloaded the source which I found here: http://dist.pinaxproject.com/dev/django-microblogging/

I untarred it and put the following in my requirements.txt file: -I ./django-microblogging-0.2.dev1

But now I'm getting the following error message:

ValueError: ('Expected version spec in', '-I ./django-microblogging-0.2.dev1', 'at', ' ./django-microblogging-0.2.dev1')

I have also tried -I ./django-microblogging-0.2.dev1 == 0.2.dev1

Does anyone have any idea how I can correct this error? It's totally stumping me.

4

1 に答える 1

1

Update

The issue seems to be the failure to uninstall old django-microblogging-0.1.2 from virtualenv in heroku. Tried the method in https://stackoverflow.com/a/9463068/165603 to uninstall the previous version and it seems to work.

In particular the command used was:

heroku config:add BUILDPACK_URL=git@github.com:heroku/heroku-buildpack-python.git#purge

Try to put

django-microblogging-0.2.dev1.tar.gz
# or
path_to/django-microblogging-0.2.dev1.tar.gz

in requirements.txt directly. When you use relative path, it should be relative to the directory inside which you're running the pip.

Also, you could use

django-microblogging==0.2.dev1
于 2012-05-20T14:00:10.370 に答える