GithubHelp home page GithubHelp logo

Year 30828 out of range about px HOT 23 CLOSED

genotrance avatar genotrance commented on July 17, 2024
Year 30828 out of range

from px.

Comments (23)

jinder avatar jinder commented on July 17, 2024

Looks like it might be caused by this: https://sourceforge.net/p/pywin32/bugs/748/

Will try downgrading to Python 3.5

from px.

jinder avatar jinder commented on July 17, 2024

Have confirmed that it's the bug linked above. Downgrading to Python 3.5 has fixed my issue, so will close.

from px.

 avatar commented on July 17, 2024

Shouldn't we keep this open until it's fixed upstream?

from px.

stolpovsky avatar stolpovsky commented on July 17, 2024

@jinder Please consider changing to 'open' until fixed.

from px.

jinder avatar jinder commented on July 17, 2024

Reopened

from px.

genotrance avatar genotrance commented on July 17, 2024

Looks like this could be fixed if Px switches to winkerberos, per the link to the pywin32 issue. I'm not sure if it's worth the effort but open to suggestions.

from px.

snovik75 avatar snovik75 commented on July 17, 2024

I confirm the issue. Is there another workaround apart from downgrading python?

from px.

genotrance avatar genotrance commented on July 17, 2024

Just for kicks, I tried this with Python 3.6.1 and 3.6.2. I tried with pywin32 v220 as well as v221 and it's still broken. The fix is required within win32security.pyd which is C code and not easy to work around.

from px.

genotrance avatar genotrance commented on July 17, 2024

Thanks to help from the winkerberos team, Px works with winkerberos so Python 3.6+ is now supported.

pywin32 SSPI is still supported so if winkerberos isn't available, Px will fall back to pywin32 as long as the Python version is < 3.6.

from px.

genotrance avatar genotrance commented on July 17, 2024

Given Px now works around this issue by using winkerberos, I propose marking this as fixed. Feedback appreciated.

from px.

genotrance avatar genotrance commented on July 17, 2024

So I had to bring back pywin32 for NTLM auth since winkerberos was failing for some NTLM use cases. Some folks may still run into this issue. The recommendation is to upgrade your Python to the latest version since a fix is in place.

from px.

lvfanqie avatar lvfanqie commented on July 17, 2024

@genotrance I still got this issue with latest px code. My python is 36-64. How could i fix it?

from px.

genotrance avatar genotrance commented on July 17, 2024

Is it possible to update your Python to latest version somehow? Also install latest version of pywin32?

from px.

genotrance avatar genotrance commented on July 17, 2024

I know it is broken on 3.6.1 and 3.6.2. I haven't tried 3.6.3 but I'm currently running 3.6.4 and don't see the issue anymore.

from px.

lvfanqie avatar lvfanqie commented on July 17, 2024

I checked my python version , it's 3.6.6. Is there any way to fix it?

from px.

lvfanqie avatar lvfanqie commented on July 17, 2024

I found this issue happens more when there's multi clients connected through proxy.

from px.

genotrance avatar genotrance commented on July 17, 2024

What version of pywin32 do you have installed? I have 222. Also is your Python 32-bit or 64-bit? Miniconda or Python.org?

from px.

lvfanqie avatar lvfanqie commented on July 17, 2024

pywin32=223, python is 3.6.6-64 bit from python.org

from px.

lvfanqie avatar lvfanqie commented on July 17, 2024

@genotrance any suggestion?

from px.

genotrance avatar genotrance commented on July 17, 2024

@lvfanqie: can you check if this issue helps? Looks like older version of 220 was also present in the path.

from px.

lvfanqie avatar lvfanqie commented on July 17, 2024

@genotrance my win32api version is '223'. How could I check pywintype version? I got following errors:

import pywintypes
fixed_file_info = win32api.GetFileVersionInfo(pywintypes.file, '\')
Traceback (most recent call last):
File "", line 1, in
pywintypes.error: (1813, 'GetFileVersionInfo:GetFileVersionInfoSize', 'The specified resource type cannot be found in the image file.')

from px.

genotrance avatar genotrance commented on July 17, 2024

I tried and no idea :(

Another option is to pip remove pywin32 and then reinstall and see if it helps any. I don't have a 64-bit Python setup so unsure if this is broken or an install issue.

from px.

lvfanqie avatar lvfanqie commented on July 17, 2024

unfortunately, I tried reinstall the pywin32 but still get the same issue.

from px.

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.