Cannot install pysparkling from PyPi

Description

➜ Downloads pip install h2o_pysparkling_2.0
Collecting h2o_pysparkling_2.0
Downloading h2o_pysparkling_2.0-2.0.5.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/1f/gcjrygts5w9fq0l149_6dzgw0000gn/T/pip-build-P3hwv7/h2o-pysparkling-2.0/setup.py", line 13, in <module>
with open(path.join(here, 'build', 'version.txt'), encoding='utf-8') as f:
File "/Users/michal/bin/anaconda2/lib/python2.7/codecs.py", line 896, in open
file = _builtin_.open(filename, mode, buffering)
IOError: [Errno 2] No such file or directory: '/private/var/folders/1f/gcjrygts5w9fq0l149_6dzgw0000gn/T/pip-build-P3hwv7/h2o-pysparkling-2.0/build/version.txt'

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/1f/gcjrygts5w9fq0l149_6dzgw0000gn/T/pip-build-P3hwv7/h2o-pysparkling-2.0/

Activity

Show:
Jakub Hava
March 1, 2017, 10:24 PM

I can see that this happen in Anaconda environment. Would be interesting to find out if it's only in Anaconda env or also in simple python env.

It's interesting, sparkling_water package should be available. Maybe the whole egg is somewhat corrupted

Michal Malohlava
March 1, 2017, 10:51 PM

Yup, it is my fault - when we move everything inside `build` directory, `python sdist` stopped working which screwed up release process.

In this context, we need to have test which will verify correct PyPi installation.

Avkash Chauhan
April 18, 2017, 6:43 PM

We have an user from IBM also reporting this exact problem with 1.6.9 too.. any idea when we will have a fix on this regard.

Jakub Hava
April 18, 2017, 6:59 PM

we heve a fix for this https://github.com/h2oai/sparkling-water/pull/195, it won't go to this release but the following one.

In the meanwhile please tell the customer that they can't use pysparkling from pypi but they need to use binary distribution - ie. download sparkling water from our page and use ./bin/pysparkling or ./bin/run-python-script.sh

Jakub Hava
May 25, 2017, 10:33 AM

Actually this isn't fixed by the https://github.com/h2oai/sparkling-water/pull/195, this fix is simple - we need to run
```python setup.py register -r pypi
python setup.py sdist upload -r pypi
``` in build/pkg directory to have all correct dependencies. Release scripts needs to be updated

Fixed

Assignee

Jakub Hava

Reporter

Michal Malohlava

Labels

None

CustomerVisible

No

testcase 1

None

testcase 2

None

testcase 3

None

h2ostream link

None

Affected Spark version

None

AffectedContact

None

AffectedCustomers

None

AffectedPilots

None

AffectedOpenSource

None

Support Assessment

None

Customer Request Type

None

Support ticket URL

None

End date

None

Baseline start date

None

Baseline end date

None

Task progress

None

Task mode

None

ReleaseNotesHidden

None

Fix versions

Priority

Major
Configure