Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help needed #106

Open
robbedewin opened this issue Jan 8, 2023 · 3 comments
Open

Help needed #106

robbedewin opened this issue Jan 8, 2023 · 3 comments

Comments

@robbedewin
Copy link

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
Copy link
Contributor

lowtower commented Jan 9, 2023

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
Copy link
Author

Thanks, that resolved the issue!

@x-ray78
Copy link

x-ray78 commented Jan 11, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants