glidernet / python-ogn-client

A python3 module for the Open Glider Network (OGN)
http://wiki.glidernet.org/
GNU Affero General Public License v3.0
32 stars 21 forks source link

Install failure #19

Closed tobiz closed 7 years ago

tobiz commented 7 years ago

2017-03-17. I tried sudo pip install ogn-client and got:

Downloading/unpacking ogn-client Real name of requirement ogn-client is ogn-client Downloading ogn-client-0.6.0.tar.gz Running setup.py (path:/tmp/pip_build_root/ogn-client/setup.py) egg_info for package ogn-client Traceback (most recent call last): File "", line 17, in File "/tmp/pip_build_root/ogn-client/setup.py", line 6, in from ogn.client.settings import PACKAGE_VERSION ImportError: No module named ogn.client.settings Complete output from command python setup.py egg_info: Traceback (most recent call last):

File "", line 17, in

File "/tmp/pip_build_root/ogn-client/setup.py", line 6, in

from ogn.client.settings import PACKAGE_VERSION

ImportError: No module named ogn.client.settings


Cleaning up... Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/ogn-client Storing debug log for failure in /home/pjr/.pip/pip.log

Meisterschueler commented 7 years ago

I cannot reproduce this error. Did you really just typed "sudo pip install ogn-client" ? Could you provide more informations like OS, Python version, ...?

tobiz commented 7 years ago

Hi,

Yes I really did just type "sudo pip install ogn-client"; that's what I normally do if an item is in pypi. I've not yet investigated getting it from github.

The information you requested is:

I have python 2.7.5-5ubuntu installed.

Other details are:

Operating system: Ubuntu Linux 14.04.1

Kernel and CPU: Linux 3.13.0-113-generic on x86_64

My system is right up to date with the latest fixes etc. as of this email.

I was intending to investigate your s/w for parsing the APRS data rather than using my own code.

If there is any other info you'd like let me know.

Rgds

Peter J Robinson

Email: pjrobinson@metronet.co.uk Sip: tobizlinphone1@sip.linphone.org Sip: tobiz@ekiga.net On 18/03/17 08:44, Meisterschueler wrote:

I cannot reproduce this error. Did you really just typed "sudo pip install ogn-client" ? Could you provide more informations like OS, Python version, ...?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/glidernet/python-ogn-client/issues/19#issuecomment-287526491, or mute the thread https://github.com/notifications/unsubscribe-auth/ADcK2BJpvnj7sb3CGPxJocieLSvzrb2rks5rm5lkgaJpZM4Mglq2.

tobiz commented 7 years ago

Hi,

I tried "pip install ogn-client".

I always try this first with any pypi app so as to check it's found etc. On my system this always fails, I assume because of lack of privilege hence the addition of sudo.

If you can't see anything wrong I'll try to install from github and let you know how I get on.

Rgds

Peter J Robinson

Email: pjrobinson@metronet.co.uk Sip: tobizlinphone1@sip.linphone.org Sip: tobiz@ekiga.net On 18/03/17 08:40, Meisterschueler wrote:

Please try just "pip install ogn-client". This should work.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/glidernet/python-ogn-client/issues/19#issuecomment-287526268, or mute the thread https://github.com/notifications/unsubscribe-auth/ADcK2B2txz5c47A2IXICwfm4ONW-MwWlks5rm5iLgaJpZM4Mglq2.

tobiz commented 7 years ago

Hi,

I just thought!

Since I get on running sudo pip install ogn-client:

"from ogn.client.settings import PACKAGE_VERSION

ImportError: No module named ogn.client.settings"

Could it be that on you machine you already have "ogn.client.settings" whereas I don't. Therefore on your machine the pip works but on mine it won't. If this is the case then it suggests ogn.client.settings is missing from the package on pypi.

Have you tried the pip install on a machine (or environment) that's 'clean'?

Just a thought.

Peter J Robinson

Email: pjrobinson@metronet.co.uk Sip: tobizlinphone1@sip.linphone.org Sip: tobiz@ekiga.net On 18/03/17 08:40, Meisterschueler wrote:

Please try just "pip install ogn-client". This should work.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/glidernet/python-ogn-client/issues/19#issuecomment-287526268, or mute the thread https://github.com/notifications/unsubscribe-auth/ADcK2B2txz5c47A2IXICwfm4ONW-MwWlks5rm5iLgaJpZM4Mglq2.

Meisterschueler commented 7 years ago

Hi Peter,

thanke you for the informations. You are using python 2.7, but ogn-client needs python3.

Best regards Konstantin

tobiz commented 7 years ago

Hi Konstantin

I did think this might be the issue when I looked at the pypi package data a while ago.

I might try and build as 2.7 or convert it to 2.7 and see if I can use it.

I'm surprised pip doesn't pick this up as a defined error - would make life so much easier!

Thanks for sorting this out.

Rgds

Peter J Robinson

Email: pjrobinson@metronet.co.uk Sip: tobizlinphone1@sip.linphone.org Sip: tobiz@ekiga.net On 18/03/17 13:07, Meisterschueler wrote:

Hi Peter,

thanke you for the informations. You are using python 2.7, but ogn-client needs python3.

Best regards Konstantin

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/glidernet/python-ogn-client/issues/19#issuecomment-287545300, or mute the thread https://github.com/notifications/unsubscribe-auth/ADcK2LqViDgoy8HFrDleWk_WC-mrrJ9nks5rm9cGgaJpZM4Mglq2.