-
-
Notifications
You must be signed in to change notification settings - Fork 245
fcntl error on windows #509
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
Comments
Ha I just wrote the same code :) |
even on bpython master still this error, but in blessings packages:
|
this is a deeper issue with blessing/fcntrl: |
ok, installed curses from this link below and bpython from master and now 'bpython-curses' works! |
I'm using Python 3.5.2 32 bit on Windows 7 x64, have installed curses and pyreadline as indicated in the readme and I am encountering the same problem with fcntl:
pip freeze:
|
@carlosperate, because of the Blessings dependency problem described upthread erikrose/blessings#21, only bpython-curses works properly on Windows right now. |
If that's a known problem and there is a known workaround why are the instructions for Windows still incorrect? I'm away for a few days, so I can't test it, but sounds like the only fix I need to do is to install a different package than the one listed on the README? |
Nothing different to install, you'll want to run a different executable, |
Oh, I see, thanks for the clarification and opeoenin the other issue On 28 Oct 2016 21:11, "Thomas Ballinger" notifications@github.com wrote:
|
But according https://stackoverflow.com/review/suggested-edits/18134290 you can put such stub to # Variables with simple values
FASYNC = 64
FD_CLOEXEC = 1
F_DUPFD = 0
F_FULLFSYNC = 51
F_GETFD = 1
F_GETFL = 3
F_GETLK = 7
F_GETOWN = 5
F_RDLCK = 1
F_SETFD = 2
F_SETFL = 4
F_SETLK = 8
F_SETLKW = 9
F_SETOWN = 6
F_UNLCK = 2
F_WRLCK = 3
LOCK_EX = 2
LOCK_NB = 4
LOCK_SH = 1
LOCK_UN = 8
def fcntl(fd, op, arg=0):
return 0
def ioctl(fd, op, arg=0, mutable_flag=True):
if mutable_flag:
return 0
else:
return ""
def flock(fd, op):
return
def lockf(fd, operation, length=0, start=0, whence=0):
return Alternatively: use Alternatively: use |
@thomasballinger I followed your instructions
|
Getting the following error when running
bpython-curses
:This is due to
fcntl
not being defined on windows, and default arguments being evaluated on definition time.The text was updated successfully, but these errors were encountered: