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.


    Time to update python to the latest version?

    Pythonista
    update
    7
    28
    19778
    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.
    • ?
      A Former User @JonB last edited by A Former User

      @JonB Thx. But some modules like matplotlib 3.0 which are not pure python modules. So it is still a problem. I hope omz would update these modules and python soon. By the way asyncio had some bugs when the network is unstable.

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User @JonB last edited by A Former User

        @JonB I installed chardet in site-package-3, but it seems it did not take precedence over the pre-installed version.

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

          Did you force quit pythonista?

          Try this:
          from stash:
          ls ~/Documents/site-packages-3/chardet

          next, in console:

          import sys, chardet
          del sys.modules['chardet']
          import chardet
          print(chardet.__file__)
          

          next:

          import sys
          print(sys.path)
          
          ? 1 Reply Last reply Reply Quote 0
          • ?
            A Former User @JonB last edited by

            @JonB How to set module path with code? Like
            sys.modules['chardet'] = 'site-package-3/chardet'

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

              please run the above code, and we will see if chardet was installed, and if not, we can get into why not. the sys path should already be set

              ? 1 Reply Last reply Reply Quote 0
              • ?
                A Former User @JonB last edited by

                @JonB I just del sys.modules[name], then I reinstall the modules using stash. Now it works.

                1 Reply Last reply Reply Quote 0
                • ?
                  A Former User last edited by

                  @omz Welcome back! Any plans about updating modules or python?

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

                    Hello! Im having the same or a similar issue with requests/chardet/idna dependencies. I tried deleting chardet and restart the app, but my stash seems ”stuck” when I try to reinstall the package (or doing any other operation for that matter). All I get is ”No module named chardet”, even when I run pip install simplegist (as a simple, seemingly unrelated example?)

                    Any ideas?

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