Comments (11)
Hi @2ar0n
that's interesting; Ubuntu 16.04 comes with Python 3.5 by default, which is supposed to work with pymap3d
.
This post experienced exactly the same error on a different package, and a commenter said it might work fine regardless of the error.
It seems like it could be a rare issue. Another commenter said it was fixed by reinstalling Python (with something like Miniconda.
I installed a fresh Miniconda Python 3.5 environment and Pymap3D installed without any issues.
You might consider trying the 50MB Miniconda download for Python 3, in general it's nice to avoid using system Python in case issues arise.
from pymap3d.
Hello @scivision,
I've looked a bit more into the problem and you're right that I seems not the be related to the pymap3d
package itself, so I will close this issue.
Nonetheless, I've tried installing it on 4 different machines now (all running Python3.5 on Ubuntu 16.04) and was successful on only one of them. What did work for me was installing from source using pip3 install -e .
in the clone repository. Hope this can be useful to anybody.
from pymap3d.
Hmm, this may have been an issue with too-old pip
as would be typical with system Python.
Many projects these days require pip >= 10
. Older versions of pip that come with Linux may just fail with weird messages like this.
from pymap3d.
I expected that too, but the same error came using pip 18.1
. I'll double check
from pymap3d.
Here's what I got from Ubuntu 16.04, system Python 3.5.2 and pip==8.1.1
:
python3 -m pip install --user pymap3d
errors:
Running setup.py bdist_wheel for unknown ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-eevn2f5r/unknown/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpibs2lyeupip-wheel- --python-tag cp35:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.5/tokenize.py", line 454, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-eevn2f5r/unknown/setup.py'
----------------------------------------
Failed building wheel for unknown
Running setup.py clean for unknown
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-eevn2f5r/unknown/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" clean --all:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.5/tokenize.py", line 454, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-eevn2f5r/unknown/setup.py'
----------------------------------------
Failed cleaning build dir for unknown
Successfully built unknown
Failed to build unknown
Installing collected packages: unknown
Successfully installed unknown
You are using pip version 8.1.1, however version 18.1 is available.
Ubuntu 16.04, system Python 3.5.2, pip==18.1
python3 -m pip install --user pymap3d
error:
python3 -m pip install --user pymap3d
Collecting pymap3d
Installing collected packages: pymap3d
Exception:
Traceback (most recent call last):
File "/home/.local/lib/python3.5/site-packages/pip/_internal/cli/base_command.py", line 143, in main
status = self.run(options, args)
File "/home/.local/lib/python3.5/site-packages/pip/_internal/commands/install.py", line 366, in run
use_user_site=options.use_user_site,
File "/home/.local/lib/python3.5/site-packages/pip/_internal/req/__init__.py", line 49, in install_given_reqs
**kwargs
File "/home/.local/lib/python3.5/site-packages/pip/_internal/req/req_install.py", line 760, in install
use_user_site=use_user_site, pycompile=pycompile,
File "/home/.local/lib/python3.5/site-packages/pip/_internal/req/req_install.py", line 382, in move_wheel_files
warn_script_location=warn_script_location,
File "/home/.local/lib/python3.5/site-packages/pip/_internal/wheel.py", line 326, in move_wheel_files
assert info_dir, "%s .dist-info directory not found" % req
AssertionError: pymap3d .dist-info directory not found
from pymap3d.
Ubuntu 18.04, system Python 3.6.6 and pip==9.0.1
/usr/bin/python3 -m pip install --user pymap3d
is successful
from pymap3d.
So I am not sure what the issue is with Ubuntu 16.04 and system Python. Generally we advocate not using system Python, but rather a user-installed small Python distro like Miniconda, which does work for me with Python 3.5, 3.6, 3.7
from pymap3d.
I'll keep that in mind! Thank you for all the investigation
from pymap3d.
Yes sorry I don't have time right now to dig into it further. It could be that since Ubuntu 16.04 doesn't have the latest 3.5.x version, there could have been some bugfix that even having the latest pip
doesn't help. This is a good thing to note for other developers, as this issue barely shows up on a Google search.
from pymap3d.
Just another datapoint. The pip install appears to work for me if you specify an older version (this is on ubuntu 16.04 with python 2). It appears that anything below the current 1.8.0 will properly install (in both the "OS" version of pip and in virtualenv's).
from pymap3d.
I believe this may be fixed now. I tried with same systems and it works e.g.
pip install pymap3d
As well as git clone and then
pip install -e .
I recently added more testing and configuration to hopefully fix this issue.
from pymap3d.
Related Issues (20)
- Upcoming release schedule to resolve version discrepancy between release and metadata? HOT 1
- What time value should I use to perform eci2ecef conversions when the axis systems are coincident?
- Value Error when using with vectorized data in a pandas dataframe HOT 1
- Add conversion from geodetic to geocentric spherical HOT 4
- ECEF2ECI HOT 1
- loxodrome_inverse returns (circumference / 2 - expected distance) when lat1 == lat2 and lon1< lon2
- Would adding py.typed suffice to add mypy support ? HOT 1
- Can I get a reference to the rsphere.euler function? HOT 1
- [Bug]: TypeError upon import HOT 3
- [Bug]: Discontinuity in ecef2geodetic() outputs HOT 2
- [Bug]: You should never call np.seterr() HOT 3
- [Bug]: Documentation is for old release <3.0 (e.g. Ellipsoid)
- publish release v3.0.1 failed HOT 2
- [Bug]: ECI conversions give wrong result for sub-second dates (juliandate issue) HOT 3
- [Bug]: HOT 2
- [Bug]: Test failure or ARM architecture HOT 3
- [Bug]: vincenty.vreckon returns incorrect answer if longitude is negative. HOT 4
- [Bug]: vincenty.track2() Doesnt respect degree vs radian for vdist calculation HOT 2
- Feature Request: Cross-Range/Down-Range to NED
- [Bug]: enu2geodetic latitude output type difference whether use with radians or degrees HOT 1
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 pymap3d.