mirror of
https://github.com/facebookresearch/ReAgent.git
synced 2026-05-17 12:40:39 +00:00
6b3ecdc9d4
Summary: Pull Request resolved: https://github.com/facebookresearch/ReAgent/pull/458 When trying to follow the [tutorial](https://reagent.ai/rasp_tutorial.html) there are a few things that need fixing: 1. When running the script serving/scripts/rasp_to_model.py I came across this error ``` python serving/scripts/rasp_to_model.py /tmp/rasp_logging/log.txt /tmp/input_df.pkl Traceback (most recent call last): File "serving/scripts/rasp_to_model.py", line 13, in <module> logger.setLevel(logging.info) File "/usr/local/anaconda3/envs/reagent/lib/python3.7/logging/__init__.py", line 1353, in setLevel self.level = _checkLevel(level) File "/usr/local/anaconda3/envs/reagent/lib/python3.7/logging/__init__.py", line 195, in _checkLevel raise TypeError("Level not an integer or a valid string: %r" % level) TypeError: Level not an integer or a valid string: <function info at 0x7fb8000d73b0> ``` Luckily it is an easy fix to pass an actual loglevel. 2. This config file probably is outdated: serving/examples/ecommerce/training/contextual_bandit.yaml - changed indentation level - changed key name 3. There is an __init__.py file missing in the gym tests therefore leading to an error 4. The path to the SPARK_JAR was not resolving correctly. Pull Request resolved: https://github.com/facebookresearch/ReAgent/pull/391 Test Plan: Imported from GitHub, without a `Test Plan:` line. ...but without running open source tests. Reviewed By: czxttkl Differential Revision: D27842451 Pulled By: MisterTea fbshipit-source-id: 2175296c6b60db4dc4b22804a74c2259b14fee7e
24 lines
524 B
Python
24 lines
524 B
Python
#!/usr/bin/env python3
|
|
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
|
|
|
from setuptools import find_packages, setup
|
|
|
|
|
|
def readme():
|
|
with open("README.md") as f:
|
|
return f.read()
|
|
|
|
|
|
setup(
|
|
name="ReAgentServing",
|
|
version="0.1",
|
|
author="Facebook",
|
|
description=("ReAgent Serving Platform"),
|
|
long_description=readme(),
|
|
url="https://github.com/facebookresearch/ReAgent",
|
|
license="BSD",
|
|
packages=find_packages(),
|
|
install_requires=[],
|
|
dependency_links=[],
|
|
)
|