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

pip install #3

Closed
ghost opened this issue May 8, 2019 · 4 comments
Closed

pip install #3

ghost opened this issue May 8, 2019 · 4 comments

Comments

@ghost
Copy link

ghost commented May 8, 2019

Merhaba.

pip install git+https://github.com/emres/turkish-deasciifier.git yaptığımda

ERROR: Complete output from command python setup.py egg_info:
    ERROR: Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\user\AppData\Local\Temp\pip-req-build-nl97thly\setup.py", line 62
        except OSError, e:
                      ^
    SyntaxError: invalid syntax


erroru alıyorum. setup dosyasında sorun var sanırım

@emres
Copy link
Owner

emres commented May 13, 2019

Merhaba,

Sanırım problemin kaynağı şu adrestekine benzer bir durum:

Başka bir deyişle, except OSError, e yerine except OSError as e yazmak problemi çözebilir.

Şu anda maalesef çok vaktim yok ama siz benim kod deposunu "fork" edip, kendi "fork" ettiğiniz depoda bahsettiğim değişikliği yapıp, bu değişikliği içeren kendi deponuzu kullanarak benzer bir pip install testi yapıp çalıştığından emin olursanız bana bir Pull Request gönderebilirsiniz GitHub üzerinden, böylece ben de bu değişikliği ekleyebilirim sisteme kolayca.

@emres
Copy link
Owner

emres commented May 13, 2019

Ek açıklama: yukarıda verilmiş olan bağlantıda üstü örtülü olarak belirtilmiş ama açıkça yazalım, problem Python 2'de geçerli olan söz diziminin Python 3'te kabul görmemesi:

Ve:

Python 3.0 will only support the use of “as”, and therefore interprets the first example as catching two different exceptions. Python 2.6 supports both the comma and “as”, so existing code will continue to work. We therefore suggest using “as” when writing new Python code that will only be executed with 2.6.

Yani sizin ortamınızda varsayılan ('default') Python sürümü 3.x serisi ise, bu problem ortaya çıkıyor.

@ghost
Copy link
Author

ghost commented May 15, 2019

Python3 ile çelişen kodları Python3'e çevirerek durumu düzelttim. Pull request yolladım.

@emres
Copy link
Owner

emres commented May 16, 2019

Vakit ayırıp katkıda bulunduğunuz için çok teşekkürler! "Pull Request"i test ettim ve kabul ettim, pip install git+https://github.com/emres/turkish-deasciifier.git düzgün çalışıyor.

Ayrıca README.md'ye Python 3 örneği eklediğiniz için teşekkürler!

@emres emres closed this as completed May 16, 2019
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

No branches or pull requests

1 participant