Code Monkey home page Code Monkey logo

Comments (5)

justinfx avatar justinfx commented on June 15, 2024

Ah yea. That is coming from the fact that it has changed in py3. This was actually already fixed in a pending branch to introduce py3 support:
#70

Do you want to give that a test to confirm? Also, I would love to get some feedback from at least one person before deciding how to merge that new version.

from fileseq.

walrusVision avatar walrusVision commented on June 15, 2024

From the branch 63_python3_v2

Python 2.7.15 (default, Feb 22 2019, 04:00:34) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import fileseq
>>> fileseq.FrameSet("1-10")
fileseq/frameset.py:89: DeprecationWarning: object() takes no parameters
  self = super(cls, FrameSet).__new__(cls, *args, **kwargs)
FrameSet("1-10")

Also I had a quick try of this branch on 3.6.7 but got this unrelated error

Python 3.6.7 (default, Feb 22 2019, 04:02:18)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import fileseq
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "~/virtualenv/lib/python3.6/site-packages/fileseq/src/fileseq/__init__.py", line 29, in <module>
    from fileseq.frameset import FrameSet
  File "~/virtualenv/lib/python3.6/site-packages/fileseq/src/fileseq/frameset.py", line 13, in <module>
    from fileseq.utils import xfrange, unique, pad
  File "~/virtualenv/lib/python3.6/site-packages/fileseq/src/fileseq/utils.py", line 60, in <module>
    xrange = xrange
NameError: name 'xrange' is not defined

from fileseq.

justinfx avatar justinfx commented on June 15, 2024

Something is fishy about your checkout of that branch. Those line numbers are not the implementation of that branch:

https://github.com/sqlboy/fileseq/blob/63_python3_v2/src/fileseq/frameset.py#L89
https://github.com/sqlboy/fileseq/blob/63_python3_v2/src/fileseq/utils.py#L60

You must still best testing another branch?
There are CI tests that run this branch against py3 already:
https://travis-ci.org/sqlboy/fileseq/builds/473770716
https://ci.appveyor.com/project/justinfx/fileseq/builds/21302463

from fileseq.

walrusVision avatar walrusVision commented on June 15, 2024

Quite right, I'm not sure what happened there. From a fresh clone and checkout that's working much better

~/virtualenv/bin/python -Wd
Python 2.7.15 (default, Feb 22 2019, 04:00:34) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
[273]> import fileseq
[273]> fileseq.FrameSet("1-10")
FrameSet("1-10")

from fileseq.

justinfx avatar justinfx commented on June 15, 2024

Closing as it is fixed by way of #63

from fileseq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.