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.
@syslot You need to install version 1.3.1. I found in version 1.4.0 some dependencies use C extensions.
@plessner well, I have tried to install 1.3.1 and it cant work as well.how do you install the package?
@syslot You need to make sure the dependencies are installed:
What type of error do you get when you import agate from the console?
syslot last edited by syslot
@plessner I tried again and found
- parsedatetime == 1.3 and pip can not update it
and my import message shows below:
Traceback (most recent call last): File "<string>", line 1, in <module> File "/private/var/mobile/Containers/Shared/AppGroup/A5C76122-1A94-4EAD-8BA3-00973FBFAE31/Pythonista3/Documents/site-packages/agate/__init__.py", line 5, in <module> from agate.aggregations import * File "/private/var/mobile/Containers/Shared/AppGroup/A5C76122-1A94-4EAD-8BA3-00973FBFAE31/Pythonista3/Documents/site-packages/agate/aggregations/__init__.py", line 18, in <module> from agate.aggregations.base import Aggregation # noqa File "/private/var/mobile/Containers/Shared/AppGroup/A5C76122-1A94-4EAD-8BA3-00973FBFAE31/Pythonista3/Documents/site-packages/agate/aggregations/base.py", line 8, in <module> @six.python_2_unicode_compatible AttributeError: 'module' object has no attribute 'python_2_unicode_compatible'
Have you tried in Pythonista?
Well , after I reinstall six, Babel and parsedatetime , agate works ! Thank you and let me try it. By the way , @administrators if Pandas works, I would be more than happy!
There is some error messages, but it seems to work though.
[~/Documents]$ pip install agate==1.3.1 Querying PyPI ... Downloading package ... Opening: https://pypi.python.org/packages/c0/75/7a4749bb393846adb58bad5044fb8f32738def6c0d5a2bc7f46180f45582/agate-1.3.1.tar.gz Save as: /private/var/mobile/Containers/Data/Application/52EA8FD6-BB50-4C62-ABA3-F42811E351EC/tmp/agate-1.3.1.tar.gz (42626 bytes) 42626 [100.00%] Extracting archive file ... Archive extracted. Running setup file ... Package installed: agate Dependency already installed: six Dependency already installed: pytimeparse Dependency already installed: parsedatetime Installing dependency: Babel>=2.0 Querying PyPI ... Error: No matches found: Babel>=2.0```
@plessner Hi, plessner, I have found another problem . agate (version 1.3.1) dose not support xls. It's a little pity
@korakot Yeah, I got the same message. Had to install Babel separately via pip and then things worked.
I install Babel via pip too. It's funny that I can import babel but pip itself doesn't seem to find Babel 2.0 as a dependency. Hope nothing break though.
What about agate 1.4 ? It seems to require slugify. Or does it require other c-based dependency?
@korakot Slugify requires regex (which is an enhanced replacement for the standard library re). Regex has C dependencies.
@plessner Thanks for your answer.
It's unfortunate that we can't use agate 1.4, I am taking its latest tutorial (1.4.1) though. It seems to have more detail tutorial, but I found one example doesn't work with 1.3.1.
coomlata1 last edited by coomlata1
I tried to install agate 1.3.1 in pythonista 2.1 using stash but I get an error with "stash: <class '_main.PyPiError'>: 'No package found with that name'. I can install agate 1.2.0 without errors and I can at least get an attempt to install 1.4 but, as noted above, it errors out, due to dependencies. I searched in the PyPi index and could not find agate 1.3.1 listed. Earlier versions prior to 1.2.0 are listed as well as 1.2.0 and 1.4.0 but no 1.3.1.
Finally gave up on pip install and ended up manually installing agate 1.3.1 with stash using the URL from an earlier post in this thread by @korakot: https://pypi.python.org/packages/c0/75/7a4749bb393846adb58bad5044fb8f32738def6c0d5a2bc7f46180f45582/agate-1.3.1.tar.gz .
@syslot There is an agate-excel extension. https://github.com/wireservice/agate-excel
I haven't used it or tried to install it. So let me know if you get it to work.
ywangd last edited by
@plessner I have already tried and agate-excel worked. thank you
zhunsake last edited by
I would even be willingn to do an in-app purchase of $20 or so for pandas. it is the one thing missing for me in this amaazing app. keep up the awesome work!
@ywangd Thanks for the update. I am new to Pythonista and Stash. I really appriciate how Stash helps with everything.
ccc last edited by
This link means that only @omz has the power to add Pandas to Pythonista. I believe that he has been silent on the topic.
avdempsey last edited by
@zhunsake I'd happily pay extra for a pandas add-on as well!
snowch last edited by
+1 for pandas