I followed your instructions, but it still doesn't work. When trying to import aiohttp
it fails in the __init__.py
file. It looks like it tries to import other parts of the library with from .<something> import *
, but it isn't working. The exact message it gives is name 'client' is not defined
. Pythonista says the error is on line 38, but I think it's actually line 29.
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Posts made by Ivoah
-
RE: Discord.py
-
RE: Discord.py
Has anyone made any progress on this? I've been trying for the last hour to get discord.py working on the latest Pythonista beta (3.1.1), but haven't had much luck. Currently I'm stuck on getting aiohttp to work. A little bit of googling shows that at one point pythonista beta had aiohttp built in (https://forum.omz-software.com/topic/4456/ui-and-aiohttp), but that doesn't seem to be the case anymore. I was able to install aiohttp using pip from stash, but it seems the imports are messed up, with python complaining about not being able to find parts of the library.
-
RE: XKCD viewer
Bumpity bump. I've added quite a few features since my last post, including image caching, searching comics, share sheet, and directly opening explainxkcd.com. I think it can actually compete with other xkcd viewer apps now :D You can find it in pythonista tools under the "Fun" category.
-
XKCD viewer
I spent part of today messing with the UI module, and ended up making an XKCD comic viewer. I may add more features to this in the future, but for now I'm calling it done. You can install it for yourself using the excellent Pythonista Tools, or download it from my GitHub repo
Comments and suggestions are welcome :)
-
RE: Today Widget: Get print() working
Just using
print('blah')
worked for me. Your simple example also worked. Are you sure you set the right script in Pythonista's settings? -
RE: Python 3.x Progress Update
@Tizzy said:
Is there a way to print out how much memory your script is using?
You might want to take a look at the resource module
-
RE: Python 3.x Progress Update
I just messed around with the new beta, and the today widget is great! I also love the new icon, I wasn't a fan of using the python logo, and really like that you switched back to the old style. As a quick test I changed the calculator example to run from the today widget and it worked fine, so that's nice :) one suggestion I have is the ability to remove the play button from the widget. It takes up the entire column, and makes the view not be centered.
-
RE: [Suggestion] speeding up print
I ran into this issue when making an ascii movie viewer, and I resorted to using a scene view, and plastering my text there.
-
RE: MicroPython
If you don't want the board, I know someone who might *coughmyselfcough* ;)
-
MicroPython
Sorry if this is too off topic, but I figured some people here might be interested in this. (disclaimer: I am not related to this project, I just think it's awesome)
MicroPython is a tiny python 3 interpreter designed to run on microcontrollers. Recently, the creators ran a Kickstarter campaign to port it to the ESP8266, a wildly popular wifi development chip. The kickstarter was successful, and the code is being made opensource, so even if you didn't back the project, you can still download and compile the code yourself. https://www.kickstarter.com/projects/214379695/micropython-on-the-esp8266-beautifully-easy-iot -
RE: WebIDE
Yeah, I'm pretty sure OS X has the ability to mount an FTP server like a flash drive natively. Anyways, it should be pretty trivial to make an FTP server in Pythonista, using something like this: python ftp server example
-
Pythonista IRC channel
I registered the channels #pythonista and ##pythonista on Freenode, so come by and chat.
@omz if you have IRC I'll turn the channels over to you, just pm me or something. -
RE: WebIDE
The first link you posted is a program that requires something to be installed on the computer, where's mine is browser based, just like AirCode. The second just ends up pointing back to the first, so what was the point of them?
-
WebIDE
The other day I was going to work on a program on my iPad, while sitting next to my laptop. It seemed silly to be writing on an on-screen keyboard when I had a nice keyboard right next to me. Codea has a feature called AirCode, which starts up a web server on the iPad which lets you connect using a computer and write code in a browser and save it to the iPad when you're done. I made something like this using bottle for Pythonista. It doesn't work on my iPad because I have an old version of Pythonista (my iPad can only run iOS 5.1.1), but I have tested it on an iPod with the latest version of Pythonista. If anyone has any suggestions or bug reports, I'd be glad to hear them. Also, if anyone has any idea why it doesn't work on old Pythonista, I'd really appreciate help.
GitHub project here: https://github.com/Ivoah/WebIDE