Comments (13)
I'll fix this once I get the tests updated to work with the new MapQuest API (gh-421).
from elodie.
Looks like upstream tabulate already fixed python > 3.9 issue(s)
from elodie.
diff --git a/requirements.txt b/requirements.txt
index 33f5dbb..8484b21 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -5,5 +5,6 @@ future==0.16.0
configparser==3.5.0
tabulate==0.7.7
Pillow==6.2.2; python_version == '2.7'
-Pillow==8.0; python_version >= '3.6'
+#Pillow==8.0; python_version >= '3.6'
+Pillow==9.3.0; python_version >= '3.6'
six==1.9
from elodie.
Nose (the testing framework used for this project) does not support python 3.10. Fixing these errors and passing tests looks like it requires a larger effort of moving to pytest or similar.
from elodie.
What workaround can/should we use on macos ?
from elodie.
You can download python 3.9 for OSX or use homebrew.
from elodie.
Nose (the testing framework used for this project) does not support python 3.10. Fixing these errors and passing tests looks like it requires a larger effort of moving to pytest or similar.
yikes, just checked into this, options appear to be:
- try version in github (not pypi version) nose-devs/nose#1118 suggests this is worth trying, i.e. pip install with a git url
- move to nose2 https://github.com/nose-devs/nose2 .... which apparently/might requires changing tests, nose (v1) is apparently no longer maintained which is not clear from https://github.com/nose-devs/nose
- move to pytest -- which seems the most practical as a stable target.
It maybe that number 2 is less work but I don't have a good feeling about it (and no hard facts).
refs:
I'm still using unittest/unittest2 for my personal projects but the other runners have much nicer run options.
from elodie.
@jmathai Thanks
I'm getting the following error when using python 3.9:
$ python3.9 ~/elodie/elodie.py
Traceback (most recent call last):
File "/Users/me/elodie/elodie.py", line 9, in <module>
import click
ModuleNotFoundError: No module named 'click'
from elodie.
@gilles6 Did you run pip install -r requirements.txt
?
from elodie.
@jmathai Yes, I did
~/elodie master $ pip install -r requirements.txt
Ignoring Pillow: markers 'python_version == "2.7"' don't match your environment
Requirement already satisfied: click==6.6 in /usr/local/lib/python3.10/site-packages (from -r requirements.txt (line 1)) (6.6)
Requirement already satisfied: requests==2.20.0 in /usr/local/lib/python3.10/site-packages (from -r requirements.txt (line 2)) (2.20.0)
Requirement already satisfied: Send2Trash==1.3.0 in /usr/local/lib/python3.10/site-packages (from -r requirements.txt (line 3)) (1.3.0)
Requirement already satisfied: future==0.16.0 in /usr/local/lib/python3.10/site-packages (from -r requirements.txt (line 4)) (0.16.0)
Requirement already satisfied: configparser==3.5.0 in /usr/local/lib/python3.10/site-packages (from -r requirements.txt (line 5)) (3.5.0)
Requirement already satisfied: tabulate==0.7.7 in /usr/local/lib/python3.10/site-packages (from -r requirements.txt (line 6)) (0.7.7)
Requirement already satisfied: Pillow==9.3 in /usr/local/lib/python3.10/site-packages (from -r requirements.txt (line 8)) (9.3.0)
Requirement already satisfied: six==1.9 in /usr/local/lib/python3.10/site-packages (from -r requirements.txt (line 9)) (1.9.0)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.10/site-packages (from requests==2.20.0->-r requirements.txt (line 2)) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/site-packages (from requests==2.20.0->-r requirements.txt (line 2)) (2022.9.24)
Requirement already satisfied: idna<2.8,>=2.5 in /usr/local/lib/python3.10/site-packages (from requests==2.20.0->-r requirements.txt (line 2)) (2.7)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in /usr/local/lib/python3.10/site-packages (from requests==2.20.0->-r requirements.txt (line 2)) (1.24.3)
$ cd ~/Pictures/test
$ python3.9 ~/elodie/elodie.py input output
Traceback (most recent call last):
File "/Users/me/elodie/elodie.py", line 9, in <module>
import click
ModuleNotFoundError: No module named 'click'
from elodie.
Your pip install -r requirements.txt
is installing the packages for python 3.10. You can see this in the path which is being referenced (Requirement already satisfied: click==6.6 in /usr/local/lib/python3.10/site-packages
).
Try this instead. python3.9 -m pip install -r requirements.txt
from elodie.
Same issue on Python 3.10
Traceback (most recent call last):
File "/home/user/IdeaProjects/elodie/./elodie.py", line 32, in <module>
from elodie.result import Result
File "/home/user/IdeaProjects/elodie/elodie/result.py", line 1, in <module>
from tabulate import tabulate
File "/home/user/IdeaProjects/elodie/venv/lib/python3.10/site-packages/tabulate.py", line 7, in <module>
from collections import namedtuple, Iterable
ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
from elodie.
How to fix working with python 3.9 on ubuntu 22+:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.9
sudo apt install python3.9-distutils
python3.9 -m pip install -r requirements.txt
python3.9 ./elodie.py import --help
from elodie.
Related Issues (20)
- api key generation fails HOT 3
- keywords based dynamic albums HOT 1
- imghdr going away
- Crash on text file NOT containing us-ascii or utf-8 in first line
- feature: able to create symlinks instead of copying
- Calculate checksum of image without EXIF-data
- Unknown Location - invalid AppKey HOT 14
- Support a time offset in addition to absolute time
- ISO 8601 datetime without capitalising the rest of the filename? HOT 1
- Dockerfile no longer resolves to a valid url for Exiftool download
- Dockerfile no longer works with debian:jessie as the base
- Unexpected int returned instead of string from metadata[part] in filesystem.py HOT 1
- Will there be an official Elodie docker image published on the cloud (ie not the Dockerfile) ?
- Elodie not recognizing videos with the .mkv file extension HOT 2
- Feature request: support for NRW and RAF files HOT 1
- config.ini ignored HOT 5
- Hard to tell what the problem is when there's errors importing files HOT 7
- Need to add a test: adding a file which is already in destination
- CircleCI URL for exiftool returns 404
- Use local database for geolocation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elodie.