Giter Club home page Giter Club logo

Comments (13)

jmathai avatar jmathai commented on June 5, 2024 1

I'll fix this once I get the tests updated to work with the new MapQuest API (gh-421).

from elodie.

clach04 avatar clach04 commented on June 5, 2024

Looks like upstream tabulate already fixed python > 3.9 issue(s)

https://github.com/astanin/python-tabulate/blob/83fd4fb98926c8a6fdf45caa1b91ee8913b64dcb/tabulate/__init__.py#L4

from elodie.

clach04 avatar clach04 commented on June 5, 2024
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.

jmathai avatar jmathai commented on June 5, 2024

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.

gilles6 avatar gilles6 commented on June 5, 2024

What workaround can/should we use on macos ?

from elodie.

jmathai avatar jmathai commented on June 5, 2024

You can download python 3.9 for OSX or use homebrew.

from elodie.

clach04 avatar clach04 commented on June 5, 2024

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:

  1. try version in github (not pypi version) nose-devs/nose#1118 suggests this is worth trying, i.e. pip install with a git url
  2. 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
  3. 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.

gilles6 avatar gilles6 commented on June 5, 2024

@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.

jmathai avatar jmathai commented on June 5, 2024

@gilles6 Did you run pip install -r requirements.txt?

from elodie.

gilles6 avatar gilles6 commented on June 5, 2024

@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.

jmathai avatar jmathai commented on June 5, 2024

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.

patsevanton avatar patsevanton commented on June 5, 2024

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.

webysther avatar webysther commented on June 5, 2024

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)

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.