sharadmv / parasol

MIT License
68 stars 17 forks source link

Installation Issues #3

Closed vitchyr closed 5 years ago

vitchyr commented 5 years ago

After cloning the repo, I tried running

pipenv install --ignore-pipfile

but got

pipenv install --ignore-pipfile                                                                                                                                                                          15:17:45
/home/vitchyr/.local/lib/python2.7/site-packages/pipenv/patched/notpip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
  warnings.warn(warning, RequestsDependencyWarning)
Installing dependencies from Pipfile.lock (a83a28)...
Traceback (most recent call last):
  File "/home/vitchyr/.local/bin/pipenv", line 11, in <module>
    sys.exit(cli())
  File "/home/vitchyr/.local/lib/python2.7/site-packages/pipenv/vendor/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/vitchyr/.local/lib/python2.7/site-packages/pipenv/vendor/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/vitchyr/.local/lib/python2.7/site-packages/pipenv/vendor/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/vitchyr/.local/lib/python2.7/site-packages/pipenv/vendor/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/vitchyr/.local/lib/python2.7/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/vitchyr/.local/lib/python2.7/site-packages/pipenv/vendor/click/decorators.py", line 64, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/home/vitchyr/.local/lib/python2.7/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/vitchyr/.local/lib/python2.7/site-packages/pipenv/vendor/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/vitchyr/.local/lib/python2.7/site-packages/pipenv/cli/command.py", line 254, in install
    editable_packages=state.installstate.editables,
  File "/home/vitchyr/.local/lib/python2.7/site-packages/pipenv/core.py", line 1874, in do_install
    keep_outdated=keep_outdated
  File "/home/vitchyr/.local/lib/python2.7/site-packages/pipenv/core.py", line 1253, in do_init
    pypi_mirror=pypi_mirror,
  File "/home/vitchyr/.local/lib/python2.7/site-packages/pipenv/core.py", line 809, in do_install_dependencies
    deps_list = list(lockfile.get_requirements(dev=dev, only=requirements))
  File "/home/vitchyr/.local/lib/python2.7/site-packages/pipenv/vendor/requirementslib/models/lockfile.py", line 272, in get_requirements
    yield Requirement.from_pipfile(k, v)
  File "/home/vitchyr/.local/lib/python2.7/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 1185, in from_pipfile
    r = FileRequirement.from_pipfile(name, pipfile)
  File "/home/vitchyr/.local/lib/python2.7/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 594, in from_pipfile
    return cls.create(**arg_dict)
  File "/home/vitchyr/.local/lib/python2.7/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 497, in create
    cls_inst = cls(**creation_kwargs)
  File "<attrs generated init 44a7a91776ede3b3265d2186daf7646c407fd63a>", line 35, in __init__
  File "/home/vitchyr/.local/lib/python2.7/site-packages/pipenv/vendor/attr/validators.py", line 106, in __call__
    self.validator(inst, attr, value)
  File "/home/vitchyr/.local/lib/python2.7/site-packages/pipenv/vendor/requirementslib/models/utils.py", line 182, in validate_path
    raise ValueError("Invalid path {0!r}".format(value))
ValueError: Invalid path u'./../../hack/deepx'

However, when I tried

pipenv install

it seemed to work:

/home/vitchyr/.local/lib/python2.7/site-packages/pipenv/patched/notpip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
  warnings.warn(warning, RequestsDependencyWarning)
Pipfile.lock (959c79) out of date, updating to (a83a28)...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
✔ Success! 

Is there a reason --ignore-pipfile is included in the instructions? It seems like it can be removed, but I'm now running into this error:

pipenv shell
python experiments/test_solar.py                                                                                                                                                                         15:46:21
Traceback (most recent call last):
  File "experiments/test_solar.py", line 1, in <module>
    from parasol.experiment import run, sweep
  File "/home/vitchyr/git/parasol/parasol/experiment/__init__.py", line 4, in <module>
    from parasol.util import json
  File "/home/vitchyr/git/parasol/parasol/util/__init__.py", line 1, in <module>
    from .nn import *
  File "/home/vitchyr/git/parasol/parasol/util/nn.py", line 3, in <module>
    from deepx import T, stats
ImportError: cannot import name 'T'

My pipenv version is: version 2018.11.26

zadaianchuk commented 5 years ago

I have the same issue, what version of deepx should I use?

sharadmv commented 5 years ago

Sorry about that, I thought the deepx version would be frozen in the Pipfile. The correct version (I think) is 0.4.16 (it's on pypi).

zhangmarvin commented 5 years ago

I updated the Pipfile and Pipfile.lock in 3bb829546974165e346f2c1e5b3690ef21e2b8e5, so I think (or hope?) the instruction in the README should now be correct.