Skip to content

Commit

Permalink
Merge pull request #241 from zooniverse/fix-open-Umode
Browse files Browse the repository at this point in the history
Remove deprecated U mode in file open
  • Loading branch information
lcjohnso authored Jan 30, 2023
2 parents 4fe8af5 + 70f94ae commit 5a1d1e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ the API behind [the Zooniverse](https://www.zooniverse.org/).
## Installation

The Panoptes CLI is written in Python, so in order to install it you will need
to install either Python 2 or Python 3, along with `pip`. macOS and Linux
already come with Python installed, so run this to see if you already have
everything you need:
to install Python 3 along with `pip`. Please note: while still compatible with
Python 2.7, we have ended support for use of the CLI with this deprecated version.
macOS and Linux already come with Python installed, so run this to see if you
already have everything you need:

```
$ python --version && pip --version
Expand All @@ -17,7 +18,8 @@ $ python --version && pip --version
If you see an error like `python: command not found` or `pip: command not found`
then you will need to install this:

- [Python installation](https://wiki.python.org/moin/BeginnersGuide/Download)
- [Python installation](https://wiki.python.org/moin/BeginnersGuide/Download)
(or [Miniconda installation](https://docs.conda.io/en/latest/miniconda.html))
- [Pip installation](https://pip.pypa.io/en/stable/installing/)

Once these are installed you can just use `pip` to install the latest release of
Expand Down
2 changes: 1 addition & 1 deletion panoptes_cli/commands/subject_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def get_index_fields(headers):
if not resumed_upload:
subject_rows = []
for manifest_file in upload_state['manifest_files']:
with open(manifest_file, 'U') as manifest_f:
with open(manifest_file) as manifest_f:
file_root = os.path.dirname(manifest_file)
r = csv.reader(manifest_f, skipinitialspace=True)
headers = next(r)
Expand Down

0 comments on commit 5a1d1e0

Please sign in to comment.