Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes Portfolio & Forecasting working on Intel Installer #3745

Merged
merged 11 commits into from
Dec 16, 2022
8 changes: 8 additions & 0 deletions build/pyinstaller/entitlements.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,13 @@
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.disable-executable-page-protection</key>
<true/>
<key>com.apple.security.cs.debugger</key>
<true/>
</dict>
</plist>
9 changes: 4 additions & 5 deletions build/pyinstaller/terminal.spec
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ added_files = [
(os.path.join(pathex, "user_agent"), "user_agent"),
(os.path.join(pathex, "vaderSentiment"), "vaderSentiment"),
(os.path.join(pathex, "prophet"), "prophet"),
(os.path.join(pathex, "riskfolio"), "riskfolio"),
(os.path.join(pathex, "astropy"), "astropy"),
(os.path.join(pathex, "frozendict", "VERSION"), "frozendict"),
(
os.path.join(pathex, "linearmodels", "datasets"),
Expand All @@ -64,7 +62,10 @@ added_files = [
"pymongo",
),
(os.path.join(pathex, "bson"), "bson"),
(os.path.join(pathex, "debugpy", "_vendored"), os.path.join("debugpy", "_vendored")),
(
os.path.join(pathex, "debugpy", "_vendored"),
os.path.join("debugpy", "_vendored"),
),
(".env", "."),
]

Expand Down Expand Up @@ -93,8 +94,6 @@ hidden_imports = [
"_sysconfigdata__darwin_darwin",
"prophet",
"debugpy",
"riskfolio",
"astropy",
]


Expand Down
7 changes: 4 additions & 3 deletions openbb_terminal/forecast/forecast_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
__docformat__ = "numpy"

# pylint: disable=too-many-lines, too-many-branches, too-many-arguments, R0904,R0902,W0707

# flake8: noqa
import argparse
import logging
from typing import Any, Optional, List, Dict

try:
import torch

import darts

darts_latest = "0.22.0"
Expand All @@ -25,10 +26,8 @@
"Please install the forecast version of the terminal. Instructions can be found "
"under the python tab: https://docs.openbb.co/terminal/quickstart/installation"
)

import pandas as pd
import psutil

from openbb_terminal.core.config.paths import (
USER_EXPORTS_DIRECTORY,
USER_CUSTOM_IMPORTS_DIRECTORY,
Expand All @@ -45,6 +44,7 @@
log_and_raise,
valid_date,
)

from openbb_terminal.menu import session
from openbb_terminal.parent_classes import BaseController
from openbb_terminal.rich_config import console, MenuText
Expand Down Expand Up @@ -72,6 +72,7 @@
trans_view,
nhits_view,
)

from openbb_terminal.common import common_model

logger = logging.getLogger(__name__)
Expand Down