omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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.


    Stash ProtocolError installing modules

    Pythonista
    7
    10
    10416
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • daro
      daro last edited by

      Hello everyone,

      I'm just beginning with Pythonista 3.
      I'm trying to install a external module in order to learn the process, but I have no luck. I could install Stash successfully (I guess), but when I try to install a module I get an error:

      [~/Documents]$ pip install dropbox
      Querying PyPI ...
      stash: <class 'xmlrpc.client.ProtocolError'>: <ProtocolError for pypi.python.org/pypi: 403 Must access using HTTPS instead of HTTP>
      

      I get the same error if I try pip search something.

      Am I missing something?

      1 Reply Last reply Reply Quote 0
      • JonB
        JonB last edited by

        I will out in a pull request tonight, but in the meantime, on line 781 of Modules and Packages/site-packages/stash/pip.py, change http to https

                self.pypi = xmlrpclib.ServerProxy('https://pypi.python.org/pypi')
        

        for the record, pythonista comes with dropbox 6.4.0 pre installed, so no reason to use pip install for that one, though pythonista does not include the examples folder.

        1 Reply Last reply Reply Quote 0
        • daro
          daro last edited by

          Thank you JonB! I know Dropbox is already installed, but I wanted to try something that should work (my first try was flickr).

          I found the file in Modules and Packages/site-packages/stash/bin/pip.py, made the change and now it is working!

          Thanks again!

          1 Reply Last reply Reply Quote 0
          • kldwave
            kldwave last edited by

            I had the same error message when I tried to install pandas via stash. And now the installation was done successfully with your solution above. Thank you.

            Webmaster4o 1 Reply Last reply Reply Quote 0
            • Webmaster4o
              Webmaster4o @kldwave last edited by

              @kldwave No it wasn't ;) You can't get Pandas on Pythonista. 🚫🐼🐍🚫

              1 Reply Last reply Reply Quote 0
              • kldwave
                kldwave last edited by

                True. I thought it was. but after that when I tried import pandas, l got the error as follows:

                import pandas as pd
                Traceback (most recent call last):
                File "<string>", line 1, in <module>
                File "/private/var/mobile/Containers/Shared/AppGroup/C300EF64-626E-4713-97EF-6D1A5F07BBE8/Documents/site-packages/pandas/init.py", line 31, in <module>
                "extensions first.".format(module))
                ImportError: C extension: hashtable not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --inplace' to build the C extensions first.

                I cannot solve this. Is it impossible to install pandas correctly on python it's? Pls advise.

                1 Reply Last reply Reply Quote 0
                • kldwave
                  kldwave last edited by

                  I meant last line "pythonista".

                  1 Reply Last reply Reply Quote 0
                  • ccc
                    ccc last edited by

                    Using @dgelessus cool "languages in a repo" trick, we can now see that 3.5% of Pandas is C or C++ code. Given Apple's rules, that means that @omz would need to get that code to compile and then add it into Pythonista for you to have a complete Pandas in Pythonista.

                    1 Reply Last reply Reply Quote 1
                    • zhunsake
                      zhunsake last edited by

                      @omz I have seen other questions about pandas, and in another thread I mentioned I would pay an inapp-purchase to see pandas functionality, or donate via another method. I understand if that isn't something that you want to tackle in the near future or even ever, but could you let us know that so we can move on with our lives on this? Because of the c code in pandas you would be the only one that can make this happen. I really appreciate all the work you have done on this app and I use it on a daily basis. I think we would all just like to know if this is even a possibility. Thank you again for all your work.

                      plessner 1 Reply Last reply Reply Quote 1
                      • plessner
                        plessner @zhunsake last edited by

                        @zhunsake said:

                        @omz I have seen other questions about pandas, and in another thread I mentioned I would pay an inapp-purchase to see pandas functionality, or donate via another method. I understand if that isn't something that you want to tackle in the near future or even ever, but could you let us know that so we can move on with our lives on this? Because of the c code in pandas you would be the only one that can make this happen. I really appreciate all the work you have done on this app and I use it on a daily basis. I think we would all just like to know if this is even a possibility. Thank you again for all your work.

                        I second that! I am not a big fan of in app purchases, but since pandas (and other packages that have C extensions) may only appeal to a subset of the Pythonista community, it is justified.

                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post
                        Powered by NodeBB Forums | Contributors