Skip to content

Commit

Permalink
~Fix for pyrsistent module installation
Browse files Browse the repository at this point in the history
  • Loading branch information
imbeacon committed May 6, 2020
1 parent 07ab4ec commit 6fcf7de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()

VERSION = "2.3.0"
VERSION = "2.3.0.1"

setup(
version=VERSION,
Expand Down Expand Up @@ -57,7 +57,6 @@
'pytz',
'PyYAML',
'simplejson',
'pyrsistent',
'requests'
],
download_url='https://github.com/thingsboard/thingsboard-gateway/archive/%s.tar.gz' % VERSION,
Expand Down
8 changes: 7 additions & 1 deletion thingsboard_gateway/gateway/tb_gateway_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,15 @@
from yaml import safe_load
from simplejson import load, dumps, loads

from thingsboard_gateway.tb_utility.tb_utility import TBUtility

try:
import pyrsistent
except ImportError:
TBUtility.install_package("pyrsistent")

from thingsboard_gateway.gateway.tb_client import TBClient
from thingsboard_gateway.gateway.tb_logger import TBLoggerHandler
from thingsboard_gateway.tb_utility.tb_utility import TBUtility
from thingsboard_gateway.storage.memory_event_storage import MemoryEventStorage
from thingsboard_gateway.storage.file_event_storage import FileEventStorage
from thingsboard_gateway.gateway.tb_gateway_remote_configurator import RemoteConfigurator
Expand Down

0 comments on commit 6fcf7de

Please sign in to comment.