Dinnerbone / mcstatus

A Python class for checking the status of an enabled Minecraft server
http://dinnerbone.com/minecraft/tools/status/
1.11k stars 146 forks source link

Problem installing with pip. #19

Closed jmhobbs closed 9 years ago

jmhobbs commented 9 years ago

I just attempted installing with pip, and got a missing module error in setup.py

(env)root@minecraft:/opt/minecraft# pip install mcstatus
Downloading/unpacking mcstatus
  Downloading mcstatus-2.0.zip
  Running setup.py egg_info for package mcstatus
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/opt/minecraft/env/build/mcstatus/setup.py", line 2, in <module>
        from six import PY2
    ImportError: No module named six
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 16, in <module>

  File "/opt/minecraft/env/build/mcstatus/setup.py", line 2, in <module>

    from six import PY2

ImportError: No module named six

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /opt/minecraft/env/build/mcstatus
Storing complete log in /root/.pip/pip.log

I then installed six by itself, and mcstatus installed fine afterwards.

(env)root@minecraft:/opt/minecraft# pip install six
Downloading/unpacking six
  Downloading six-1.8.0.tar.gz
  Running setup.py egg_info for package six

    no previously-included directories found matching 'documentation/_build'
Installing collected packages: six
  Running setup.py install for six

    no previously-included directories found matching 'documentation/_build'
Successfully installed six
Cleaning up...
(env)root@minecraft:/opt/minecraft# pip install mcstatus
Downloading/unpacking mcstatus
  Downloading mcstatus-2.0.zip
  Running setup.py egg_info for package mcstatus

Requirement already satisfied (use --upgrade to upgrade): six in ./env/lib/python2.7/site-packages (from mcstatus)
Downloading/unpacking dnspython (from mcstatus)
  Downloading dnspython-1.12.0.zip (230kB): 230kB downloaded
  Running setup.py egg_info for package dnspython

Installing collected packages: mcstatus, dnspython
  Running setup.py install for mcstatus

  Running setup.py install for dnspython

Successfully installed mcstatus dnspython
Cleaning up...

My python version says 2.7.5+ (not sure what the + is for)

(env)root@minecraft:/opt/minecraft# python --version
Python 2.7.5+

I'm on Ubuntu 14.04.

connorlurring commented 9 years ago

@jmhobbs try doing pip search six and see what results pip shows you

jmhobbs commented 9 years ago
(env)root@minecraft:/opt/minecraft# pip search six
Sixpack                   - A/B testing framework under active development at SeatGeek
six                       - Python 2 and 3 compatibility utilities
  INSTALLED: 1.8.0 (latest)
posix_ipc                 - POSIX IPC primitives (semaphores, shared memory and message queues) for Python
PySixel                   - View full-pixel color graphics on SIXEL-supported terminals(xterm/mlterm/DECterm/Reflection/RLogin/tanasinn)
infi.mountoolinux         - Python library for handling POSIX mounts
prego                     - System test framework over POSIX shells
sixelterm                 - Display JPEG/PNG image with cat command, on some terminals support SIXEL (RLogin/mlterm/tanasinn). Inspired by GateOne.
sixfour                   - base64 Image Encoder and Embedder for HTML, CSS, Markdown, LESS, SASS
flufl.lock                - NFS-safe file locking with timeouts for POSIX systems
Sixpack-client            - Python client for Sixpack, an A/B testing framework under active development at SeatGeek
clom                      - The easiest way to use the command line with Python. Command Line Object Mapper. A library for building POSIX command line arguments, commands, and parameters. Very useful for
                            Fabric tasks.
sixfoh                    - Generates base sixfoh-encoded images for yer websites.
nine                      - Python 2 / 3 compatibility, like six, but favouring Python 3
fallocate                 - Module to expose posix_fallocate(3), posix_fadvise(3) and fallocate(2)
clyent                    - Command line client Library for windwos and posix
py3compat                 - Small Python2/3 helpers to avoid depending on six.
OSExtension               - Extension for os module, for POSIX systems only
plonetheme.solemnity      - An installable theme for Plone 3.0 based on the solemnity theme by Six Shooter Media.
sync-github-forks         - Extension for os module, for POSIX systems only
getent                    - Python interface to the POSIX getent family of commands
locknix                   - NFS-safe file locking with timeouts for POSIX systems.
SysExtension              - Extension for sys module, for POSIX systems only
linkat                    - Python support for the POSIX/Linux functions linkat and symlinkat.
querycontacts             - Query network abuse contacts on the command-line for a given ip address on abuse-contacts.abusix.org
xmlcmd                    - half-baked support for adding --xml support to POSIX commands
django-sixpack            - A django-friendly wrapper for sixpack-py
posix_timers              - Provides access to posix timers (clock_gettime etc.) from Python.
pylibacl                  - POSIX.1e ACLs for python
Flask-Sixpack             - Flask wrapper for Sixpack
esix                      - High level frontend for the e621 JSON API.
sixs                      - 6s Python wrappers
PosixTimeZone             - datetime tzinfo class to hook into the OS timezone libraries
docsix                    - Doctests on Python 2 & 3
classix                   - Declarative way to associate classes with lxml XML elements.
bvcopula                  - Probability and sampling functions for six common seen bivariate copulas
musixmatch                - Package to interface with the Musixmatch API
jsoncmd                   - half-baked support for adding --json support to POSIX commands
micropython-posixpath     - Dummy posixpath module for MicroPython
opendir                   - Implements POSIX opendir
fullChart                 - generate charts (using gdchart) from mosix log files
pdfminer.six              - PDF parser and analyzer
fsnix                     - Expose more advanced posix/file system APIs to Python
AoikSixyIO                - Make Python string encoding and IO code 2*3 compatible, mess-free, and error-proof.
unittest2six              - Meta-package for unittest2 functionality on both Python 2 and Python 3
whs.utils.pyman           - Utility for easy creation of help POSIX man-like pages
aio                       - A CPython extension module wrapping the POSIX aio_* syscalls
astralnetworking          - A very high level gaming network protocol built on top of podsixnet
drop_privileges           - Drop root privileges on a POSIX system.
shm                       - A CPython extension module wrapping the POSIX shm_open and shm_unlink syscalls
(env)root@minecraft:/opt/minecraft# ```

This is after manually installing six with <tt>pip install six</tt> as shown above.

I can create a clean env and attempt to duplicate if you would like me to.
jmhobbs commented 9 years ago

Actually, it looks like commit 7321fef576d6fb5e9405c39d1111fd21eb5698c9 should fix this.