[GH-ISSUE #189] enhance python 3 compatibility #172

Closed
opened 2026-02-26 09:36:17 +03:00 by kerem · 3 comments
Owner

Originally created by @elnappo on GitHub (Nov 29, 2014).
Original GitHub issue: https://github.com/nsupdate-info/nsupdate.info/issues/189

At the moment nsupdate runs with python3 but is not very usable. Mainly because of __ str __() is missing in the model classes. This leads to:
new_host_python3

https://docs.djangoproject.com/en/dev/topics/python3/

Originally created by @elnappo on GitHub (Nov 29, 2014). Original GitHub issue: https://github.com/nsupdate-info/nsupdate.info/issues/189 At the moment nsupdate runs with python3 but is not very usable. Mainly because of __ str __() is missing in the model classes. This leads to: ![new_host_python3](https://cloud.githubusercontent.com/assets/480385/5234579/7d7731b8-77d2-11e4-8b7b-ea5ad7550fac.png) https://docs.djangoproject.com/en/dev/topics/python3/
kerem closed this issue 2026-02-26 09:36:18 +03:00
Author
Owner

@ThomasWaldmann commented on GitHub (Nov 29, 2014):

yup, we need @python_2_unicode_compatible.

<!-- gh-comment-id:64967246 --> @ThomasWaldmann commented on GitHub (Nov 29, 2014): yup, we need @python_2_unicode_compatible.
Author
Owner

@ThomasWaldmann commented on GitHub (Dec 6, 2014):

target should be: 2.7 and >= 3.3.

<!-- gh-comment-id:65898062 --> @ThomasWaldmann commented on GitHub (Dec 6, 2014): target should be: 2.7 and >= 3.3.
Author
Owner

@geier commented on GitHub (Dec 27, 2014):

also transifex (dev requirement) is not python 3 compatible

% pip install transifex-client                                                                                                        ~
Downloading/unpacking transifex-client
  Downloading transifex-client-0.10.tar.gz (68kB): 68kB downloaded
  Running setup.py (path:/tmp/pip-build-th9yn1px/transifex-client/setup.py) egg_info for package transifex-client
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip-build-th9yn1px/transifex-client/setup.py", line 14, in <module>
        if long_description.startswith(BOM):
    TypeError: startswith first arg must be str or a tuple of str, not bytes
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

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

  File "/tmp/pip-build-th9yn1px/transifex-client/setup.py", line 14, in <module>

    if long_description.startswith(BOM):

TypeError: startswith first arg must be str or a tuple of str, not bytes
<!-- gh-comment-id:68185144 --> @geier commented on GitHub (Dec 27, 2014): also transifex (dev requirement) is not python 3 compatible ``` % pip install transifex-client ~ Downloading/unpacking transifex-client Downloading transifex-client-0.10.tar.gz (68kB): 68kB downloaded Running setup.py (path:/tmp/pip-build-th9yn1px/transifex-client/setup.py) egg_info for package transifex-client Traceback (most recent call last): File "<string>", line 17, in <module> File "/tmp/pip-build-th9yn1px/transifex-client/setup.py", line 14, in <module> if long_description.startswith(BOM): TypeError: startswith first arg must be str or a tuple of str, not bytes Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 17, in <module> File "/tmp/pip-build-th9yn1px/transifex-client/setup.py", line 14, in <module> if long_description.startswith(BOM): TypeError: startswith first arg must be str or a tuple of str, not bytes ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nsupdate.info-nsupdate-info#172
No description provided.