Comments (10)
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.
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.
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.
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
):
from pyfunctional.
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.
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.
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.
Try the current master branch. I think I had the import wrong on the __init__.py
file.
from pyfunctional.
Okay, now it seems perfect.
from pyfunctional.
Cool, looks like the sequence of bugs is fixed so closing.
from pyfunctional.
Related Issues (20)
- any kind of join with different key name HOT 1
- Could I use the index in the map function HOT 1
- Latest version has pandas/numpy as requirements HOT 2
- for_each doesn't return the original sequence but returns None HOT 8
- Unexpected behaviour on chain with .drop_right HOT 2
- Unexpected Sequence wrapping from grouped HOT 7
- Empty sequence HOT 6
- Tuple argument unpacking functionality HOT 4
- lazy_parallellize having trouble with function context? HOT 3
- "peek" functionality HOT 1
- seq() converts pandas DataFrame into Sequence HOT 8
- Cache to file and auto-load from cache HOT 4
- [Question] VSCode language server doesn't see the pyfunctional package HOT 3
- Thank you! HOT 1
- More dictionary/tuple list helpers HOT 5
- the installation of the PyFunctional package has failed due to a missing item in the package archive. HOT 3
- Old link to documentation in pypi HOT 3
- module functions and variables not found HOT 5
- Async Support HOT 4
- Examples with peek() fail with v1.4.3 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyfunctional.