question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fcntl ModuleNotFoundError

See original GitHub issue

Machine=Windows 10

Pipenv file contents:

`[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
mypy = "*"

[packages]
alkali = "*"
fcntl = "*"
pytest = "*"

[requires]
python_version = "3.6"`

Script:

from alkali import Database, FileStorage, JSONStorage, Storage, Model, fields

class BaseErx(Model):
    id = fields.IntField(primary_key=True)
    cid = fields.StringField()
    prod_name=fields.StringField()
    pref_route=fields.ForeignKey(Route)


class Route(Model):
    route = fields.StringField()


if __name__ == "__main__":
    db = Database(models=[BaseErx, Route], storage = JSONStorage, save_on_exit=True)
    route=Route(route='PO')
    route.save()
    db.store()
    b = BaseErx(id=1, cid="C12345", prod_name="test", pref_route = route)
    b.save()
    db.store()`
```

Does it support Windows??

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
kneufeldcommented, Mar 5, 2019

No worries. In the past week two other GitHub people fixed my issues in their projects inside a day so I’ve got internet karma to pay back. 😉 I’ll so try to get a patch out to pypi today with a “real” (hacky) fix.

0reactions
kneufeldcommented, Mar 9, 2019

Almost for surely not! Why don’t you open another issue and describe what it does (how it’s different than a SetField) and then we can discuss it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: No module named 'fcntl' - python - Stack Overflow
The fcntl module is not available on Windows. The functionality it exposes does not exist on that platform. If you're trying to lock...
Read more >
ModuleNotFoundError: No Module Named 'fcntl' (Python)
Did you get the ModuleNotFoundError: No Module Named 'fcntl' ? This short tutorial will show you some useful ways that can help you...
Read more >
ModuleNotFoundError: No module named 'fcntl' #1414 - GitHub
How to reproduce the behaviour After downloading doccano and trying to start it via doccano init I get the following message: doccano init...
Read more >
ModuleNotFoundError: No module named 'fcntl' - Django
Hi everyone, I'm currently taking the Django Part 3 course using Windows 10, and I came across this error when running the command...
Read more >
How To Fix Python Error fcntl On Windows - YouTube
How To Fix Python Error fcntl On Windows [re-edit]This video show you how to Python fix Error fcntl on Windows, I use urwid...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found