Comments (10)
There is a simple way to circumvent this problem. It's not a propre fix, but it makes this package usable: launch the program a first time, and let it crash. Afterwards, manually add an entry into the "migrations" table to prevent the faulty migration from being applied:
INSERT INTO migrations (id, name, ts) VALUES (8, 'packagefile_basename_unique.add_uniquie_basename_index', 'TIMESTAMP');Replace
TIMESTAMP
with a valid timestamp (you can simply copy/paste one of the timestamps you get with the requestSELECT ts from migrations
)
You could just use CURRENT_TIMESTAMP
when inserting.
from pypi-server.
Same. Bummer though. This would have fulfilled 120% of my use case.
from pypi-server.
Same here.
from pypi-server.
Having the same issue
from pypi-server.
+1, I ran into the same issue. I switched to https://github.com/pypiserver/pypiserver. Doesn't have a nice gui and user nice management, but it does the job effectively enough.
from pypi-server.
Still happening.
from pypi-server.
Just verified when researching #54 , this is still the case for the postgres configuration.
from pypi-server.
Unfortunately this issue made the whole package unusable, so I just used https://github.com/pypiserver/pypiserver.
from pypi-server.
There is a simple way to circumvent this problem. It's not a propre fix, but it makes this package usable: launch the program a first time, and let it crash. Afterwards, manually add an entry into the "migrations" table to prevent the faulty migration from being applied:
INSERT INTO migrations (id, name, ts) VALUES (8, 'packagefile_basename_unique.add_uniquie_basename_index', CURRENT_TIMESTAMP);
Edit: Thanks to @ruohola for his suggestion about the usage of CURRENT_TIMESTAMP
!
from pypi-server.
Related Issues (20)
- Default Sqlite metadata database doesn't use configured --storage directory
- Heads-up about the new (global) PyPI
- Return 404 instead of 500 for missing packages HOT 1
- value too long for type character HOT 3
- login error HOT 4
- Boolean options are not really boolean
- ImportError: cannot import name gensalt HOT 2
- Newest Image is not working HOT 1
- Cannot install package from server HOT 2
- Software crashes time to time HOT 1
- XML-RPC error with new pypi-server HOT 2
- Change ownership of a local package? HOT 1
- Cannot upload package HOT 3
- Error while uploading using twine HOT 6
- Invalid multipart/form-data: no final boundary
- macOS Catalina: Docker file does not allow bind-mount. HOT 1
- 404 error while uploading package HOT 1
- Mysql does not work
- Running into Kubernetes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pypi-server.