brandonsavage / Upload

File uploads with validation and storage strategies
MIT License
1.67k stars 315 forks source link

Cannot use composer to add the project #25

Closed cristianciofu closed 11 years ago

cristianciofu commented 11 years ago

I tried to get the project using composer and have this error:

Updating dependencies (including require-dev)

And after I add my GitHub credentials I get this error:

[Composer\Downloader\TransportException] The "https://api.github.com/authorizations" file could not be downloaded: U nable to find the wrapper "https" - did you forget to enable it when you co nfigured PHP? failed to open stream: Invalid argument

Any idea why?

I tried this from 2 different locations and I have the same issue... Importing other repositories with composer works perfectly so... I really don't get it why for your repo it give me this error.

Thanks

scottrobertson commented 11 years ago

Works totally fine for me. Must be something specific to you. Seems like a permissions issue or something.

cristianciofu commented 11 years ago

The thing is that I tried it on 2 machines and got the same message.

scottrobertson commented 11 years ago

Post your composer.json, and also try running "composer self-update"

cristianciofu commented 11 years ago

{ "require": { "twig/twig": "1.13.@dev", "desarrolla2/cache": "dev-master", "infinityweb/k-logger": "dev-master", "codeguy/upload": "" } }

did the self-update and still nothing

scottrobertson commented 11 years ago

Try and run

git clone git://github.com/codeguy/Upload.git

just to test something

codeguy commented 11 years ago

Sounds like GitHub may have been down for a bit. Or, you may need to update Composer so that it does not reference the nodeload.* subdomain... I think GitHub was going to change that endpoint for downloads.

cristianciofu commented 11 years ago

@scottymeuk

$ git clone git://github.com/codeguy/Upload.git Cloning into 'Upload'... fatal: unable to connect to github.com: github.com[0: 204.232.175.90]: errno=No such file or directory

but if I do it like this:

$ git clone http://github.com/codeguy/Upload.git Cloning into 'Upload'...

it's working... any ideas?

scottrobertson commented 11 years ago

Seems like an issue with your local machine. What OS are you using?

cristianciofu commented 11 years ago

Windows XP (and on the other machine on which I have tested this -> Windows 7)

scottrobertson commented 11 years ago

And what program are you using?

cristianciofu commented 11 years ago

Cygwin (+git and composer individually installed)

scottrobertson commented 11 years ago

How very odd :s

I am really not sure but it does seem like a local issue somehow.

cristianciofu commented 11 years ago

I tried again now on my home PC (so no weird firewall rules) and got this error :

Loading composer repositories with package information Updating dependencies (including require-dev)

  • Installing codeguy/upload (1.3.1) Downloading: 100% Downloading: 100% Downloading: 100%

    [Composer\Downloader\TransportException] The "http://nodeload.github.com/codeguy/Upload/zip/1.3.1" file could not be downloaded: failed to open stream: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?

Windows 7 + Cygwin

scottrobertson commented 11 years ago

I am really not sure, but all i know is that it works for me, on Windows, Mac and Ubuntu.

codeguy commented 11 years ago

I haven't been able to duplicate this on my end. Not sure what to tell you. Maybe @Seldaek might have some ideas?

Seldaek commented 11 years ago

This last error is happening because you're missing the openssl extension for php. Try enabling it in your php.ini

codeguy commented 11 years ago

Closing this out due to lack of recent response. Assuming this is resolved.