Can't build python application, src folder not being found

Hey there! Looking for some help with deploying a python application to Railway. It's the first time I'm deploying an application with a pyproject.toml file instead of main.py+requirements.txt. Source: https://github.com/pleblira/siggy_scrape If I use python3 -m build to create the build and pip install it to an anaconda environment, the application installs and runs fine. When I try to deploy it to Railway, though, I run into the error below. It seems it can't find the src folder (second to last line)? Any insight would be greatly appreciated. Thanks so much! #10 15.21 × Getting requirements to build wheel did not run successfully. #10 15.21 │ exit code: 1 #10 15.21 ╰─> [6 lines of output] #10 15.21 /tmp/pip-build-env-0y5be6oy/overlay/lib/python3.8/site-packages/setuptools/config/pyprojecttoml.py:66: _BetaConfiguration: Support for [tool.setuptools] in pyproject.toml is still beta. #10 15.21 config = read_configuration(filepath, True, ignore_option_errors, dist) #10 15.21 /tmp/pip-build-env-0y5be6oy/overlay/lib/python3.8/site-packages/setuptools/config/expand.py:132: SetuptoolsWarning: File '/app/README.md' cannot be found #10 15.21 return '\n'.join( #10 15.21 running egg_info #10 15.21 error: error in 'egg_base' option: '/src' does not exist or is not a directory #10 15.21 [end of output]
GitHub
GitHub - pleblira/siggy_scrape
Contribute to pleblira/siggy_scrape development by creating an account on GitHub.
4 Replies
Percy
Percy2y ago
Project ID: 00c0cc68-8898-4966-b11a-84320a4ef741
pleblira
pleblira2y ago
00c0cc68-8898-4966-b11a-84320a4ef741
Adam
Adam2y ago
conda isn’t meant for production environments, it’s best to just let railway detect and install your requirements.txt and go from there can you send your whole build logs?
pleblira
pleblira2y ago
Thanks for your reply. I'm using Conda locally just to test if the application is building correctly on a clean environment, but when I deploy it on Railway, I'm doing it from Github, and conda isn't being called. Thanks so much for looking into it. The build logs are attached.
Want results from more Discord servers?
Add your server