Code Monkey home page Code Monkey logo

Comments (9)

bboe avatar bboe commented on May 18, 2024

Are you sure this is still happening? I fixed this on my dev repo (https://github.com/bboe/reddit_api) earlier. Did you run setup from the git repo or pip install? If the former, then I can see why you had the problem since I haven't checked in the "hack" solution to the primary repository.

from praw.

john2x avatar john2x commented on May 18, 2024

Yeah installed from the git repo. I used pip, but I used the git repo in my requirements.txt file. The tarball should work fine?

EDIT: Just tried the 1.3.0 tarball, but still get the same error. I'll try the older versions later.

from praw.

bboe avatar bboe commented on May 18, 2024

Can you try this tarball? http://packages.crate-cdn.com/7/8/e/7/78e778c710283964252f106be2ff075c35951f649a44e4c53900b0395497d0fa/reddit-1.3.0.tar.gz

from praw.

john2x avatar john2x commented on May 18, 2024

Thanks. I've already installed the 1.2 version on my server, I'll update it later.

I'm having some problems on my production app though. It seems getting a response from the API takes > 2 minutes. I'm using WebFaction as host. Is there a configuration I can change to address this? (I also got the delay while developing on an Ubuntu VM, but it's snappy when I'm testing in Mac OS X)

Sorry for going off topic. I'm not sure where I can ask this, as I don't think it's necessarily an issue. The app is at http://coderedd.net (it's basically r.doqdoq.com but running on Django and using the latest reddit_api).

from praw.

john2x avatar john2x commented on May 18, 2024

Just tried (both on my Mac and on the server) the tarball you provided. I get the following error:

TypeError: unsupported operand type(s) for +: 'HackObj' and 'str'

(full stack trace)

from praw.

bboe avatar bboe commented on May 18, 2024

@john2x Are you trying to create an egg? That is not something I've tried. Can you give me the command you are using with setup.py? As far as your delays with WebFaction, I'm not sure what to tell you. It could just be Reddit-side issues.

from praw.

john2x avatar john2x commented on May 18, 2024

On my server, I typed PYTHONPATH=$HOME/webapps/app_name/lib/python2.7 python2.7 setup.py install --install-lib=$HOME/webapps/app_name/lib/python2.7/ --install-scripts=$HOME/webapps/app_name/bin/. It's for installing in a specific app directory, kind of like in a virtual environment. (WebFaction's instructions)

As for my Mac, I just ran python setup.py install, but I'm installing it in a virtualenv.

Request: Can you put the default contents of reedit_api.cfg in the wiki? I've been trying to find it, but I can't find it in the library's install directory. Maybe my issue with WebFaction can be addressed by api_request_delay setting, but I don't know the default value. :)

from praw.

bboe avatar bboe commented on May 18, 2024

Follow the easy_install instructions rather than the setup.py instructions. Please confirm that it works that way.

Edit: The reddit_api.cfg default file can be found: https://github.com/mellort/reddit_api/blob/master/reddit/reddit_api.cfg

from praw.

bboe avatar bboe commented on May 18, 2024

I removed the hackish solution and no longer import reddit in setup.py thus this should be no problem anymore. Closing the issue.

from praw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.