Closed felipeZ closed 6 years ago
When running a microservice I start the infrastructure like:
10:45:43 $ ./start.sh Creating network "mdstudio_default" with the default driver Creating mdstudio_redis_1 ... Creating mdstudio_mongo_1 ... Creating mdstudio_mongo_1 Creating mdstudio_redis_1 ... done Creating mdstudio_crossbar_1 ... Creating mdstudio_crossbar_1 ... done
Then I use Miniconda3 to run a microservice like:
10:45:54 $ source ~/miniconda3/bin/activate mdstudio3 (mdstudio3) 10:47:00 $ python -m lie_md ....... 2018-04-04T10:47:23+0200 Crossbar host is: localhost 2018-04-04T10:47:23+0200 Collecting logs on session "MDWampApi" 2018-04-04T10:47:23+0200 Uploaded schemas for MDWampApi 2018-04-04T10:47:23+0200 MDWampApi: 1 procedures successfully registered
And it works as expected. But if I tried exactly the same with pipenv, I get the following results:
10:53:11 $ pipenv install --skip-lock --sequential --two Virtualenv already exists! Removing existing virtualenv… Creating a virtualenv for this project… Using /usr/bin/python2 (2.7.12) to create virtualenv… ... Installing dependencies from Pipfile… 🐍 ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 9/9 — 00:00:22 10:53:46 $ pipenv shell Loading .env environment variables… 10:55:13 $ pip install lie_md Running setup.py install for lie-md ... done 10:56:19 $ export MD_CONFIG_ENVIRONMENTS=dev,docker 10:56:50 $ python -m lie_md 2018-04-04T10:57:05+0200 Crossbar host is: localhost 2018-04-04T10:57:05+0200 Collecting logs on session "MDWampApi" 2018-04-04T10:57:05+0200 Unhandled error in Deferred: File "/MDStudio/mdstudio/mdstudio/collection/__init__.py", line 15, in getter return self[name] exceptions.KeyError: 'username'
Why is it working with conda and not with pipenv. I'm using python2 with pipenv instead of python 3 due to issue #106
When running a microservice I start the infrastructure like:
Then I use Miniconda3 to run a microservice like:
And it works as expected. But if I tried exactly the same with pipenv, I get the following results:
Why is it working with conda and not with pipenv. I'm using python2 with pipenv instead of python 3 due to issue #106