Support #7221

Can't run nmlc after installation

Added by oberhuemer about 4 years ago. Updated 5 months ago.

Status:ClosedStart date:2014-10-11
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

NML r2207, Python 3.4, Ubuntu 14.04.
setup.py runs fine:
*****:~/ottd/grf/nml$ sudo ./setup.py install
not trusting file /home/
*/ottd/grf/nml/.hg/hgrc from untrusted user *, group *
not trusting file /home/****/ottd/grf/nml/.hg/hgrc from untrusted user *, group *
not trusting file /home/****/ottd/grf/nml/.hg/hgrc from untrusted user *, group *
not trusting file /home/****/ottd/grf/nml/.hg/hgrc from untrusted user *, group *
not trusting file /home/****/ottd/grf/nml/.hg/hgrc from untrusted user *, group *
not trusting file /home/****/ottd/grf/nml/.hg/hgrc from untrusted user *, group *
not trusting file /home/****/ottd/grf/nml/.hg/hgrc from untrusted user *, group *
not trusting file /home/****/ottd/grf/nml/.hg/hgrc from untrusted user *, group *
not trusting file /home/****/ottd/grf/nml/.hg/hgrc from untrusted user *, group *
not trusting file /home/****/ottd/grf/nml/.hg/hgrc from untrusted user *, group *
not trusting file /home/****/ottd/grf/nml/.hg/hgrc from untrusted user *, group *
not trusting file /home/****/ottd/grf/nml/.hg/hgrc from untrusted user *, group *
running install
Checking .pth file support in /usr/local/lib/python3.4/dist-packages/
/usr/bin/python3 E -c pass
TEST PASSED: /usr/local/lib/python3.4/dist-packages/ appears to support .pth files
running bdist_egg
running egg_info
writing entry points to nml.egg-info/entry_points.txt
writing top-level names to nml.egg-info/top_level.txt
writing nml.egg-info/PKG-INFO
writing dependency_links to nml.egg-info/dependency_links.txt
reading manifest file 'nml.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '._*' found anywhere in distribution
writing manifest file 'nml.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
warning: install_lib: 'build/lib' does not exist -
no Python modules to install

creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying nml.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying nml.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying nml.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying nml.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying nml.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/nml-0.4.0.r5377_01988dfeee65-py3.4.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing nml-0.4.0.r5377_01988dfeee65-py3.4.egg
Removing /usr/local/lib/python3.4/dist-packages/nml-0.4.0.r5377_01988dfeee65-py3.4.egg
Copying nml-0.4.0.r5377_01988dfeee65-py3.4.egg to /usr/local/lib/python3.4/dist-packages
nml 0.4.0.r5377-01988dfeee65 is already the active version in easy-install.pth
Installing nmlc script to /usr/local/bin

Installed /usr/local/lib/python3.4/dist-packages/nml-0.4.0.r5377_01988dfeee65-py3.4.egg
Processing dependencies for nml==0.4.0.r5377-01988dfeee65
Finished processing dependencies for nml==0.4.0.r5377-01988dfeee65

but nmlc doesn't:
******:~/ottd/grf/nml$ nmlc
Traceback (most recent call last):
File "/usr/local/bin/nmlc", line 9, in <module>
load_entry_point('nml==0.4.0.r5377-01988dfeee65', 'console_scripts', 'nmlc')()
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 351, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2363, in load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2088, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named 'nml'

I can't import it in the Python console either.

History

#1 Updated by oberhuemer about 4 years ago

Ugh, messed up the formatting, but you get the idea.

#2 Updated by oberhuemer about 4 years ago

warning: install_lib: 'build/lib' does not exist - no Python modules to install
Or rather not. Investigating...

#3 Updated by oberhuemer about 4 years ago

Clearly, there's just an empty shell being installed. Why, I don't know yet.

#4 Updated by oberhuemer about 4 years ago

"./setup.py build" does nothing for me, might be part of the problem?

#5 Updated by oberhuemer about 4 years ago

What breaks it for me is the switch to Python 3. With r2192 and Python 2.7, I get the "copying", "byte-compiling" etc. output as expected and nmlc works.

#6 Updated by oberhuemer about 4 years ago

And the build folder is created, but it only contains a completely empty folder named bdist.linux-x86_64.

#7 Updated by planetmaker over 3 years ago

Can you try with the current build, please? http://bundles.openttdcoop.org/nml/push/LATEST/

#8 Updated by andythenorth 5 months ago

  • Status changed from New to Closed

3 years, no movement :) . Tidying tickets, so closing this one, cheers

Also available in: Atom PDF