Comments (19)
The "problem" is that Astral released a version 2: https://pypi.org/project/astral/#history, and gw2pvo is not compatible with v2 yet. You can force the install of version 1.x with sudo pip install astral==1.10.1
, which will install the (currently) latest 1.x release.
from gw2pvo.
You might have to uninstall astral v2 first btw: sudo pip uninstall astral
from gw2pvo.
@DynamicDreams manually install the package worked for me:
this installs astral 1.10.1 from source https://pypi.lcsb.uni.lu/simple/astral/
from gw2pvo.
Have same problem. Any solution?
from gw2pvo.
Thankyou This works for me..
from gw2pvo.
I'm experiencing the same issue. I did first:
sudo pip uninstall astral
Then:
sudo pip install astral==1.10.1
But I'm still having this error:
ImportError: cannot import name 'Astral' from 'astral' (/usr/local/lib/python3.7/dist-packages/astral/init.py)
What else can I try?
from gw2pvo.
To bad it's not working for me. iam using a raspberry pi 3 with p1monitor as image.
The older img are working fine but after building a new one its not working.
I did try installing but still this error
sudo pip install astral==1.10.1
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: astral==1.10.1 in /usr/local/lib/python2.7/dist-packages (1.10.1)
Requirement already satisfied: pytz in /usr/local/lib/python2.7/dist-packages (from astral==1.10.1) (2018.3)
pygobject 3.30.4 requires pycairo>=1.11.1, which is not installed.
May 24 13:35:09 p1mon gw2pvo[300]: from astral import Astral
May 24 13:35:09 p1mon gw2pvo[300]: ImportError: cannot import name 'Astral' from 'astral' (/usr/local/lib/python3.7/dist-packages/astral/init.py)
May 24 13:35:09 p1mon systemd[1]: gw2pvo.service: Main process exited, code=exited, status=1/FAILURE
May 24 13:35:09 p1mon systemd[1]: gw2pvo.service: Failed with result 'exit-code'
from gw2pvo.
from gw2pvo.
i have no idea what you mean, ,any an example?
from gw2pvo.
I am facing the same issue when trying to setup this program on my Rpi 4. I tried to uninstall and reinstall astral 1.1 but still getting the same error:
Traceback (most recent call last):
File "/usr/local/bin/gw2pvo", line 6, in
from gw2pvo.main import run
File "/usr/local/lib/python3.7/dist-packages/gw2pvo/main.py", line 9, in
from astral import Astral
ImportError: cannot import name 'Astral' from 'astral' (/usr/local/lib/python3.7/dist-packages/astral/init.py)
Is there any other solution or workaround for this?
from gw2pvo.
See the code changes in #43
from gw2pvo.
gw2pvo-docker 1.3.0 runs into the same issues with Astral.
ImportError: cannot import name 'Astral'
@markruys can we either:
- Upgrade code to Astral v2.x (#43)
- Have a trick so gw2pvo forces pip to resolve to Astral v1.x
As I'm a noob for Python, I really don't know how to do that last one.
Ok, got it fixed for now by doing
pip install https://github.com/sffjunkie/astral/archive/1.10.1.tar.gz
pip install https://github.com/markruys/gw2pvo/releases/download/1.3.0/gw2pvo-1.3.0.tar.gz
But I think that adding a requirements.txt might help.
from gw2pvo.
For now that 1.3.0 version is running again on my older p1mon distro.
But when I upgrade to a newer p1mon distro, iam still having that astral isue.
p1mon@p1mon(eth0=192.168.1.140 wlan0=192.168.1.162):~ $ sudo pip install https://github.com/sffjunkie/astral/archive/1.10.1.tar.gz
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting https://github.com/sffjunkie/astral/archive/1.10.1.tar.gz
Downloading https://github.com/sffjunkie/astral/archive/1.10.1.tar.gz
| 112kB 354kB/s
Requirement already satisfied: pytz in /usr/local/lib/python2.7/dist-packages (from astral==1.10.1) (2018.3)
Building wheels for collected packages: astral
Running setup.py bdist_wheel for astral ... done
Stored in directory: /tmp/pip-ephem-wheel-cache-zcwVHe/wheels/3b/c4/65/0964f15c8e00cc7e086f50d9d4533f10e06ede912d3f545124
Successfully built astral
pygobject 3.30.4 requires pycairo>=1.11.1, which is not installed.
Installing collected packages: astral
Successfully installed astral-1.10.1
You are using pip version 10.0.1, however version 20.2b1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
from gw2pvo.
I've merged #43, so now we're using Astral 2 and it should work now.
from gw2pvo.
I installed 1.3.0 again, sudo pip3 install https://github.com/markruys/gw2pvo/releases/download/1.3.0/gw2pvo-1.3.0.tar.gz
stil getting that same error.
Jun 28 18:24:17 p1mon systemd[1]: Stopped Read GoodWe inverter and upload data to PVOutput.org.
Jun 28 18:24:17 p1mon systemd[1]: Started Read GoodWe inverter and upload data to PVOutput.org.
Jun 28 18:24:18 p1mon gw2pvo[1147]: Traceback (most recent call last):
Jun 28 18:24:18 p1mon gw2pvo[1147]: File "/usr/local/bin/gw2pvo", line 6, in
Jun 28 18:24:18 p1mon gw2pvo[1147]: from gw2pvo.main import run
Jun 28 18:24:18 p1mon gw2pvo[1147]: File "/usr/local/lib/python3.7/dist-packages/gw2pvo/main.py", line 9, in
Jun 28 18:24:18 p1mon gw2pvo[1147]: from astral import Astral
Jun 28 18:24:18 p1mon gw2pvo[1147]: ImportError: cannot import name 'Astral' from 'astral' (/usr/local/lib/python3.7/dist-packages/astral/init.py)
Jun 28 18:24:18 p1mon systemd[1]: gw2pvo.service: Main process exited, code=exited, status=1/FAILURE
Jun 28 18:24:18 p1mon systemd[1]: gw2pvo.service: Failed with result 'exit-code'.
from gw2pvo.
Yes, that was to be expected as 1.3.0 does not contain the commits from #43. You have to wait for the next release, but that shouldn't take long.
from gw2pvo.
I've just released it as a new package:
pip3 install https://github.com/markruys/gw2pvo/releases/download/1.3.1/gw2pvo-1.3.1-py3-none-any.whl
from gw2pvo.
It's working perfect, thank you very much.
I'm using this script on a raspberry with the img p1monitor and I was stuck with the older version of p1mon and it's working now.
again thank you for your script, couse it's the only one that works for me.
from gw2pvo.
Suggest getting a more standard just "pip install astral" type install... Moving on to another packages, I don't want to be leading my students through this.
from gw2pvo.
Related Issues (20)
- problem with config file HOT 5
- Consumption not showing with Goodwe HomeKiy HOT 11
- time.tzset() not working on Synology python 3.7/3.8 HOT 1
- Domoticz errors
- Add Temperature to the upload data HOT 3
- Error by Using gw2pvo HOT 1
- gw2pvo[850]: Bad config file, missing Defaults section HOT 1
- gw2pvo.service error status=1/FAILURE HOT 1
- Is GoodWe API still working? HOT 3
- Add State Of Charge to get Battery Info HOT 1
- Custom script at intervals
- Retry on connection error to GW API HOT 1
- docker compose HOT 2
- Is repo still maintained? HOT 8
- syntax error HOT 3
- 403 Client Error: Forbidden for url HOT 5
- SCRIPT IS OUTDATED - CHECK MY FORK!
- Docker file cannot be installed on Synology Docker
- Issue with darksky api? HOT 1
- did sems portal data change? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gw2pvo.