Giter VIP home page Giter VIP logo

Comments (9)

JWCook avatar JWCook commented on June 1, 2024 2

@abubelinha

pyinaturalist 0.10 was the last version that supported python 3.4. You should be able to pip install pyinaturalist and it will install the latest version available for your current python version. If for some reason that doesn't work (for example, if older releases are missing some package metadata), you can manually install the version you want with:

pip install pyinaturalist==0.10

To go back in time and see project info for past versions, you can use the version tags on:

Screenshots for how to get there:

GitHub

Branches/Tags drop-down in the upper left:
2021-06-19 14_12_45-niconoe_pyinaturalist at v0 10 — Mozilla Firefox

Readthedocs

Version drop-down in the lower left (Note: 'stable' is the current stable release, and 'latest' is the development version/main branch):
2021-06-19 14_16_29-pyinaturalist — pyinaturalist 0 13 0 documentation — Mozilla Firefox

PyPI

Release History in the upper left:
2021-06-19 14_12_21-pyinaturalist · PyPI — Mozilla Firefox

from pyinaturalist.

abubelinha avatar abubelinha commented on June 1, 2024 1

Thanks a lot for the recommendations and warnings.
Looks like it is a bad idea, so I think I'll try to avoid using WinXP computers for this.

from pyinaturalist.

abubelinha avatar abubelinha commented on June 1, 2024

I have a machine at work which uses Windows XP 32bit.
Latest Python version for that OS is 3.4
Would it be possible to use pip to install pyinaturalist's latest python-3.4-compatible version?
If so, what's the pip command I should use?

Thanks a lot

from pyinaturalist.

JWCook avatar JWCook commented on June 1, 2024

Would it help if I added a section to the docs that lists the last supported pyinaturalist version for each python version? Or let me know if you have any other suggestions for the documentation.

from pyinaturalist.

abubelinha avatar abubelinha commented on June 1, 2024

Yes, that would be useful.
But you decide it it worths the pain
(because you are really fast answering issues, thanks a lot !!).

from pyinaturalist.

JWCook avatar JWCook commented on June 1, 2024

Added that info here under 'Python version compatibility': https://pyinaturalist.readthedocs.io/en/latest/user_guide.html#installation

from pyinaturalist.

abubelinha avatar abubelinha commented on June 1, 2024

How could I check the installed version of pyinaturalist from my pyinat.py script at runtime, before importing it?

I want to run the script in several machines, some of them with Python 3.8 and some others with 3.4 (so pyinaturalist 0.10)

As import syntax was different in old versions I need the script to know which one to use, so I can adapt it to follow the old doc examples when needed.

from pyinaturalist.

JWCook avatar JWCook commented on June 1, 2024

Some thoughts on this:

  • The previous imports (like from pyinaturalist.node_api import ...) will still work. They will show a DeprecationWarning starting in 0.14, and will eventually be removed in a future release.
  • Windows XP and python 3.4 are ancient history, so it's going to be very hard to support if you run into problems... But I'm sure you already know that! Is there any possibility of installing a modern Linux distro as a dual-boot option, or using a live boot CD, or a VM, or Cygwin, or... anything but XP?
  • If not: besides imports, there have been several changes to behavior since pyinaturalist 0.10, so I wouldn't recommend switching back and forth between versions. It might be better to just stick with 0.10.
  • With 0.10, you may need to use add_photo_to_observation() for uploading photos after create_observation()
  • If you need to, you can check the installed version like this:
    >>> from pyinaturalist import __version__
    >>> print(__version__)
    '0.13.0'

from pyinaturalist.

JWCook avatar JWCook commented on June 1, 2024

Great! I'd like to help support your classroom project if I can, and it will be much easier to make bugfixes, new features, etc. if you're using the latest version.

from pyinaturalist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.