Comments (9)
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.
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.
Can you try this tarball? http://packages.crate-cdn.com/7/8/e/7/78e778c710283964252f106be2ff075c35951f649a44e4c53900b0395497d0fa/reddit-1.3.0.tar.gz
from praw.
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.
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'
from praw.
@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.
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.
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.
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)
- `DuplicateReplaceException` being raised unexpectedly HOT 6
- Reddit API returns HTTP 777 responses during outages 🤪 HOT 5
- Unable to get flairs in a subreddit HOT 2
- Docs: Font color of method names is unreasonably white on a white background when using dark theme HOT 4
- submission.comment_sort not working with replace_more HOT 3
- I can't upload any video or image into reddit. HOT 6
- Issue with Rate limits causing fatal error HOT 3
- Modmail Conversations throw a TypeError when issuing a reply HOT 13
- `resubmit=False` started resubmitting Jul 24 2023 HOT 4
- Support adding text on all post types HOT 10
- Subreddits whose flairs are "Not available for this community" return 403 HOT 4
- Check Subreddit Supported Post Types HOT 4
- Support for new reddit share link HOT 7
- Throw rate limit exception when wait time is greater than X seconds HOT 16
- Missing scope "modnote" in Reddit OAuth2 Scopes documentation HOT 4
- 404 for submission.mod.undistinguish() HOT 2
- How to check if post contains video HOT 3
- Praw submit_image/submit_video with websockets failing as of 3:06 pm Central on Sep. 29, 2023 HOT 27
- subreddit.hot() has no time_filter option HOT 1
- `reddit.subreddits.popular()` yields `Iterator[Unknown]`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from praw.