Giter VIP home page Giter VIP logo

Comments (10)

EntilZha avatar EntilZha commented on May 17, 2024

Coincidentally, I ran into this problem this morning while writing a blog post and testing the code (using the package) on a new computer (apart from the computer I developed it on, which works fine). Given my setup (Mac OSX + Python2), I don't think its a platform problem, it is probably an issue with something in the PyPi config I need to fix. Will investigate later today.

from pyfunctional.

EntilZha avatar EntilZha commented on May 17, 2024

Just fixed this and released a new version. The problem is that the code was not technically within a package so pypi didn't pick it up. It has been fixed now and the same import method works.

from functional import seq

Let me know if that fixes the problem. The release is 0.1.2 at pypi. You can upgrade by issuing pip install --upgrade scalafunctional

If it works then will close issue

from pyfunctional.

adrian17 avatar adrian17 commented on May 17, 2024

Now everything seems to work properly, thanks. Also, I didn't test if it's working 100% correctly on Python 3, but I think you could add it to the package's categories.

from pyfunctional.

adrian17 avatar adrian17 commented on May 17, 2024

Hm, pip doesn't download 0.1.3 yet.

And when I cloned the repo (now on Linux), I can't import the whole module and run tests (for the record, I wanted to try implementing flatten and take_while): http://i.imgur.com/GoPmyBN.png

from pyfunctional.

EntilZha avatar EntilZha commented on May 17, 2024

What is the output of running pip install --upgrade, it should list the version it is at. Also, you can pretty easily run all the unit tests by running nosetests.

For development, you can install it by running python setup.py develop within the cloned directory. I would probably suggest uninstalling the pip version, developing, then uninstall the develop version/reinstall the pip version. You could also be pro and use virtualenv (I'me too lazy and it works fine as is).

from pyfunctional.

EntilZha avatar EntilZha commented on May 17, 2024

On the feature ideas, flatten should be fairly easy. You could probably use the existing flat_map and provide lambda x: x as the argument. Its a common enough use case to be helpful I think. take_while also seems useful.

from pyfunctional.

adrian17 avatar adrian17 commented on May 17, 2024

Okay, now it downloaded the new version, but still fails:

tests from the repo also fail:

And yes, I know to avoid collisions of pip package and the repo code.

As for the functions, I will make a pullrq when I get the tests going. In the long term I would love to work on making it work on and return generators, but that will require more time.

from pyfunctional.

EntilZha avatar EntilZha commented on May 17, 2024

Try the current master branch. I think I had the import wrong on the __init__.py file.

from pyfunctional.

adrian17 avatar adrian17 commented on May 17, 2024

Okay, now it seems perfect.

from pyfunctional.

EntilZha avatar EntilZha commented on May 17, 2024

Cool, looks like the sequence of bugs is fixed so closing.

from pyfunctional.

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.