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

"Class 'Http\Adapter\Guzzle6\Client' not found" when trying to convert GPS data #998

Closed
pichouk opened this issue May 9, 2021 · 1 comment · Fixed by #999
Closed

"Class 'Http\Adapter\Guzzle6\Client' not found" when trying to convert GPS data #998

pichouk opened this issue May 9, 2021 · 1 comment · Fixed by #999

Comments

@pichouk
Copy link

pichouk commented May 9, 2021

Hi,

I just setup a Lychee server using Docker. Here is an extract of my Docker Compose file :

version: "3"
services:
  lychee:
    image: lycheeorg/lychee:v4.3.0
    container_name: lychee
    environment:
      PUID: 1723
      PGID: 1723
      PHP_TZ: Europe/Paris
      DB_CONNECTION: pgsql
      DB_HOST: lychee-db
      DB_PORT: 5432
      DB_DATABASE: lychee
      DB_USERNAME: lychee
      DB_PASSWORD: mysuperpassword
    volumes:
      - /docker/volumes/lychee/conf:/conf
      - /docker/volumes/lychee/uploads:/uploads
      - /docker/volumes/lychee/sym:/sym

I tried to import several files from the Web UI and I had an error during the import, without any specific log. long story short, I figured out that it was because of the feature "convert GPS data to location" that was enable.

Inside my Docker container, when I run php artisan lychee:decode_GPS_locations I was this single message :

In Geodecoder.php line 35:                                             
  Class 'Http\Adapter\Guzzle6\Client' not found 

My container seems to have Internet access and I can can curl several websites from the container. Is that possible that there s a missing PHP library or something ?

@d7415
Copy link
Contributor

d7415 commented May 9, 2021

Is that possible that there s a missing PHP library or something ?

Yes. Well actually it looks like we're trying to use one that we're no longer installing (Guzzle7 is being installed instead).

I'm going to transfer this to LycheeOrg/Lychee so that it can be handled there.

Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants