You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using jesse package in my project in editable mode.
When installing using the command poetry install it causes an import error with the environment - which do not exist in non editable mode.
moreover - it works well if I installing using poetry add (first I'm cloning 'jesse' and then running the command poetry add -e ./jesse) - but after running poetry install it ruins the environment and causing the Import error.
How to reproduce:
git clone https://github.com/Tzion/jesse-trading.git cd jesse-trading git checkout 122cb03 git clone https://github.com/jesse-ai/jesse.git poetry env use <path_to_python_version_3.9> poetry add -e ./jesse source .venv/bin/activate cd jesse_trading/jesse_bot jesse run
So far it works well - to ruin the env and reproduce the bug, run poetry install and then jesse run show the exception: ImportError: cannot import name 'sum_floats' from 'jesse.utils' (unknown location)
Workarounds
avoid from running poetry install and install the single dependency (currently) manually - by running poetry add -e ./jesse
Loading configuration file /Users/zions/Library/Application Support/pypoetry/config.toml
Using virtualenv: /Users/zions/jesse-trading-3/.venv
Installing dependencies from lock file
Finding the necessary packages for the current system
Package operations: 0 installs, 0 updates, 0 removals, 109 skipped
- Installing aiofiles (0.7.0): Skipped for the following reason: Already installed
- Installing aiohttp (3.9.3): Skipped for the following reason: Already installed
- Installing aioredis (1.3.1): Skipped for the following reason: Already installed
- Installing aiosignal (1.3.1): Skipped for the following reason: Already installed
- Installing anyio (3.7.1): Skipped for the following reason: Already installed
- Installing appdirs (1.4.4): Skipped for the following reason: Already installed
- Installing arrow (1.2.1): Skipped for the following reason: Already installed
- Installing async-timeout (4.0.3): Skipped for the following reason: Already installed
- Installing attrs (23.2.0): Skipped for the following reason: Already installed
- Installing beautifulsoup4 (4.12.3): Skipped for the following reason: Already installed
- Installing bitarray (2.9.2): Skipped for the following reason: Already installed
- Installing blinker (1.4): Skipped for the following reason: Already installed
- Installing certifi (2024.2.2): Skipped for the following reason: Already installed
- Installing charset-normalizer (3.3.2): Skipped for the following reason: Already installed
- Installing click (8.0.3): Skipped for the following reason: Already installed
- Installing contourpy (1.2.1): Skipped for the following reason: Already installed
- Installing cycler (0.12.1): Skipped for the following reason: Already installed
- Installing cytoolz (0.12.1): Skipped for the following reason: Already installed
- Installing dateparser (1.0.0): Skipped for the following reason: Already installed
- Installing deprecated (1.2.14): Skipped for the following reason: Already installed
- Installing ecdsa (0.18.0): Skipped for the following reason: Already installed
- Installing eth-abi (5.1.0): Skipped for the following reason: Already installed
- Installing eth-account (0.8.0): Skipped for the following reason: Already installed
- Installing eth-hash (0.7.0): Skipped for the following reason: Already installed
- Installing eth-keyfile (0.6.1): Skipped for the following reason: Already installed
- Installing eth-keys (0.4.0): Skipped for the following reason: Already installed
- Installing eth-rlp (0.3.0): Skipped for the following reason: Already installed
- Installing eth-typing (3.5.2): Skipped for the following reason: Already installed
- Installing eth-utils (2.3.1): Skipped for the following reason: Already installed
- Installing exceptiongroup (1.2.0): Skipped for the following reason: Already installed
- Installing fastapi (0.74.0): Skipped for the following reason: Already installed
- Installing fonttools (4.51.0): Skipped for the following reason: Already installed
- Installing frozendict (2.4.1): Skipped for the following reason: Already installed
- Installing frozenlist (1.4.1): Skipped for the following reason: Already installed
- Installing h11 (0.14.0): Skipped for the following reason: Already installed
- Installing hexbytes (0.3.1): Skipped for the following reason: Already installed
- Installing hiredis (2.3.2): Skipped for the following reason: Already installed
- Installing html5lib (1.1): Skipped for the following reason: Already installed
- Installing idna (3.6): Skipped for the following reason: Already installed
- Installing importlib-resources (6.4.0): Skipped for the following reason: Already installed
- Installing iniconfig (2.0.0): Skipped for the following reason: Already installed
- Installing jesse (0.47.0 /Users/zions/jesse-trading-3/jesse): Skipped for the following reason: Already installed
- Installing jesse-dydx-v3-python (1.0.4): Skipped for the following reason: Already installed
- Installing jsonschema (4.21.1): Skipped for the following reason: Already installed
- Installing jsonschema-specifications (2023.12.1): Skipped for the following reason: Already installed
- Installing kiwisolver (1.4.5): Skipped for the following reason: Already installed
- Installing lru-dict (1.3.0): Skipped for the following reason: Already installed
- Installing lxml (5.2.1): Skipped for the following reason: Already installed
- Installing matplotlib (3.7.4): Skipped for the following reason: Already installed
- Installing mplfinance (0.12.8b6): Skipped for the following reason: Already installed
- Installing mpmath (1.0.0): Skipped for the following reason: Already installed
- Installing multidict (6.0.5): Skipped for the following reason: Already installed
- Installing multitasking (0.0.11): Skipped for the following reason: Already installed
- Installing newtulipy (0.4.6): Skipped for the following reason: Already installed
- Installing numpy (1.23.0): Skipped for the following reason: Already installed
- Installing numpy-groupies (0.9.14): Skipped for the following reason: Already installed
- Installing packaging (24.0): Skipped for the following reason: Already installed
- Installing pandas (1.4.0): Skipped for the following reason: Already installed
- Installing parsimonious (0.10.0): Skipped for the following reason: Already installed
- Installing patsy (0.5.6): Skipped for the following reason: Already installed
- Installing peewee (3.14.8): Skipped for the following reason: Already installed
- Installing pillow (10.3.0): Skipped for the following reason: Already installed
- Installing pluggy (1.4.0): Skipped for the following reason: Already installed
- Installing protobuf (5.26.1): Skipped for the following reason: Already installed
- Installing psycopg2-binary (2.9.9): Skipped for the following reason: Already installed
- Installing py (1.11.0): Skipped for the following reason: Already installed
- Installing pycryptodome (3.20.0): Skipped for the following reason: Already installed
- Installing pydantic (1.10.15): Skipped for the following reason: Already installed
- Installing pydash (6.0.0): Skipped for the following reason: Already installed
- Installing pyparsing (3.1.2): Skipped for the following reason: Already installed
- Installing pytest (6.2.5): Skipped for the following reason: Already installed
- Installing python-dateutil (2.9.0.post0): Skipped for the following reason: Already installed
- Installing python-dotenv (0.19.2): Skipped for the following reason: Already installed
- Installing pytz (2024.1): Skipped for the following reason: Already installed
- Installing pyunormalize (15.1.0): Skipped for the following reason: Already installed
- Installing pywavelets (1.2.0): Skipped for the following reason: Already installed
- Installing quantstats (0.0.47): Skipped for the following reason: Already installed
- Installing redis (4.1.4): Skipped for the following reason: Already installed
- Installing referencing (0.34.0): Skipped for the following reason: Already installed
- Installing regex (2023.12.25): Skipped for the following reason: Already installed
- Installing requests (2.31.0): Skipped for the following reason: Already installed
- Installing rlp (3.0.0): Skipped for the following reason: Already installed
- Installing rpds-py (0.18.0): Skipped for the following reason: Already installed
- Installing scipy (1.13.0): Skipped for the following reason: Already installed
- Installing seaborn (0.13.2): Skipped for the following reason: Already installed
- Installing simplejson (3.16.0): Skipped for the following reason: Already installed
- Installing six (1.16.0): Skipped for the following reason: Already installed
- Installing sniffio (1.3.1): Skipped for the following reason: Already installed
- Installing soupsieve (2.5): Skipped for the following reason: Already installed
- Installing starlette (0.17.1): Skipped for the following reason: Already installed
- Installing statsmodels (0.14.0): Skipped for the following reason: Already installed
- Installing sympy (1.6): Skipped for the following reason: Already installed
- Installing ta-lib (0.4.28): Skipped for the following reason: Already installed
- Installing tabulate (0.8.9): Skipped for the following reason: Already installed
- Installing timeloop (1.0.2): Skipped for the following reason: Already installed
- Installing toml (0.10.2): Skipped for the following reason: Already installed
- Installing toolz (0.12.1): Skipped for the following reason: Already installed
- Installing typing-extensions (4.11.0): Skipped for the following reason: Already installed
- Installing tzlocal (5.2): Skipped for the following reason: Already installed
- Installing urllib3 (2.2.1): Skipped for the following reason: Already installed
- Installing uvicorn (0.23.2): Skipped for the following reason: Already installed
- Installing web3 (6.10.0): Skipped for the following reason: Already installed
- Installing webencodings (0.5.1): Skipped for the following reason: Already installed
- Installing websocket-client (1.2.3): Skipped for the following reason: Already installed
- Installing websockets (12.0): Skipped for the following reason: Already installed
- Installing wrapt (1.16.0): Skipped for the following reason: Already installed
- Installing yarl (1.9.4): Skipped for the following reason: Already installed
- Installing yfinance (0.2.28): Skipped for the following reason: Already installed
- Installing zipp (3.18.1): Skipped for the following reason: Already installed
Installing the current project: jesse-trading (0.1.0)
- Building package jesse-trading in editable mode
- Removed jesse_trading-0.1.0.dist-info directory from /Users/zions/jesse-trading-3/.venv/lib/python3.9/site-packages
- Adding jesse_trading.pth to /Users/zions/jesse-trading-3/.venv/lib/python3.9/site-packages for /Users/zions/jesse-trading-3
- Adding the jesse_trading-0.1.0.dist-info directory to /Users/zions/jesse-trading-3/.venv/lib/python3.9/site-packages
The text was updated successfully, but these errors were encountered:
you should not put jesse as a subdirectory of jesse-trading
when you install jesse-trading, you add /blah/whatever/jesse-trading to the python path. But then when you clone jesse into that place, you create an unintended place where python will look for - and fail to find - jesse.utils
Description
I'm using jesse package in my project in editable mode.
When installing using the command
poetry install
it causes an import error with the environment - which do not exist in non editable mode.moreover - it works well if I installing using poetry add (first I'm cloning 'jesse' and then running the command
poetry add -e ./jesse
) - but after runningpoetry install
it ruins the environment and causing the Import error.How to reproduce:
git clone https://github.com/Tzion/jesse-trading.git
cd jesse-trading
git checkout 122cb03
git clone https://github.com/jesse-ai/jesse.git
poetry env use <path_to_python_version_3.9>
poetry add -e ./jesse
source .venv/bin/activate
cd jesse_trading/jesse_bot
jesse run
So far it works well - to ruin the env and reproduce the bug, run
poetry install
and thenjesse run
show the exception:ImportError: cannot import name 'sum_floats' from 'jesse.utils' (unknown location)
Workarounds
avoid from running
poetry install
and install the single dependency (currently) manually - by runningpoetry add -e ./jesse
Poetry Installation Method
pipx
Operating System
MacOS Ventura 13.5.2 (22G91)
Poetry Version
Poetry (version 1.8.2)
Poetry Configuration
Python Sysconfig
Example pyproject.toml
Poetry Runtime Logs
The text was updated successfully, but these errors were encountered: