Skip to content
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

No package for debian stable (bullseye) #3181

Closed
1 task done
N7DR opened this issue Oct 17, 2022 · 6 comments
Closed
1 task done

No package for debian stable (bullseye) #3181

N7DR opened this issue Oct 17, 2022 · 6 comments
Labels
DEB issues related to Debian/Ubuntu packaging / packages wontfix ..too bad =(

Comments

@N7DR
Copy link

N7DR commented Oct 17, 2022

Avoid duplicates

  • I searched existing issues

Bug Summary

https://github.com/obspy/obspy/wiki/Installation-on-Linux-via-Apt-Repository says:
ObsPy is packed (sic) for all Debian and Ubuntu releases which are still officially supported

However, there is no .deb package for current debian stable (bullseye).

(As a result, my scripts for examining magnetometer data are no longer working.)

Code to Reproduce

No response

Error Traceback

No response

ObsPy Version?

unable to install

Operating System?

debian

Python Version?

3.9.2

Installation Method?

No response

@N7DR N7DR added the bug-unconfirmed reported bug that still needs to be confirmed label Oct 17, 2022
@megies
Copy link
Member

megies commented Oct 18, 2022

ObsPy is packed (sic) for all Debian and Ubuntu releases which are still officially supported

Sadly, I had to abandon Deb/untu packaging efforts after the (quite messy) packaging setup broke for a new distro and I couldn't figure out how to fix the build in 1-2 afternoons and could not spend more time on it. Sadly, Python packaging for Debian is not as well documented as you'd like, or I'm just not using the right pieces of information. And it is very annoying to debug problems in the packaging.

Any help with packaging is welcome, but until then probably there will be no packages.

As a workaround if you want to use the system Python, you can add ObsPy by installing it with /usr/bin/pip3, it will go into a separate directory that is different from the directory where apt installed packages are held, so even if not ideal, this is actually not as messy as you'd think.

Just make sure to have all dependencies installed via apt, then pip will not have to install anything else besides obspy itself (sadly the pip version in bullseye doesn't have "dry-run" yet, but if you miss a dependency you could just delete /usr/local/lib/python3.9 and start over):

# aptitude install python3-pip python3-numpy python3-scipy python3-matplotlib python3-lxml python3-setuptools python3-sqlalchemy python3-decorator python3-requests python3-packaging python3-pyproj python3-pytest python3-geographiclib python3-cartopy python3-pyshp python3-ipython ipython3

(or just as a regular user with /usr/bin/pip3 which should go into ~/.local I think)

Screenshot from 2022-10-18 13-16-45
Screenshot from 2022-10-18 13-16-12
Screenshot from 2022-10-18 13-16-59

@megies megies closed this as completed Oct 18, 2022
@megies megies added wontfix ..too bad =( DEB issues related to Debian/Ubuntu packaging / packages and removed bug-unconfirmed reported bug that still needs to be confirmed labels Oct 18, 2022
@N7DR
Copy link
Author

N7DR commented Oct 18, 2022 via email

@N7DR
Copy link
Author

N7DR commented Oct 19, 2022 via email

@megies
Copy link
Member

megies commented Oct 20, 2022

python3-pydantic also needs to be installed

It's not one of our dependencies so it must be a dependency of some other package you're using

Glad you were able to get it working

@N7DR
Copy link
Author

N7DR commented Oct 20, 2022 via email

@obspy-bot
Copy link
Contributor

This issue has been mentioned on ObsPy Forum. There might be relevant details there:

https://discourse.obspy.org/t/installing-and-using-obspy-from-source/1722/7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DEB issues related to Debian/Ubuntu packaging / packages wontfix ..too bad =(
Projects
None yet
Development

No branches or pull requests

3 participants