cthuun / python-xbee

Automatically exported from code.google.com/p/python-xbee
MIT License
1 stars 0 forks source link

XBee-1.9.0, setup.py auto tests do not run #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. cd XBee-1.9.0
2. python setup.py install
3.

What is the expected output? 

  test scripts would auto run after install without err. 

What do you see instead?

Traceback (most recent call last):
  File "setup.py", line 2, in <module>
    from distutils_extensions import TestCommand, build_py
ImportError: No module named distutils_extensions

What version of the product are you using? On what operating system?
installed: xbee-1.9.0
installed: python 2.6 
installed: nose-0.11.4 
os:        xp sp3

Please provide any additional information below.

edited the setup.py to remark out 'from distutils_extensions..." and 'cmdclass' 
so the setup installed the new ver, just didn't auto run the test scripts.

docs.python.org, 11.API reference — Core Distutils functionality shows
distutils.extensions spelled distutils.extension. 

Original issue reported on code.google.com by G2subsPstLC@gmail.com on 14 Jul 2010 at 11:44

GoogleCodeExporter commented 9 years ago
I could not reproduce this issue. (distutils_extensions is a module included in 
the source tree, not a typo)

Steps:
 Check out latest code to xbee/
 cd xbee/
 python setup.py test
 python setup.py install

Enviroment:
 Windows XP Media Center Edition, SP2
 Python 2.6.5
 nose-0.11.3

Original comment by pmalms...@gmail.com on 4 Aug 2010 at 8:01

GoogleCodeExporter commented 9 years ago
Oops, my mistake. This file is not properly included in the source distribution 
generated by "python setup.py sdist". 

This will be fixed in the next release.

Original comment by pmalms...@gmail.com on 11 Aug 2010 at 11:33

GoogleCodeExporter commented 9 years ago
Fixed as of version 1.9.1

Original comment by pmalms...@gmail.com on 12 Aug 2010 at 5:57

GoogleCodeExporter commented 9 years ago
Am facing the same problem 

am using XBee-2.0.0
python 2.7
windows 7

i extracted the file in the folder that i installed the python in. then i 
copied the setup.py file out of the folder the ran it.

result:

Traceback (most recent call last):
  File "C:\Python27\setup.py", line 2, in <module>
    from distutils_extensions import TestCommand, build_py
ImportError: No module named distutils_extensions

i dont know what i did wrong or what to do to fix it !!?

Original comment by shadi.sh...@gmail.com on 22 Dec 2011 at 12:04

GoogleCodeExporter commented 9 years ago
You can't move the setup.py file out of the source tree; it needs the files 
directly around to it. To install properly, do the following:

1) Extract XBee-2.0.0 somewhere
2) Open a command prompt
3) In the command prompt, change directory (cd) to where you extracted the 
files in 1)
4) Run python setup.py install (python must be on your path to do this)

That's it. You should now be able to do "import xbee" from within a python 
script.

Original comment by pmalms...@gmail.com on 23 Dec 2011 at 8:12