Tag-Archiv "Bugfix"

Probleme mit cURL POST-Request: “Failed to open/read local data from file/application”

29. September 2009 | Ein Kommentar

Nachdem ich eine Weile erfolglos versucht habe mit PHP’s cURL POST-Requests via SSL zu senden – es trat stets der Fehler 26 “Failed to open/read local data from file/application” auf – habe ich nach einer Weile die (wieder einmal sehr simple) Antwort gefunden. Selbst wenn keine Daten per POST gesendet werden, muss folgende Option gesetzt sein:

curl_setopt($ch, CURLOPT_POSTFIELDS, '');

… dann klappt’s auch mit dem cURL POST via SSL.

THEMA: (Web) Development

Problem setting up psycopg2 under Windows

4. September 2009 | keine Kommentare

When I set up Pylons today in a virtual isolated Python environment on my Windows machine, I had a little fight with psycopg2 (which usually allows me to connect to my PostgreSQL database). At first, everytime I tried to “easy_install psycopg2″, I ended up with the error message “unable to find vcvarsall.bat”.

Luckily I found a solution to get the  “unable to find vcvarsall.bat” problem fixed.

But unfortunately there was another error when I wanted paster to serve:

File “C:\Python26\lib\site-packages\psycopg2\__init__.py”,
line 60, in <module>
from _psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
ImportError: DLL load failed: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.

Of course, reinstallation did not fix the problem. I thought the whole challenge might be caused by my virtual environment, because Jason Erickson (who publishes the psycopg Windows binaries) mentioned problems that would occur when using psycopg with virtual environments in his blog. But nothing I tried improved my situation.

Solution: Use an older version (2.0.10) of psycopg2!

Later on I found a post in Google Groups, where someone had a similar problem with psycopg2 under Windows. He figured out that there was something wrong with the build of psycopg2 (version 2.0.12) and that simply using an older version (for example 2.0.10) worked fine… That made my day!

THEMEN: (Web) Development, Pylons Web Framework

Subclipse-Problem: Failed to execute WebDAV PROPPATCH / RA layer request failed

18. Mai 2009 | 5 Kommentare

Yesterday I described how I’ve  set up a subversion repository (SVN) at unfuddle.com in Aptana Studio by using Subclipse. While everything worked fine yesterday, I encountered some problems today when I tried to commit my changes:

Failed to execute WebDAV PROPPATCH
svn: Commit failed (details follow):
svn: At least one property change failed; repository is unchanged
RA layer request failed
svn: Error setting property ‘log’:
Could not execute PROPPATCH.

Doing some searches on Google helped me to find a solution: Simply open Preferences,  click Team, click SVN and change the SVN Interface from JavaHL to SVNKit.

When I started the next commit I got the chance to login and after that everything worked fine.

THEMA: (Web) Development