Giter Site home page Giter Site logo

Comments (19)

svdgraaf avatar svdgraaf commented on August 28, 2024 1

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.

svdgraaf avatar svdgraaf commented on August 28, 2024 1

You might have to uninstall astral v2 first btw: sudo pip uninstall astral

from gw2pvo.

walterwhite81 avatar walterwhite81 commented on August 28, 2024 1

@DynamicDreams manually install the package worked for me:

pip3 install https://pypi.lcsb.uni.lu/packages/86/05/25c772065bb6384789ca0f6ecc9d0bdd0bc210064e5c78453ee15124082e/astral-1.10.1.tar.gz#sha256=d2a67243c4503131c856cafb1b1276de52a86e5b8a1d507b7e08bee51cb67bf1

this installs astral 1.10.1 from source https://pypi.lcsb.uni.lu/simple/astral/

from gw2pvo.

robroy11 avatar robroy11 commented on August 28, 2024

Have same problem. Any solution?

from gw2pvo.

R0yk3 avatar R0yk3 commented on August 28, 2024

Thankyou This works for me..

from gw2pvo.

DynamicDreams avatar DynamicDreams commented on August 28, 2024

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.

Merlin1201 avatar Merlin1201 commented on August 28, 2024

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.

walterwhite81 avatar walterwhite81 commented on August 28, 2024

from gw2pvo.

Merlin1201 avatar Merlin1201 commented on August 28, 2024

i have no idea what you mean, ,any an example?

from gw2pvo.

sam-utr avatar sam-utr commented on August 28, 2024

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.

eNeRGy164 avatar eNeRGy164 commented on August 28, 2024

See the code changes in #43

from gw2pvo.

eNeRGy164 avatar eNeRGy164 commented on August 28, 2024

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.

Merlin1201 avatar Merlin1201 commented on August 28, 2024

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.

markruys avatar markruys commented on August 28, 2024

I've merged #43, so now we're using Astral 2 and it should work now.

from gw2pvo.

Merlin1201 avatar Merlin1201 commented on August 28, 2024

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.

markruys avatar markruys commented on August 28, 2024

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.

markruys avatar markruys commented on August 28, 2024

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.

Merlin1201 avatar Merlin1201 commented on August 28, 2024

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.

jeffheaton avatar jeffheaton commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.