[Tutor] Python ASTM Implementation
Albert-Jan Roskam
sjeik_appie at hotmail.com
Thu Nov 12 13:19:55 EST 2015
> Date: Thu, 12 Nov 2015 16:53:20 +0530
> From: mokshavivek at gmail.com
> To: tutor at python.org
> Subject: [Tutor] Python ASTM Implementation
>
> Dear All,
>
> We have a Lab Analyzer(Cobas C311), which we want to interface with Pyhton.
> As you might be knowing that clinical lab analyzers use ASTM protocol.
> Python has a an ASTM module <https://pypi.python.org/pypi/astm/0.5.0> , but
> I need help in its implementation. In the first place, to my embarrassment
> I could not install it on Linux Mint 15 with Python 2.7.4.
>
> The following error is coming :
>
>
> > /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
> > distribution option: 'zip_safe'
> > warnings.warn(msg)
> > /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
> > distribution option: 'test_suite'
> > warnings.warn(msg)
> > /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
> > distribution option: 'install_requires'
> > warnings.warn(msg)
> > usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
> > or: setup.py --help [cmd1 cmd2 ...]
> > or: setup.py --help-commands
> > or: setup.py cmd --help
> >
> > error: no commands supplied
> >
>
> And next, cannot figure out how to start. Desperately need your help in
> starting off the coding. I have little experience in Python, but am
> confident that I can pick it up soon if I get help.
>
> If you feel like, you may direct me to some other links where this type of
> codings have been shown with examples of some sort.
Hi,
Maybe it's setuptools that is too old? Or perhaps pip?
sudo apt-get update
sudo apt-get install --only-upgrade python-setuptools python-pip
I believe it's safer to install Python packages via apt-get if you are using the Linux internal Python, rather than using pip.
Albert-Jan
More information about the Tutor
mailing list