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

Support Python 3 #7

Closed
justinbass opened this issue May 10, 2018 · 5 comments
Closed

Support Python 3 #7

justinbass opened this issue May 10, 2018 · 5 comments
Labels

Comments

@justinbass
Copy link
Collaborator

justinbass commented May 10, 2018

Needed since Python 2 is being EOL'd soon.

@Wikinaut
Copy link

Wikinaut commented May 15, 2018

@justinbass What are the exact steps to get the github code running? It's not mentioned in the README.md.

@Wikinaut
Copy link

For your information, these are the locations of the version which I installed with sudo pip3 install colorsafe:

sudo pip3 uninstall colorsafe
Uninstalling colorsafe-0.1.0.dev5:
  /usr/local/bin/colorsafe
  /usr/local/lib/python3.6/dist-packages/colorsafe-0.1.0.dev5.dist-info/DESCRIPTION.rst
  /usr/local/lib/python3.6/dist-packages/colorsafe-0.1.0.dev5.dist-info/INSTALLER
  /usr/local/lib/python3.6/dist-packages/colorsafe-0.1.0.dev5.dist-info/METADATA
  /usr/local/lib/python3.6/dist-packages/colorsafe-0.1.0.dev5.dist-info/RECORD
  /usr/local/lib/python3.6/dist-packages/colorsafe-0.1.0.dev5.dist-info/WHEEL
  /usr/local/lib/python3.6/dist-packages/colorsafe-0.1.0.dev5.dist-info/entry_points.txt
  /usr/local/lib/python3.6/dist-packages/colorsafe-0.1.0.dev5.dist-info/metadata.json
  /usr/local/lib/python3.6/dist-packages/colorsafe-0.1.0.dev5.dist-info/top_level.txt
  /usr/local/lib/python3.6/dist-packages/colorsafe/__init__.py
  /usr/local/lib/python3.6/dist-packages/colorsafe/__pycache__/__init__.cpython-36.pyc
  /usr/local/lib/python3.6/dist-packages/colorsafe/__pycache__/cmd.cpython-36.pyc
  /usr/local/lib/python3.6/dist-packages/colorsafe/__pycache__/colorsafe.cpython-36.pyc
  /usr/local/lib/python3.6/dist-packages/colorsafe/cmd.py
  /usr/local/lib/python3.6/dist-packages/colorsafe/colorsafe.py
  /usr/local/lib/python3.6/dist-packages/colorsafe/csdecoder.py
  /usr/local/lib/python3.6/dist-packages/colorsafe/csencoder.py

@justinbass
Copy link
Collaborator Author

This won't (or shouldn't) work with pip3 or Python3 yet. The exact instructions are, on a new system with pip (Tested on Ubuntu, Mac, Cygwin, Debian 9, Raspbian 7) simply:

pip install colorsafe or pip install --user colorsafe

Then:

colorsafe encode file.txt

@Wikinaut
Copy link

Wikinaut commented May 16, 2018

$ pip
Traceback (most recent call last):
  File "/usr/local/bin/pip", line 7, in <module>
    from pip  import main
ImportError: cannot import name 'main'

(debian 10 buster)

Even after reinstall (apt purge pip) - install (apt install pip) cycle.

Seems to be this is mega issue pypa/pip#5221 . This is why I ask you for proper instructions how colorsafe could be installed from the github sources.

@justinbass
Copy link
Collaborator Author

justinbass commented May 16, 2018

This was all mentioned in the prior thread and is out of scope for this issue, but I will elaborate again since I admire your adventurous spirit (in testing this on an unstable OS).

Generally if Colorsafe is not supported via installation with pip out of the box, I will not officially support or test on that OS, which includes Debian 9 and 10. This is working on the most common 99% of OS's. It's also out of scope since, in your case, pip install <any other package> will also show the same error, so the issue is out of my control.

Still I was able to get it working by modifying a pip file (I think /usr/bin/pip) as mentioned in that issue you linked. You can also try sudo python setup.py install, which is a standard python setuptools command.

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

No branches or pull requests

2 participants