flopp / GpxTrackPoster

Create a visually appealing poster from your GPX tracks
MIT License
429 stars 51 forks source link

Help needed #106

Open robbedewin opened 1 year ago

robbedewin commented 1 year ago

Dear,

I'm not very skilled in programming, but did my best to try to understand this.

After a long time I managed to clone repository and set it up. However i keep returning the error: "AttributeError: module 'pint' has no attribute 'quantity'. Did you mean: 'Quantity'?". And not getting any output.

I tried my best to see where it went wrong, but couldnt find it.

If you could help me that would be wonderful.

Note: i cloned repository in visual study code, then set it up with "source venv\Scripts\activate.bat" instead of "source venv/bin/activate" then created a folder in the repository with all my gpx files retrieved from strava

lowtower commented 1 year ago

Hello @robbedewin,

it seems like the code base of "pint" has changed since the latest commit to this repository. A specific version of pint is not required in the requirements.txt file - so the latest version is taken, which is 0.20.1 A version prior to 0.20 is needed for "GpxTrackPoster" to work properly. In the file requirements.txt file change line 5 from pint to pint<0.20

Nevertheless, this repo should be updated to adopt the changes in the pint library. Some work has already been done by @sikmir in #105.

Cheers, Lowtower

robbedewin commented 1 year ago

Thanks, that resolved the issue!

x-ray78 commented 1 year ago

I have the same error message on my M1 MacBook. With the posted hint to change to pint<0.20 in the requirements.txt it runs without errors.

On my Intel MacBook, in the same configuration it still works with print – Can there be a correlation with the CPUs?